Cannot start Zigbee2MQTT AddOn

I used ZHA before. When trying to switch to Zigbee2MQTT. I removed the integration with ZHA. When starting Z2M, the following error is displayed:

[17:48:29] INFO: Preparing to start…
[17:48:30] INFO: Socat not enabled
[17:48:31] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:info 2024-04-02 17:48:33: Logging to console and directory: ‘/config/zigbee2mqtt/log/2024-04-02.17-48-33’ filename: log.txt
Zigbee2MQTT:info 2024-04-02 17:48:33: Starting Zigbee2MQTT version 1.36.1 (commit #unknown)
Zigbee2MQTT:info 2024-04-02 17:48:33: Starting zigbee-herdsman (0.40.3)
Zigbee2MQTT:error 2024-04-02 17:48:33: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2024-04-02 17:48:33: Failed to start zigbee
Zigbee2MQTT:error 2024-04-02 17:48:33: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2024-04-02 17:48:33: Exiting…
Zigbee2MQTT:error 2024-04-02 17:48:33: Error: spawn udevadm ENOENT

  • at Process.ChildProcess._handle.onexit (node:internal/child_process:284:19)*
  • at onErrorNT (node:internal/child_process:477:16)*
  • at processTicksAndRejections (node:internal/process/task_queues:82:21)*

I use Aeotec Zi-Stick as a controller.
The device appears as /dev/ttyUSB0.
The entire HAOS is hosted on a Synology Virtual Machine.

You have to install / configure mqtt first. Without it z2m will not work. Have you installed / configured mqtt addon?

I installed Mosquitto broker for Tasmota configuration.

is it working?
As I remember you have to configure this z2m addon to point out to your mqtt ip, port and provide username and password for mqtt broker.

For Tasmota configuration works fine.

If you are sure that mqtt broker is configured properly in z2m the only thing left to check is config for a coordinator. Maybe it is wrong port, or it doesn’t have permission to access it.

Show your Zigbee2MQTT configuration.

Nn a completely new HAOS machine I set up only MQTT and Zigbee2MQTT and now I have the error:

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-04-02T16_44_39_134Z-debug.log
[18:44:39] INFO: Handing over control to Zigbee2mqtt Core …

> [email protected] start /app
> node index.js

Zigbee2MQTT:error 2024-04-02 18:45:00: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2024-04-02 18:45:00: Failed to start zigbee
Zigbee2MQTT:error 2024-04-02 18:45:00: Exiting…
Zigbee2MQTT:error 2024-04-02 18:45:00: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)

  • at ZStackAdapter. (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:94:31)*
  • at Generator.throw ()*
  • at rejected (/app/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)*
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] start: node index.js
    npm ERR! Exit status 1
    *npm ERR! *
    npm ERR! Failed at the [email protected] start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

If you don’t want to show your Zigbee2MQTT configuration.yaml, ok. But you have to make adjustments.
Zigbee2MQTT thinks you have a CCxxxx adapter, but you have a silabs adapter.

So add under serial

  adapter: ezsp

so (but keep your port, don’t copy mine)

1 Like

When I insert the adapter: ezsp entry, I cannot save the change.

Maybe try to install a recent zigbee2mqtt. That one is more then 3 years old.


OK, it’s running on the brand new HAOS. I will try to do exactly the same on my main HA

OK, everything is working fine. Or at least that’s what I think. Migration time.
Thanks for the help