Error while starting zigbee-herdsman Failed to start zigbee

I having the following error in the zigbee2mqtt repeatedly:

> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-05-28 19:41:23: Logging to console and directory: '/config/zigbee2mqtt/log/2022-05-28.19-41-18' filename: log.txt
Zigbee2MQTT:info  2022-05-28 19:41:23: Starting Zigbee2MQTT version 1.25.1 (commit #unknown)
Zigbee2MQTT:info  2022-05-28 19:41:23: Starting zigbee-herdsman (0.14.27)
Zigbee2MQTT:error 2022-05-28 19:41:44: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-05-28 19:41:44: Failed to start zigbee
Zigbee2MQTT:error 2022-05-28 19:41:44: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-05-28 19:41:44: Exiting...
Zigbee2MQTT:error 2022-05-28 19:41:44: 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:102:27)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:123:29)
    at Zigbee.start (/app/lib/zigbee.ts:58:27)
    at Controller.start (/app/lib/controller.ts:100:27)
    at start (/app/index.js:110:5)

i try already the help here Zigbee2MQTT fails to start | Zigbee2MQTT but not work.

How is you configuration file? Do you have the right path to the coordinator? Which coordinator are you using?

sorry i am new in this topic. I have at serial port: /dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_25_9B_B8_85-if00-port0 is that what you meant?

You got this from the HW information, right. It looks right, however I can not tell.

The USB dongle, remember to use a USB2 port and a long USB cabel extender, placing the coordinator far from everything. The zigbee dongles can be confused by nearby USB3 ports and Wifi accesspoints.

The Silicon labs stick, have you firmware upgraded it? With the Sonoff 3.0 it will not work without new firmware.

Now i have a new error I always get the following error. [09:51:25] INFO: Handing over control to Zigbee2mqtt Core ...> [email protected] - Pastebin.com as well as 502: Bad Gateway and I don’t know how to proceed

This is the error.
Zigbee2MQTT:error 2022-05-29 09:51:49: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined

How are you path defined?

Mine looks like this in the zigbee2mqtt - configuration.yaml

data_path: /config/zigbee2mqtt

I have a similar issue as @Flexmann, running on a RPi 4.

I have the Mosquitto broker add-on running with standard config.
I have the Zigbee2MQTT add-on runing with this config:

data_path: /config/zigbee2mqtt
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: '-d -d'
  log: false
  port: /dev/ttyUSB0
mqtt: {}
serial: {}

As the Zigbee Coordinator I have the Sonoff 3.0 (with flashed firmware) running in a USB 3.0 port with an extension cable, which I guess if fine, since I have just had ZHA running for over a month without any issues.
I have just tried using the USB 2.0 port, rebooting and testing with the same exact result.

I get the “502: Bad gateway” when accessing the Web UI, and the following error in log:

[20:52:57] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-07-06 20:53:04: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-06.20-53-04' filename: log.txt
Zigbee2MQTT:info  2022-07-06 20:53:04: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info  2022-07-06 20:53:04: Starting zigbee-herdsman (0.14.40)
Zigbee2MQTT:error 2022-07-06 20:53:04: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-07-06 20:53:04: Failed to start zigbee
Zigbee2MQTT:error 2022-07-06 20:53:04: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-07-06 20:53:04: Exiting...
Zigbee2MQTT:error 2022-07-06 20:53:04: Error: spawn udevadm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

And my Zigbee2MQTT/configuration.yaml looks like this:
data_path: /config/zigbee2mqtt

The port, are you sure it is correct. Most people have a long direct serial port number. You Sonoff 3.0 dongle, which firmware version have you installed?

Do you mean this?
I’m pretty sure, yeah.

Hi all!

Did anyone find a solution? I have the same issue, but I am running Home Assistant on a virtual machine on a NUC.
The problem started after I updated my Home Assistant OS to 9.3.

I have a similar configuration in Home Assistant as @mikkelsiggaard , but I have the CC2531 as Zigbee coordinator.

The error I’m getting is:
Zigbee2MQTT:info 2022-11-04 15:14:55: Logging to console and directory: ‘/config/zigbee2mqtt/log/2022-11-04.15-14-55’ filename: log.txt
Zigbee2MQTT:info 2022-11-04 15:14:55: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info 2022-11-04 15:14:55: Starting zigbee-herdsman (0.14.53)
Zigbee2MQTT:error 2022-11-04 15:15:02: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-11-04 15:15:02: Failed to start zigbee
Zigbee2MQTT:error 2022-11-04 15:15:02: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2022-11-04 15:15:02: Exiting…
Zigbee2MQTT:error 2022-11-04 15:15:02: Error: network commissioning failed - panId collision detected (expected=6754, actual=6755)
at ZnpAdapterManager.beginCommissioning (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:370:19)
at ZnpAdapterManager.start (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/manager.ts:77:17)
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:109:5)

I tried updating Zigbee2mqtt, but if I do that, the add-on will not start at all…

I’m still a newbee and I’m really stuck here. Can anyone help me out?

I have the same problem:

I have also the same problem!!
[11:39:29] INFO: Preparing to start…
[11:39:32] INFO: Socat not enabled
[11:39:38] INFO: Starting Zigbee2MQTT…
Zigbee2MQTT:info 2022-11-29 11:39:50: Logging to console and directory: ‘/config/zigbee2mqtt/log/2022-11-29.11-39-50’ filename: log.txt
Zigbee2MQTT:info 2022-11-29 11:39:50: Starting Zigbee2MQTT version 1.28.2 (commit #unknown)
Zigbee2MQTT:info 2022-11-29 11:39:50: Starting zigbee-herdsman (0.14.68)
Zigbee2MQTT:error 2022-11-29 11:39:51: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-11-29 11:39:51: Failed to start zigbee
Zigbee2MQTT:error 2022-11-29 11:39:51: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2022-11-29 11:39:51: Exiting…
Zigbee2MQTT:error 2022-11-29 11:39:51: Error: Error while opening serialport ‘Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2487124-if00’
at SerialPort. (/app/node_modules/zigbee-herdsman/src/adapter/deconz/driver/driver.ts:200:28)
at SerialPort._error (/app/node_modules/@serialport/stream/lib/index.js:198:14)
at /app/node_modules/@serialport/stream/lib/index.js:242:12

Having the same problem! Please, someone help…

I have the same problem too, i.e., it fails to start zigbee-herdsman for reasons unknown. I cannot figure out how to resolve this issue.

[22:38:09] INFO: Preparing to start...
[22:38:09] INFO: Socat not enabled
[22:38:10] INFO: Starting Zigbee2MQTT...
Zigbee2MQTT:info  2022-12-21 22:38:12: Logging to console and directory: '/config/zigbee2mqtt/log/2022-12-21.22-38-12' filename: log.txt
Zigbee2MQTT:info  2022-12-21 22:38:12: Starting Zigbee2MQTT version 1.28.4 (commit #unknown)
Zigbee2MQTT:info  2022-12-21 22:38:12: Starting zigbee-herdsman (0.14.76)
Zigbee2MQTT:error 2022-12-21 22:38:12: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-12-21 22:38:12: Failed to start zigbee
Zigbee2MQTT:error 2022-12-21 22:38:12: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-12-21 22:38:12: Exiting...
Zigbee2MQTT:error 2022-12-21 22:38:12: Error: spawn udevadm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

My Zigbee chip is Sonoff 3.0 USB Dongle Plus V2.

Hi Marko,

I had the exact same error message and was going in circles trying to figure it out.
Basically there are 2 versions of your stick with the same name.
There is -P version and -E version, as you can see in Supported Adapters | Zigbee2MQTT they actually mentioned it.

So -P version works out of the box but the -E not so much - the one I had.
If you have the -E version, same as me check this youtube video

However, while this did fix an issue of starting the zigbee-herdsman I was still getting a different error, I think ping 600. So I had to remove the newly created mqtt-user and leave that portion blank. Also if you are using RPi make sure dongle is connected to usb2.0 port.

in the end, I used the following configuration.yaml, which automatically added user/pass under mqtt field (not showed here)

homeassistant: true
mqtt:
  server: mqtt://core-mosquitto:1883
serial:
  port: >-
    /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220818082811-if00
  adapter: ezsp
9 Likes

Thanks man you made my day, writing the mqtt and serial infos to configuration.yaml of zigbee2mqtt make it works. Also i had to replace localhost with the local IP address…

2 Likes

Hello, i am having the same problem but i am running HA in the HA yellow with an integraded Zigbee adapter. i am a nooby in this so i hope that anyone can help me :slight_smile:

this is the error i am getting:

info 2023-01-20 18:07:01: Logging to console and directory: ‘/config/zigbee2mqtt/log/2023-01-20.18-07-01’ filename: log.txt
info 2023-01-20 18:07:01: Starting Zigbee2MQTT version 1.29.2 (commit #unknown)
info 2023-01-20 18:07:01: Starting zigbee-herdsman (0.14.83-hotfix.0)
error 2023-01-20 18:07:21: Error while starting zigbee-herdsman
error 2023-01-20 18:07:21: Failed to start zigbee
error 2023-01-20 18:07:21: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
error 2023-01-20 18:07:21: Exiting…
error 2023-01-20 18:07:22: 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)

and the configuration is:

This is the fix:

port: /dev/ttyACM0
adapter: deconz

Screenshot 2023-02-10 113945|539x500

2 Likes

thank you, it works for me :grinning:

Did you ever get this fixed. I have exactly the same error message, I can’t get z2m running.