zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Latest release 2.11.0 does not start with docker

Open pompilir opened this issue 6 months ago • 17 comments

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

pompilir avatar Jun 02 '26 08:06 pompilir

Hi. Please open the logs and read what error is preventing start-up. And upload them here.

andrei-lazarov avatar Jun 02 '26 08:06 andrei-lazarov

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

pompilir avatar Jun 02 '26 09:06 pompilir

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,

djurny avatar Jun 02 '26 09:06 djurny

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

pompilir avatar Jun 02 '26 09:06 pompilir

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.

djurny avatar Jun 02 '26 10:06 djurny

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

pompilir avatar Jun 02 '26 10:06 pompilir

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,

djurny avatar Jun 02 '26 13:06 djurny

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,

djurny avatar Jun 02 '26 14:06 djurny

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

pompilir avatar Jun 02 '26 14:06 pompilir

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,

djurny avatar Jun 03 '26 07:06 djurny

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

SgtZapper avatar Jun 06 '26 10:06 SgtZapper

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

pompilir avatar Jun 14 '26 18:06 pompilir

Solved by updating the libseccomp2 library. I had to download the trixie version but not it works well. These the steps I've followed:

  1. wget http://deb.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.6.0-2_arm64.deb
  2. sudo dpkg -i libseccomp2_2.6.0-2_arm64.deb
  3. sudo reboot Now I have z2m 2.12 working on my bookworm system

pompilir avatar Jun 19 '26 19:06 pompilir

Hi @pompilir , How did you find out it had to do with libseccomp2 ? Grt,

djurny avatar Jun 20 '26 00:06 djurny

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

pompilir avatar Jun 20 '26 05:06 pompilir

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.

Koenkk avatar Jun 20 '26 06:06 Koenkk

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

github-actions[bot] avatar Aug 20 '26 00:08 github-actions[bot]