Open hdelbers opened 2 weeks ago
Try this format in the composition. my z2m doesn't start without an adapter either, maybe that's the problem.
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto:latest
restart: unless-stopped
ports:
- "1883:1883/tcp"
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
stdin_open: true
tty: true
zigbee2mqtt:
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt
restart: unless-stopped
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
ports:
- "8020:8020"
environment:
- TZ=Europe/Moscow
volumes:
- ./zigbee2mqtt:/app/data
- /run/udev:/run/udev:ro
depends_on:
- mosquitto
I faced the same, then found that i have to remove the old backup json in the zigbee2mqtt folder, then all good, but still need to re-pair all the sensor again
I'm having same problem when updated to 1.40.0 (previously I was running 1.37.0) Trying previous versions I tried 1.39.1 and 1.39.0 and they both also failed. First version that seems to work is 1.38.0. Other further versions are continuously "restarting". As I dont find any comments about break changes on latetest versions I finally recovered the functionality by keeping 1.38.0 The problem seems to also affect to MQTT server since I needed to restart the docker between version changes.
What happened?
I tried to run zigbee2mqtt and mosquitto in a docker container.
mosquitto runs fine, I can publish messages from another PC and subscribe + read these messages.
zigbee2mqtt does not start and ends with "z2m: Error: startup failed - configuration-adapter mismatch - see logs above for more information". I can't find any helpfull information in logfiles.
What did you expect to happen?
I expected that it would start without errors and that I could connect to the internal website (http://192.168.2.73:8080/).
How to reproduce it (minimal and precise)
I reboot my PC which starts docker with mosquitto and zigbee2mqtt automatically.
Zigbee2MQTT version
1.40.0
Adapter firmware version
20240710
Adapter
SLZB-06
Setup
raspberry clone with mosquitto and zigbee2mqtt in docker
Debug log
log.log docker-compose.yml.gz