Did Feb 15/16 updates kill Z2M?

z2m have been working reliably for a few months and throughout dates. Today I updated whatever today’s update was.

It’s running in a VM in synology.

z2m now won’t start. Even after rebooting ha it is still like that

The logs:


[22:38:34] INFO: Preparing to start...
[22:38:34] INFO: Socat not enabled
[22:38:35] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info  2023-02-16 22:38:38: Logging to console and directory: '/config/zigbee2mqtt/log/2023-02-16.22-38-38' filename: log.txt
Zigbee2MQTT:info  2023-02-16 22:38:38: Starting Zigbee2MQTT version 1.30.1 (commit #unknown)
Zigbee2MQTT:info  2023-02-16 22:38:38: Starting zigbee-herdsman (0.14.89)
Zigbee2MQTT:error 2023-02-16 22:38:39: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-02-16 22:38:39: Failed to start zigbee
Zigbee2MQTT:error 2023-02-16 22:38:39: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-02-16 22:38:39: Exiting...
Zigbee2MQTT:error 2023-02-16 22:38:39: 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

Looked in the VM, the sonoff usb is still in the settings

No it’s still working fine. This is your problem:

That device can change. You need to specify the adaptor by serial id, which can’t change.

1 Like

I couldn’t find the instructions I used to originally set it up. I went and rolled back the virtual machine to yesterday and now everything works again

so it is this update which broke everything

Nope. It will happen again at random. You need to specify your adaptor correctly.

Mine is working fine on Z2M, even after the update of today. As Tom stated you need to use the id of the adaptor as it could well change if you don’t. The update may well be breaking yours but I think its your config that needs to nail down the adapter so it cant be changed. It’s not a fault of the update its more a consequence of doing it that causes your issue.

How do I find this id?

I can’t find the original YouTube instructions I used, but this is how the port came up when I first set up and it’s the only Port that works

Settings>Hardware>3dots>All Hardware

Look for the ttyUSB and the id is there

Thanks found it

/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0