Failed to start the zigbee module

Hello to all,

I’ve been stuck with my zigbee2mqtt module for a few days.
Mosquitto works fine and my zigbee key shows up in system information (CC2531).
Dialog is good when I test with MQTT explorer.

The zigbee2mqtt module logs are as follows:

[11:24:24] INFO: Preparing to start…
[11:24:27] INFO: Socat not enabled
[11:24:37] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:debug 2023-04-21 11:25:05: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info 2023-04-21 11:25:05: Logging to console and directory: ‘/config/zigbee2mqtt/log/2023-04-21.11-25-05’ filename: log.txt
Zigbee2MQTT:debug 2023-04-21 11:25:05: Removing old log directory ‘/config/zigbee2mqtt/log/2023-04-21.11-07-21’
Zigbee2MQTT:info 2023-04-21 11:25:05: Starting Zigbee2MQTT version 1.30.3 (commit #unknown)
Zigbee2MQTT:info 2023-04-21 11:25:05: Starting zigbee-herdsman (0.14.103)
Zigbee2MQTT:debug 2023-04-21 11:25:05: Using zigbee-herdsman with settings: ‘{“adapter”:{“concurrent”:null,“delay”:null,“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”:{“path”:“/dev/ttyACM0”}}’
Zigbee2MQTT:error 2023-04-21 11:25:07: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-04-21 11:25:07: Failed to start zigbee
Zigbee2MQTT:error 2023-04-21 11:25:07: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2023-04-21 11:25:07: Exiting…
Zigbee2MQTT:error 2023-04-21 11:25:08: Error: Error while opening serialport ‘Error: Error: No such file or directory, cannot open /dev/ttyACM0’
at SerialPort. (/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

Can you help me fix the problem?

Thanks

Go through the link that is right there in the log.

I just realized that I had changed ports during my various tests.
In reality, the error is as follows:

[11:52:58] INFO: Preparing to start…
[11:53:01] INFO: Socat not enabled
[11:53:12] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:debug 2023-04-21 11:53:42: Loaded state from file /config/zigbee2mqtt/state.json
Zigbee2MQTT:info 2023-04-21 11:53:43: Logging to console and directory: ‘/config/zigbee2mqtt/log/2023-04-21.11-53-42’ filename: log.txt
Zigbee2MQTT:debug 2023-04-21 11:53:43: Removing old log directory ‘/config/zigbee2mqtt/log/2023-04-21.11-19-09’
Zigbee2MQTT:info 2023-04-21 11:53:43: Starting Zigbee2MQTT version 1.30.3 (commit #unknown)
Zigbee2MQTT:info 2023-04-21 11:53:43: Starting zigbee-herdsman (0.14.103)
Zigbee2MQTT:debug 2023-04-21 11:53:43: Using zigbee-herdsman with settings: ‘{“adapter”:{“concurrent”:null,“delay”:null,“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”:{“path”:“/dev/ttyACM1”}}’
Zigbee2MQTT:error 2023-04-21 11:54:32: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-04-21 11:54:32: Failed to start zigbee
Zigbee2MQTT:error 2023-04-21 11:54:32: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2023-04-21 11:54:32: Exiting…
Zigbee2MQTT:error 2023-04-21 11:54:33: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
at ZStackAdapter.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:103:27)
at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:132:29)
at Zigbee.start (/app/lib/zigbee.ts:58:27)
at Controller.start (/app/lib/controller.ts:101:27)
at start (/app/index.js:107:5)

It may be from my adapter which is starting to age. I no longer have the necessary to flash it.
I’m going to have to think about buying a new one!

Have you done as I suggest?

Yes I tried.
However, there is something I don’t understand…
Without touching anything, before restarting the command “ls -l /dev/serial/by-id” told me that the zigbee module was plugged into port ttyACM1
And after reboot the port becomes ttyACM0.
Is this normal?

Yes, that is why you should use the path starting /dev/serial/by-id

1 Like