Hi @pipex,
OS: Windows 10 20H2 (build 19042.867)
The balena CLI was installed using the Windows installer from those instructions
Node: v15.8.0
The shell I am using is Git bash. I tried running the same command in cmd
, same bug happens.
I updated the CLI to 12.44.6, issue still happens. Adding the --debug
flag gives a bit more info about what is happening. The logs are received, but a parsing error occurs.
$ balena push <redacted>.local --debug
[debug] new argv=[C:\Program Files\balena-cli\client\bin\node.exe,C:\Program Files\balena-cli\client\bin\run,push,b1409e4.local] length=4
[Debug] Using build source directory: .
[Debug] Pushing to local device: <redacted>.local
[Debug] Checking we can access device
[Debug] Sending request to http://<redacted>:48484/ping
[Debug] Checking device supervisor version: 12.3.5
[Info] Starting build on device <redacted>
[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] Sending request to http://<redacted>:48484/v2/local/device-info
[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 25 on-device images for cache...
[Debug] Starting builds...
[Build] [main] Step 1/6 : FROM balenalib/raspberrypi4-64-node:12-run
[Build] [main] ---> 284c124f41f8
[Build] [main] Step 2/6 : WORKDIR /usr/src/app
[Build] [main] ---> Using cache
[Build] [main] ---> f2a0078917f4
[Build] [main] Step 3/6 : COPY index.js .
[Build] [main] ---> Using cache
[Build] [main] ---> 197678dad1b4
[Build] [main] Step 4/6 : CMD node index.js
[Build] [main] ---> Using cache
[Build] [main] ---> 37041df8de8c
[Build] [main] Step 5/6 : LABEL io.resin.local.image=1
[Build] [main] ---> Using cache
[Build] [main] ---> dcd3ba124f1e
[Build] [main] Step 6/6 : LABEL io.resin.local.service=main
[Build] [main] ---> Using cache
[Build] [main] ---> 2132a2fe7269
[Build] [main] Successfully built 2132a2fe7269
[Build] [main] Successfully tagged local_image_main:latest
[Debug] Setting device state...
[Debug] Sending request to http://<redacted>:48484/v2/local/target-state
[Debug] Sending target state: {"local":{"name":"<redacted>","config":{"HOST_CONFIG_disable_overscan":"1","HOST_CONFIG_gpu_mem":"128","HOST_CONFIG_hdmi_cvt":"1920 1080 60 1 0 0 0","HOST_CONFIG_hdmi_force_hotplug":"1","HOST_CONFIG_hdmi_group":"2","HOST_CONFIG_hdmi_mode":"87","HOST_CONFIG_dtoverlay":"\"vc4-fkms-v3d\"","HOST_CONFIG_dtparam":"\"i2c_arm=on\",\"spi=on\",\"audio=on\"","SUPERVISOR_DELTA_VERSION":"3","HOST_CONFIG_disable_splash":"1","HOST_CONFIG_enable_uart":"1","SUPERVISOR_DELTA":"1","SUPERVISOR_LOCAL_MODE":"1","SUPERVISOR_POLL_INTERVAL":"900000","SUPERVISOR_VPN_CONTROL":"true","SUPERVISOR_INSTANT_UPDATE_TRIGGER":"true","SUPERVISOR_CONNECTIVITY_CHECK":"true","SUPERVISOR_LOG_CONTROL":"true","SUPERVISOR_DELTA_REQUEST_TIMEOUT":"30000","SUPERVISOR_DELTA_APPLY_TIMEOUT":"0","SUPERVISOR_DELTA_RETRY_COUNT":"30","SUPERVISOR_DELTA_RETRY_INTERVAL":"10000","SUPERVISOR_OVERRIDE_LOCK":"false","SUPERVISOR_PERSISTENT_LOGGING":"false","HOST_FIREWALL_MODE":"off","HOST_DISCOVERABILITY":"true"},"apps":{"1":{"name":"localapp","commit":"localrelease","releaseId":"1","services":{"1":{"environment":{},"labels":{"io.resin.features.kernel-modules":"1","io.resin.features.firmware":"1","io.resin.features.dbus":"1","io.resin.features.supervisor-api":"1","io.resin.features.resin-api":"1"},"privileged":true,"tty":true,"restart":"always","network_mode":"host","volumes":["resin-data:/data"],"imageId":1,"serviceName":"main","serviceId":1,"image":"local_image_main:latest","running":true}},"volumes":{"resin-data":{}},"networks":{}}}},"dependent":{"apps":[],"devices":[]}}
[Debug] Sending request to http://<redacted>:48484/v2/local/target-state
[Info] Streaming device logs...
[Debug] Sending request to http://<redacted>:48484/v2/local/device-info
[Live] Watching for file changes...
[Live] Waiting for device state to settle...
[Debug] Device state not settled, retrying in 1000ms
[Debug] Dropping device log due to failed parsing: SyntaxError: Unexpected token { in JSON at position 184
[Debug] Dropping device log due to failed parsing: SyntaxError: Unexpected token { in JSON at position 184
[Live] Device state settled
[Debug] Dropping device log due to failed parsing: SyntaxError: Unexpected token { in JSON at position 184
[Debug] Dropping device log due to failed parsing: SyntaxError: Unexpected token { in JSON at position 184
[Debug] Dropping device log due to failed parsing: SyntaxError: Unexpected token { in JSON at position 184
[Debug] Dropping device log due to failed parsing: SyntaxError: Unexpected token { in JSON at position 184