I’ve been trying for a few days to use balena push
to update a device in offline-mode. Using the --debug
flag doesn’t show anything useful. Are there any other flags I can use to get more logs?
Inside the device docker images
shows the images I’ve been trying to push, but they never actually start.
Here are some logs:
[Debug] Using build source directory: .
[Debug] Pushing to local device: 192.168.0.16
[Debug] Checking we can access device
[Debug] Sending request to http://192.168.0.16:48484/ping
[Debug] Checking device supervisor version: 12.7.0
[Info] Starting build on device 192.168.0.16
[Debug] Loading project...
[Debug] Resolving project...
[Debug] docker-compose.yml file found at "."
[Debug] Creating project...
[Debug] Tarring all non-ignored files...
[Debug] Sending request to http://192.168.0.16:48484/v2/local/device-info
[Debug] Found build tasks:
[Debug] pihole: build [pihole]
[Debug] unbound: build [unbound]
[Debug] hostname: image pull [balenablocks/hostname:latest]
[Debug] proxy: build [proxy]
[Debug] db: image pull [mariadb:10.5.5]
[Debug] jellyfin: image pull [jellyfin/jellyfin]
[Debug] filebrowser: image pull [filebrowser/filebrowser]
[Debug] resilio-sync: image pull [lscr.io/linuxserver/resilio-sync]
[Debug] Resolving services with [raspberrypi3-64|aarch64]
[Debug] Found project types:
[Debug] pihole: Standard Dockerfile
[Debug] unbound: Standard Dockerfile
[Debug] hostname: External image
[Debug] proxy: Standard Dockerfile
[Debug] db: External image
[Debug] jellyfin: External image
[Debug] filebrowser: External image
[Debug] resilio-sync: External image
[Debug] Probing remote daemon for cache images
[Debug] Using 76 on-device images for cache...
[Debug] Starting builds...
[Build] [unbound] Step 1/5 : FROM klutchell/unbound-dnscrypt:1.13.1
[Build] [unbound] ---> 615317703a1b
[Build] [unbound] Step 2/5 : COPY a-records.conf unbound.conf /etc/unbound/
[Build] [unbound] ---> Using cache
[Build] [unbound] ---> 798213a26f5c
[Build] [unbound] Step 3/5 : HEALTHCHECK NONE
[Build] [unbound] Note: overriding previous HEALTHCHECK: [CMD dig sigok.verteiltesysteme.net @127.0.0.1]
[Build] [unbound] ---> Using cache
[Build] [unbound] ---> 715e83de9e91
[Build] [unbound] Step 4/5 : LABEL io.resin.local.image=1
[Build] [unbound] ---> Using cache
[Build] [unbound] ---> 31ad1b2b6502
[Build] [unbound] Step 5/5 : LABEL io.resin.local.service=unbound
[Build] [unbound] ---> Using cache
[Build] [unbound] ---> 17b3362e2388
[Build] [unbound] Successfully built 17b3362e2388
[Build] [unbound] Successfully tagged local_image_unbound:latest
[Build] [pihole] Step 1/20 : FROM pihole/pihole:latest
[Build] [pihole] ---> 6242151cb6de
[Build] [pihole] Step 2/20 : WORKDIR /usr/src/app
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 5b584762f4a5
[Build] [pihole] Step 3/20 : COPY cont-init.d/ /etc/cont-init.d/
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 9e0b9107a231
[Build] [pihole] Step 4/20 : COPY services/ /etc/services.d/
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 5a3813961ebe
[Build] [pihole] Step 5/20 : ENV DEBIAN_FRONTEND noninteractive
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> b4f9c13ca5db
[Build] [pihole] Step 6/20 : RUN sed '/$AUTHORIZED_HOSTNAMES = array(/ a "balena-devices.com",' -i /var/www/html/admin/scripts/pi-hole/php/auth.php
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 301825d62061
[Build] [pihole] Step 7/20 : RUN echo "bind-interfaces" >> /etc/dnsmasq.conf
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> e03a704c659b
[Build] [pihole] Step 8/20 : SHELL ["/bin/bash", "-o", "pipefail", "-c"]
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 241904b374ed
[Build] [pihole] Step 9/20 : ENV INTERFACE eth0
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 3599475e54e7
[Build] [pihole] Step 10/20 : ENV DNSMASQ_LISTENING single
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> e6b1bdfbdf6c
[Build] [pihole] Step 11/20 : ENV PIHOLE_DNS_ 1.1.1.1;1.0.0.1
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> b36db1121093
[Build] [pihole] Step 12/20 : ENV FONTFACE Terminus
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 4f019602bef0
[Build] [pihole] Step 13/20 : ENV FONTSIZE 8x14
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 38d74310054e
[Build] [pihole] Step 14/20 : ENV WEBPASSWORD guarani
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 35c30551a198
[Build] [pihole] Step 15/20 : ENV BLOCK 17:00
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 4d765f6d1b71
[Build] [pihole] Step 16/20 : ENV UNBLOCK 08:00
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 048b05e5ff83
[Build] [pihole] Step 17/20 : ENV TZ 'America/Sao_Paulo'
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> 7b691fb2f8a3
[Build] [pihole] Step 18/20 : ENV DBUS_SYSTEM_BUS_ADDRESS 'unix:path=/host/run/dbus/system_bus_socket'
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> e5d53f8ca623
[Build] [pihole] Step 19/20 : LABEL io.resin.local.image=1
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> ae59a1dd2a82
[Build] [pihole] Step 20/20 : LABEL io.resin.local.service=pihole
[Build] [pihole] ---> Using cache
[Build] [pihole] ---> f5a377ad64f9
[Build] [pihole] Successfully built f5a377ad64f9
[Build] [pihole] Successfully tagged local_image_pihole:latest
I’ve left this running all night, but it doesn’t finish.