Hi Felipe,
I’m using balena-cli 12.26.1 at the moment. I’m fine with updating it to 12.36.0, but I’m using openBalena and I’m not certain if the new version works with openBalena. But I’ll try.
About the logs:
[Debug] Setting device state...
[Debug] Sending request to http://192.168.10.40:48484/v2/local/target-state
[Debug] Sending target state: {"local":{"name":"development-rpi","config":{"SUPERVISOR_LOCAL_MODE":"1","HOST_CONFIG_dtoverlay":"pi3-miniuart-bt","HOST_CONFIG_enable_uart":"1","HOST_CONFIG_arm_64bit":"1","HOST_CONFIG_disable_splash":"1","HOST_CONFIG_dtparam":"\"i2c_arm=on\",\"spi=on\",\"audio=on\"","HOST_CONFIG_gpu_mem":"16","HOST_FIREWALL_MODE":"","SUPERVISOR_POLL_INTERVAL":"600000","SUPERVISOR_VPN_CONTROL":"true","SUPERVISOR_INSTANT_UPDATE_TRIGGER":"true","SUPERVISOR_CONNECTIVITY_CHECK":"true","SUPERVISOR_LOG_CONTROL":"true","SUPERVISOR_DELTA":"false","SUPERVISOR_DELTA_REQUEST_TIMEOUT":"30000","SUPERVISOR_DELTA_APPLY_TIMEOUT":"0","SUPERVISOR_DELTA_RETRY_COUNT":"30","SUPERVISOR_DELTA_RETRY_INTERVAL":"10000","SUPERVISOR_DELTA_VERSION":"2","SUPERVISOR_OVERRIDE_LOCK":"false","SUPERVISOR_PERSISTENT_LOGGING":"false","HOST_DISCOVERABILITY":"true"},"apps":{"1":{"name":"localapp","commit":"localrelease","releaseId":"1","services":{"1":{"environment":{},"labels":{},"restart":"always","network_mode":"host","imageId":1,"serviceName":"redis","serviceId":1,"image":"local_image_redis:latest","running":true},"2":{"environment":{"RS485_ENABLED":"1","SOCKET_ADDR":"/var/lib/container/communication.sock"},"labels":{},"restart":"always","devices":["/dev/ttyS0:/dev/ttyAMA0"],"cap_add":["SYS_RAWIO"],"volumes":["container_lib:/var/lib/container"],"imageId":2,"serviceName":"serial","serviceId":2,"image":"local_image_serial:latest","running":true},"3":{"environment":{"NODE_ENV":"development","UDEV":"on","DBUS_SYSTEM_BUS_ADDRESS":"unix:path=/host/run/dbus/system_bus_socket","SOCKET_ADDR":"/var/lib/container/communication.sock","EXPRESS_HOSTNAME":"127.0.0.1","QUEUE_WORKER_SPOTS":"4","MAX_WORKERS":"1","SERVER_API_ENDPOINT":"http://192.168.10.10:3000"},"labels":{"io.balena.features.supervisor-api":"1","io.balena.features.dbus":"1"},"restart":"always","network_mode":"host","cap_add":["NET_ADMIN"],"ports":["80:80"],"volumes":["container_lib:/var/lib/container"],"imageId":3,"serviceName":"system","serviceId":3,"image":"local_image_system:latest","running":true}},"volumes":{"container_lib":{}},"networks":{}}}},"dependent":{"apps":[],"devices":[]}}
[Debug] Sending request to http://192.168.10.40:48484/v2/local/target-state
The only problem is, the build and push is going fine. The containers are running fine. But after some hours (let’s say 5), the supervisor just kills the container. The balena push
command has already stopped at that time. It happens randomly afaik.