Zigbee2MQTT Bugging out every few days?

Hi all!

Guys; I am getting at my wits end with this issue so hoping for some usefull directions to fix this issue!

I am running into the following: I have my HA setup running for quite some time now without any real alteration. Z2MQTT working well for well over 2 years now but since a couple of months it bugs out; Every 2 to 5 days the connected devices i acces through zigbee2mqtt arent available. When i head to the addon it asks me to start it but remains in an sort off infinte starting loop and never really starts.
Restarting the home assistant system solves this bug. Everything works like it used to be and just starts up fine. But 2-5 days later rinse and repeat.

Finally this moment happens when i was able to do some log-hunting to get some info and found to parts.

First log info. This is before attempting to restart the addon

[10:05:33] INFO: Preparing to start...
[10:05:35] INFO: Socat not enabled
[10:05:42] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:debug 2024-03-10 10:06:07: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info  2024-03-10 10:06:07: Logging to console and directory: '/config/zigbee2mqtt/log/2024-03-10.10-06-06' filename: log.txt
Zigbee2MQTT:debug 2024-03-10 10:06:07: Removing old log directory '/config/zigbee2mqtt/log/2024-03-10.08-20-25'
Zigbee2MQTT:info  2024-03-10 10:06:07: Starting Zigbee2MQTT version 1.36.0 (commit #unknown)
Zigbee2MQTT:info  2024-03-10 10:06:07: Starting zigbee-herdsman (0.35.1)
Zigbee2MQTT:debug 2024-03-10 10:06:07: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":350,"disableLED":false},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"deconz","path":"/dev/ttyACM0"}}'
Zigbee2MQTT:error 2024-03-10 10:06:11: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2024-03-10 10:06:12: Failed to start zigbee
Zigbee2MQTT:error 2024-03-10 10:06:12: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2024-03-10 10:06:12: Exiting...
Zigbee2MQTT:error 2024-03-10 10:06:12: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyACM0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:202:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:82:22)
    at /app/node_modules/@serialport/stream/dist/index.js:118:18

Second part; After attempting to restart it but never really restarts:

[10:46:01] INFO: Preparing to start...
[10:46:04] INFO: Socat not enabled
[10:46:11] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:debug 2024-03-10 10:46:43: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info  2024-03-10 10:46:43: Logging to console and directory: '/config/zigbee2mqtt/log/2024-03-10.10-46-41' filename: log.txt
Zigbee2MQTT:debug 2024-03-10 10:46:43: Removing old log directory '/config/zigbee2mqtt/log/2024-03-10.10-00-07'
Zigbee2MQTT:info  2024-03-10 10:46:44: Starting Zigbee2MQTT version 1.36.0 (commit #unknown)
Zigbee2MQTT:info  2024-03-10 10:46:44: Starting zigbee-herdsman (0.35.1)
Zigbee2MQTT:debug 2024-03-10 10:46:44: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":350,"disableLED":false},"backupPath":"/config/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","databasePath":"/config/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"adapter":"deconz","path":"/dev/ttyACM0"}}'

I am running on a RPi3 dedicated. Everything updated to latest as of today.

Any help and guidance is much appreciated!

Seems like Zigbee2MQTT can’t connect to the serial port any more.

Maybe switch to the dedicated port /dev/serial/by-id/…

1 Like