balena local push is stuck at step "Starting builds" on device forever

I’m having issues doing a local push to a device on my network.
It is stuck forever and when running in DEBUG mode I can see it is stuck (without any error) at:

Starting builds…

Here’s the full outline:

fritz@f0542a0 gateway-main % DEBUG=1 balena push 251bec7.local                                                     
[debug] original argv0="/usr/local/lib/balena-cli/bin/node" argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,push,251bec7.local] length=4
[debug] new argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,push,251bec7.local] length=4
[debug] Deprecation check: 5.26486 days since last npm registry query for next major version release date.
[debug] Will not query the registry again until at least 7 days have passed.
[Debug]   Using build source directory: . 
[Debug]   Pushing to local device: 251bec7.local
[debug] Event tracking error: Timeout awaiting 'response' for 0ms
[Debug]   Checking we can access device
[Debug]   Sending request to
[Debug]   Checking device supervisor version: 14.12.1
[Info]    Starting build on device
[Debug]   Loading project...
[Debug]   Resolving project...
[Info]    No "docker-compose.yml" file found at "."
[Info]    Creating default composition with source: "."
[Debug]   Creating project...
[Debug]   Tarring all non-ignored files...
[Debug]   Tarring complete in 997 ms
[Debug]   Fetching device information...
[Debug]   Sending request to
[Debug]   Found build tasks:
[Debug]       main: build [.]
[Debug]   Resolving services with [raspberrypi4-64|aarch64]
[Debug]   Found project types:
[Debug]       main: Dockerfile.template
[Debug]   Probing remote daemon for cache images
[Debug]   Using 4 on-device images for cache...
[Debug]   Starting builds...

Dockerfile.template starts with:

FROM balenalib/%%BALENA_MACHINE_NAME%%-node:18-build

but it seems that it does not even start processing it.

Device is a RPi4, balenaOS 4.07+rev3, Supervisor 14.12.1
OS Variant: development, Local mode = On
Balena CLI (on my Mac): 17.4.9

Any hints for debugging the issue?


Hi Fritz, this issue was fixed recently with balenaCLI v17.4.12. Update to the latest, and your build should complete.

Great, thanks for the hint! Works now! (upgraded to 17.5.1)