# balena local configure not working on macOS

**URL:** <https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635>\
**Category:** balenaOS\
**Tags:** support, raspberrypi3\
**Created:** [April 1, 2021, 7:34pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635 "2021-04-01T19:34:21Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![RodrigoM](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/rodrigom/32/5690_2.png) [@RodrigoM](https://forums.balena.io/u/RodrigoM)\
**Post date:** [April 1, 2021, 7:34pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/1 "2021-04-01T19:34:22Z")

</div>

Hi there,

First attempt to use balenaOS and it does not look good. Any ideas what may be wrong?

Thanks!

1. Installed balena CLI on MacOS (High Sierra)

```auto
% balena version --all
balena-cli version "12.44.1"
Node.js version "12.20.0"

```

1. Downloaded balenaOS for RaspberryPi3 (`balena-cloud-raspberrypi3-64-2.65.0+rev1-dev-v12.2.11.img `)

2. Run `balena local configure` as in the documentation:

```auto
    % sudo balena local configure ./balena-cloud-raspberrypi3-64-2.65.0+rev1-dev-v12.2.11.img 

    [debug] new argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,local:configure,./balena-cloud-raspberrypi3-64-2.65.0+rev1-dev-v12.2.11.img] length=4
    ERR_INVALID_ARG_TYPE: The "original" argument must be of type function. Received undefined

    TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function. Received undefined
        at Object.promisify (internal/util.js:279:11)
        at /usr/local/lib/balena-cli/build/commands/local/configure.js:178:37
        at runInFat (/usr/local/lib/balena-cli/node_modules/balena-image-fs/build/index.js:62:18)
        at async tryInteract (/usr/local/lib/balena-cli/node_modules/balena-image-fs/build/index.js:81:16)
        at async diskInteract (/usr/local/lib/balena-cli/node_modules/balena-image-fs/build/index.js:109:12)
        at async /usr/local/lib/balena-cli/node_modules/balena-image-fs/build/index.js:126:20
        at async Object.withOpenFile (/usr/local/lib/balena-cli/node_modules/file-disk/build/index.js:106:16)
        at async Object.interact (/usr/local/lib/balena-cli/node_modules/balena-image-fs/build/index.js:124:16)
        at async LocalConfigureCmd.prepareConnectionFile (/usr/local/lib/balena-cli/build/commands/local/configure.js:177:13)
        at async LocalConfigureCmd.run (/usr/local/lib/balena-cli/build/commands/local/configure.js:92:37)
        at async LocalConfigureCmd._run (/usr/local/lib/balena-cli/node_modules/@oclif/command/lib/command.js:43:20)
        at async Config.runCommand (/usr/local/lib/balena-cli/node_modules/@oclif/config/lib/config.js:175:24)
        at async CustomMain.run (/usr/local/lib/balena-cli/node_modules/@oclif/command/lib/main.js:27:9)
        at async CustomMain._run (/usr/local/lib/balena-cli/node_modules/@oclif/command/lib/command.js:43:20)
        at async Promise.all (index 1)
        at async oclifRun (/usr/local/lib/balena-cli/build/app.js:75:5)

```

---

<div class="post-metadata">

**Author:** ![pipex](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pipex/32/4840_2.png) [@pipex](https://forums.balena.io/u/pipex)\
**Post date:** [April 1, 2021, 8:09pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/5 "2021-04-01T20:09:14Z")

</div>

Hi there,

What installation method did you use to install the CLI? Could you try mounting the image (double click on the .img file) and see if the image can be mounted and you see a resin-boot volume with a `system-connections` directory?

Could you also please retry the operation using the `--debug` flag? As in

```auto
sudo balena local configure --debug balena-cloud-raspberrypi3-64-2.65.0+rev1-dev-v12.2.11.img

```

Thanks for your help

---

<div class="post-metadata">

**Author:** ![pipex](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pipex/32/4840_2.png) [@pipex](https://forums.balena.io/u/pipex)\
**Post date:** [April 1, 2021, 8:23pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/7 "2021-04-01T20:23:50Z")

</div>

Actually I could just replicate this with one of the unmanaged images from the balenaOS website. This looks like a bug in the CLI. Let me try to pinpoint the issue and I’ll try to provide a workaround

---

<div class="post-metadata">

**Author:** ![pipex](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pipex/32/4840_2.png) [@pipex](https://forums.balena.io/u/pipex)\
**Post date:** [April 1, 2021, 8:45pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/8 "2021-04-01T20:45:28Z")

</div>

Hi again,

Thanks for reporting this, this is indeed a bug in the CLI, I have created an [issue on the balena-cli repository](https://github.com/balena-io/balena-cli/issues/2239) and linked it to this forum ticket.

You can fix the problem for the moment by mounting the image (double-click on the .img on Finder) and wait for the `resin-boot` volume to appear. There you can make a copy of the `resin-sample.ignore` file under the `system-connections` folder and rename it to `resin-wifi`. You can then eject the image and retry running the command

```auto
sudo balena local configure balena-cloud-raspberrypi3-64-2.65.0+rev1-dev-v12.2.11.img

```

This should show you a prompt to configure your wifi credentials. You can achieve the same by directly editing the resin-wifi file if you want.

I hope this helps.  
Felipe

---

<div class="post-metadata">

**Author:** ![RodrigoM](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/rodrigom/32/5690_2.png) [@RodrigoM](https://forums.balena.io/u/RodrigoM)\
**Post date:** [April 1, 2021, 10:24pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/10 "2021-04-01T22:24:24Z")

</div>

Thanks! That worked fine!

---

<div class="post-metadata">

**Author:** ![MParris](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@MParris](https://forums.balena.io/u/MParris)\
**Post date:** [April 9, 2021, 3:52pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/12 "2021-04-09T15:52:13Z")

</div>

I’m having the same issue on Windows 10. Just installed balena-cli-v12.44.6-windows-x64-installer.exe and cannot edit development images.

Any suggested workaround for windows?

---

<div class="post-metadata">

**Author:** ![klutchell](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/klutchell/32/861_2.png) [@klutchell](https://forums.balena.io/u/klutchell)\
**Post date:** [April 9, 2021, 4:33pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/13 "2021-04-09T16:33:25Z")

</div>

Hey @mparris, could you please provide the full filename of the image you are attempting to configure, and the result of the `balena local configure` command when `--debug` is provided as Felipe demonstrated above?

I just want to make sure we are looking at the same issue, and not something else.

---

<div class="post-metadata">

**Author:** ![MParris](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@MParris](https://forums.balena.io/u/MParris)\
**Post date:** [April 9, 2021, 4:46pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/15 "2021-04-09T16:46:39Z")

</div>

balena local configure “balena-cloud-raspberrypi4-64-2.73.1+rev1-dev-v12.4.6.img” --debug

[debug] new argv=[C:\Program Files\balena-cli\client\bin\node.exe,C:\Program Files\balena-cli\client\bin\run,local:configure,balena-cloud-raspberrypi4-64-2.73.1+rev1-dev-v12.4.6.img] length=4  
ERR\_INVALID\_ARG\_TYPE: The “original” argument must be of type function. Received undefined

TypeError [ERR\_INVALID\_ARG\_TYPE]: The “original” argument must be of type function. Received undefined  
at Object.promisify (internal/util.js:279:11)  
at C:\Program Files\balena-cli\client\build\commands\local\configure.js:178:37  
at runInFat (C:\Program Files\balena-cli\client\node\_modules\balena-image-fs\build\index.js:62:18)  
at async tryInteract (C:\Program Files\balena-cli\client\node\_modules\balena-image-fs\build\index.js:81:16)  
at async diskInteract (C:\Program Files\balena-cli\client\node\_modules\balena-image-fs\build\index.js:109:12)  
at async C:\Program Files\balena-cli\client\node\_modules\balena-image-fs\build\index.js:126:20  
at async Object.withOpenFile (C:\Program Files\balena-cli\client\node\_modules\file-disk\build\index.js:106:16)  
at async Object.interact (C:\Program Files\balena-cli\client\node\_modules\balena-image-fs\build\index.js:124:16)  
at async LocalConfigureCmd.prepareConnectionFile (C:\Program Files\balena-cli\client\build\commands\local\configure.js:177:13)  
at async LocalConfigureCmd.run (C:\Program Files\balena-cli\client\build\commands\local\configure.js:92:37)  
at async LocalConfigureCmd.\_run (C:\Program Files\balena-cli\client\node\_modules@oclif\command\lib\command.js:43:20)  
at async Config.runCommand (C:\Program Files\balena-cli\client\node\_modules@oclif\config\lib\config.js:175:24)  
at async CustomMain.run (C:\Program Files\balena-cli\client\node\_modules@oclif\command\lib\main.js:27:9)  
at async CustomMain.\_run (C:\Program Files\balena-cli\client\node\_modules@oclif\command\lib\command.js:43:20)  
at async Promise.all (index 1)  
at async oclifRun (C:\Program Files\balena-cli\client\build\app.js:75:5)

For further help or support, visit:

> **[balena CLI Documentation - Balena Documentation](https://www.balena.io/docs/reference/balena-cli/#support-faq-and-troubleshooting)**

---

<div class="post-metadata">

**Author:** ![klutchell](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/klutchell/32/861_2.png) [@klutchell](https://forums.balena.io/u/klutchell)\
**Post date:** [April 9, 2021, 5:53pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/16 "2021-04-09T17:53:54Z")

</div>

Thank you @mparris, I can confirm that is the same issue and I’ve been able to reproduce it as well. Could you try installing v12.43.2 and trying again?

> **[Release v12.43.2 · balena-io/balena-cli](https://github.com/balena-io/balena-cli/releases/tag/v12.43.2)**
>
> //github.com/balena-io/balena-cli/releases/tag/v12.43.2

I’m going to make sure the GitHub issue that Felipe opened receives some attention soon as it’s quite easy to reproduce.

---

<div class="post-metadata">

**Author:** ![MParris](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@MParris](https://forums.balena.io/u/MParris)\
**Post date:** [April 9, 2021, 6:32pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/18 "2021-04-09T18:32:38Z")

</div>

Version 12.43.2 works for me.

---

<div class="post-metadata">

**Author:** ![klutchell](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/klutchell/32/861_2.png) [@klutchell](https://forums.balena.io/u/klutchell)\
**Post date:** [April 9, 2021, 6:42pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/19 "2021-04-09T18:42:16Z")

</div>

Great! We have a fix in the works and should be available in the next release of the CLI!

---

<div class="post-metadata">

**Author:** ![klutchell](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/klutchell/32/861_2.png) [@klutchell](https://forums.balena.io/u/klutchell)\
**Post date:** [April 9, 2021, 7:12pm UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/21 "2021-04-09T19:12:17Z")

</div>

The fix has been merged and is available in v12.44.7.

> **[Release v12.44.7 · balena-io/balena-cli](https://github.com/balena-io/balena-cli/releases/tag/v12.44.7)**
>
> //github.com/balena-io/balena-cli/releases/tag/v12.44.7

Let us know if it doesn’t resolve the issue as expected!

---

<div class="post-metadata">

**Author:** ![MParris](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@MParris](https://forums.balena.io/u/MParris)\
**Post date:** [April 10, 2021, 3:10am UTC](https://forums.balena.io/t/balena-local-configure-not-working-on-macos/281635/23 "2021-04-10T03:10:36Z")

</div>

v12.44.7 works as expected. Thanks for the quick response!
