Latest release 2.11.0 does not start with docker
What happened?
Hi,
after upgrading the z2m version from 2.10 to 2.11 the container fails to initialize. I get Restarting (132) 29 seconds ago. I had to switch back to the previous release to have it to work. I'm running it on a RPI 3B 6.12.87+rpt-rpi-v8
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
2.11
Adapter firmware version
Revision: 7.4.5 [GA]
Adapter
EmberZNet
Setup
z2m run as docker container on a RPI 3B
Device database.db entry
No response
Debug log
No response
Notes
No response
Hi. Please open the logs and read what error is preventing start-up. And upload them here.
z2m does not generate any log using the latest version. I'm able to find logs generated by the previous release. I guess something is preventing latest release of z2m to start, so logs are not generated
Hi there,
Can you run the container in the foreground? (I think you can do that with docker run ... without the -d option.) That way you might get some output before it crashes.
Alternatively, the regular [/app/data/] log/current/log.log in the container's persistent storage should have some output.
How are you starting your container? Groetjes,
I don't get any output by running with docker run (without the -d). I just see in the docker list that z2m is restarting... My configuration uses docker compose to run z2m zigbee2mqtt: container_name: zigbee2mqtt image: koenkk/zigbee2mqtt:2.11.0 (switched back to 2.10.1) ports: - 8080:8080 volumes: - ~/zigbee2mqtt:/app/data devices: - /dev/ttyUSB0:/dev/ttyUSB0 environment: - TZ=Europe/Rome restart: always depends_on: - mosquitto
Hi @pompilir, Sorry, perhaps I do not fully understand it.
Can you try it with:
docker container run --interactive --tty --name zigbee2mqtt --publish 8080:8080 --device /dev/ttyUSB0 -e 'TZ=Europe/Rome' --volume "${HOME}/zigbee2mqtt:/app/data" koenkk/zigbee2mqtt:2.11.0 ?
And of course as the user you normally docker compose stuff with to make sure ~ and ${HOME} expand properly.
Thx,
Edit: added --tty to make sure you get a terminal's view of the container.
once I run the following command it gives only this output:
docker container run --interactive --tty --name zigbee2mqtt2 --publish 8080:8080 --device /dev/ttyUSB0 -e 'TZ=Europe/Rome' --volume "/home/riccardo/zigbee2mqtt:/app/data" koenkk/zigbee2mqtt:2.11.0 Using '/app/data' as data directory Starting Zigbee2MQTT without watchdog.
Runnind docker ps -a then tells me: Exited (132) 8 seconds ago
Hi @pompilir.
You could try to run tail -F /home/riccardo/zigbee2mqtt/log/*/log.log & and try to start the container once more.
Check if any logging was written out...
Grt,
After some googling it seems that exitcode 132 means SIGILL, which may sound cool for those of us who grew up in the 90's. This means for some reason, docker or the container is trying to execute an instruction that is not known to the current hardware platform.
Not sure what could cause this though, you could try to docker image rm the latest image and re-download it?
Grt,
Hi, thanks for the support. I've tried with the tail -F but it shows me only the logs when I was running the 2.10.1 version, not the last one. Google says indeed is SIGILL but I don't know exactly. I'm running z2m on a RPI with bookworm raspios
Hi there,
Looks like index.js is being executed and the next step after displaying Starting Zigbee2MQTT without watchdog. is trying to import package.json, check if the it fond an acceptable version of node and to start onboarding.
Did you try with an (nearly) empty configuration.yaml and no extensions anywhere? Just to check if anything in there might cause this.
Grt,
Having the same problem after update and no log output. The only thing I can see in the syslog is it's having problems with the veth when trying to start "systemd-udevd[6899]: vethe552751: Failed to query device driver: No such device" but not sure if it is related.
Falling back to a docker image with 2.10.1 it works again.
Running on raspi2zero with bullseye and a conbee II 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
I confirm the problem is still present in the latest 2.12 version. @Koenkk at the moment I can run only the 2.10.1 version on docker. Somehow the new versions are restarting after few seconds and no log is generated. Maybe something related with old raspberry os? I have bookworm now installed. Thanks in advance
Solved by updating the libseccomp2 library. I had to download the trixie version but not it works well. These the steps I've followed:
- wget http://deb.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.6.0-2_arm64.deb
- sudo dpkg -i libseccomp2_2.6.0-2_arm64.deb
- sudo reboot Now I have z2m 2.12 working on my bookworm system
Hi @pompilir ,
How did you find out it had to do with libseccomp2 ?
Grt,
Hi @pompilir , How did you find out it had to do with
libseccomp2? Grt,
I found this thread https://github.com/Koenkk/zigbee2mqtt/issues/7662 The problem was rather similar. Since Trixie already comes with latest lib, the problem was related with older os versions
132 means an illegal instruction, aka one of the libraries that z2m uses does a CPU instruction which is not supported by the host. Updating your host OS to the latest version will likely solve it.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days