Local balena push command does not to work

Hi there
Started playing around with balena and checkin gout local development. However I ran into a problem with local deployment.

Command sudo balena scan does show me my device as expeced running balenaOS 2.38.0+rev1. I can also access the device via balena ssh <device-ip>. So far so good.

As soon as I try a balena push <device-ip> it fails due to:

Could not communicate with local mode device at address

Switchin DEBUG on it seems that communication with port 48484 does not work:

[Debug]   Checking we can access device
[Debug]   Sending request to http://<device-ip>:48484/ping

Pushing the project using the balenaCloud does work.

I’m using balena-cli v11.9.3.

Any idea what might be wrong?

Many thanks!

1 Like

Have you enabled Local Mode via the Dashboard? Check out the list of requirements here: https://www.balena.io/docs/learn/develop/local-mode/#local-mode-requirements

Shame on my reading skills… over read the last but most important point:

Local mode must be enabled through the dashboard. To use local mode on a development device, click on the small Actions dropdown at the top right of the device page and select Enable Local Mode .

Somehow I expected to have the local mode automatically enabled when using the image with development mode enabled.

1 Like

Hey @klatr,

Just to let you know, we have an open issue (https://github.com/balena-io/balena-cli/issues/1304) to allow people to enable local mode from the CLI itself, which may help you in the future.

Thanks!

I do think the docs on this point could be clearer.

Develop locally - Balena Documentation says

Local mode is the development mode for balena.

Which suggests that ‘local mode’ and ‘development mode’ are synonyms.

It looks like this feature has now been released, so you can enable local mode for your device from the CLI starting from v12.39.0.