Z2M died inexplicably :(

OK has anyone any ideas on why my USB dies inexplicably every few months?

I got home yesterday and realised, again, my landing lights are not working. Then realised pretty much all my zigbee devices are dead.

Here’s the z2mqtt start up logs…

[23:11:44] INFO: Preparing to start...
[23:11:45] INFO: Socat not enabled
[23:11:46] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info  2023-02-15 23:11:50: Logging to console and directory: '/config/zigbee2mqtt/log/2023-02-15.23-11-50' filename: log.txt
Zigbee2MQTT:info  2023-02-15 23:11:50: Starting Zigbee2MQTT version 1.30.1 (commit #unknown)
Zigbee2MQTT:info  2023-02-15 23:11:50: Starting zigbee-herdsman (0.14.89)
Zigbee2MQTT:error 2023-02-15 23:11:50: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-02-15 23:11:50: Failed to start zigbee
Zigbee2MQTT:error 2023-02-15 23:11:50: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-02-15 23:11:50: Exiting...
Zigbee2MQTT:error 2023-02-15 23:11:50: Error: Error while opening serialport 'Error: Error: No such file or directory, cannot open /dev/ttyUSB0'
    at SerialPort.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
    at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:76:22)
    at /app/node_modules/@serialport/stream/dist/index.js:112:18

I mentioned it previously (here) but surely I’m not going to have to keep reflashing the dongle every other month?

Which sonoff dongle?

Does dmesg give you any hardware clues?

Is your dongle plugged in directly or via a decent length of cable?

Via 2mtr cable & elevated up around 1.8mtrs from the NAS (which runs the VM for HA).

This one!

Huh? Sorry, I have no idea what dmsg is…

Cheap solution discovered… restored my VM from a few days before it went weird. Now working again as normal. Thanks for the help folks :slight_smile:

Have you tried using the id instead of TTYUSB ? There’s a post here about it

Thanks for this… so I’ve collected the ID but do not know where I am supposed to paste it?


Where you previously had the address, like /dev/ttyUSB0

Yep, I found it in the configuration.yaml and hashed out the /ttyusb0 and replaced it with the fuller ID. Thanks again :slight_smile: