Hi,
I’m using localmode to push my application to a raspberry pi 4.
The application is currently very simple, just a single container in a docker compose file:
version: '2'
services:
influxdb:
build: influxdb
restart: on-failure
network_mode: host
volumes:
- 'influxdb-data:/var/lib/influxdb'
environment:
- INFLUXDB_ADMIN_USER=...
- INFLUXDB_ADMIN_PASSWORD=...
- INFLUXDB_DB=...
- INFLUXDB_USER=...
- INFLUXDB_USER_PASSWORD=...
volumes:
influxdb-data:
With influxdb/dockerfile:
FROM arm32v7/influxdb
# Add custom config.
COPY influxdb.conf /etc/influxdb/influxdb.conf
Using “balena push 192.168.20.121” works great the first time, the database is up and running and a I can query and write to it.
But if I ctrl-c the push process and restart it, it hangs after the following:
[Debug] Sending request to http://192.168.20.121:48484/v2/local/device-info
[Debug] Found build tasks:
[Debug] influxdb: build [influxdb]
[Debug] Resolving services with [raspberrypi4-64|aarch64]
[Debug] Found project types:
[Debug] influxdb: Standard Dockerfile
[Debug] Probing remote daemon for cache images
[Debug] Using 7 on-device images for cache...
[Debug] Starting builds...
[Build] [influxdb] Step 1/4 : FROM arm32v7/influxdb
[Build] [influxdb] ---> 1ca48fe485f8
[Build] [influxdb] Step 2/4 : COPY influxdb.conf /etc/influxdb/influxdb.conf
[Build] [influxdb] ---> Using cache
[Build] [influxdb] ---> ab245b41c115
[Build] [influxdb] Step 3/4 : LABEL io.resin.local.image=1
[Build] [influxdb] ---> Using cache
[Build] [influxdb] ---> 68ec72e9f753
[Build] [influxdb] Step 4/4 : LABEL io.resin.local.service=influxdb
[Build] [influxdb] ---> Using cache
[Build] [influxdb] ---> dd4bef6ae22a
[Build] [influxdb] Successfully built dd4bef6ae22a
[Build] [influxdb] Successfully tagged local_image_influxdb:latest
[Debug] Setting device state...
[Debug] Sending request to http://192.168.20.121:48484/v2/local/target-state
The container is never updated or restarted. Manually restarting the container over SSH does not help either. At this point I can only restart the raspberry pi or disable/enable localmode and run the push command again, until the next time I make changes to the docker-compose.yml file or any of the dockerfiles.
I’m running the latest version of balena-cli, 12.14.11
I’ve never had this problem in any of other balena applications.