Zigbee2MQTT addon cannot start: error undefined

Hi, I’m having trouble getting the add-ons to start for Zigbee2Mqtt

Config file:

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
mqtt: {}
serial:
  port: /dev/ttyACM0
  adapter: deconz

Error log:

Zigbee2MQTT:error 2022-07-12 17:42:43: undefined
[17:42:44] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-07-12 17:42:47: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-12.17-42-47' filename: log.txt
Zigbee2MQTT:info  2022-07-12 17:42:47: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info  2022-07-12 17:42:47: Starting zigbee-herdsman (0.14.40)
Zigbee2MQTT:error 2022-07-12 17:42:57: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-07-12 17:42:57: Failed to start zigbee
Zigbee2MQTT:error 2022-07-12 17:42:57: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-07-12 17:42:57: Exiting...
Zigbee2MQTT:error 2022-07-12 17:42:57: undefined
[17:42:57] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-07-12 17:42:59: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-12.17-42-59' filename: log.txt
Zigbee2MQTT:info  2022-07-12 17:42:59: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info  2022-07-12 17:42:59: Starting zigbee-herdsman (0.14.40)
Zigbee2MQTT:error 2022-07-12 17:43:09: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-07-12 17:43:09: Failed to start zigbee
Zigbee2MQTT:error 2022-07-12 17:43:09: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-07-12 17:43:09: Exiting...
Zigbee2MQTT:error 2022-07-12 17:43:09: undefined
[17:43:10] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-07-12 17:43:11: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-12.17-43-11' filename: log.txt
Zigbee2MQTT:info  2022-07-12 17:43:11: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info  2022-07-12 17:43:11: Starting zigbee-herdsman (0.14.40)
Zigbee2MQTT:error 2022-07-12 17:43:22: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-07-12 17:43:22: Failed to start zigbee
Zigbee2MQTT:error 2022-07-12 17:43:22: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-07-12 17:43:22: Exiting...
Zigbee2MQTT:error 2022-07-12 17:43:22: undefined
[17:43:23] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-07-12 17:43:25: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-12.17-43-25' filename: log.txt
Zigbee2MQTT:info  2022-07-12 17:43:25: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info  2022-07-12 17:43:25: Starting zigbee-herdsman (0.14.40)
Zigbee2MQTT:error 2022-07-12 17:43:35: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-07-12 17:43:35: Failed to start zigbee
Zigbee2MQTT:error 2022-07-12 17:43:35: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-07-12 17:43:35: Exiting...
Zigbee2MQTT:error 2022-07-12 17:43:35: undefined
[17:43:36] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-07-12 17:43:38: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-12.17-43-38' filename: log.txt
Zigbee2MQTT:info  2022-07-12 17:43:38: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info  2022-07-12 17:43:38: Starting zigbee-herdsman (0.14.40)
Zigbee2MQTT:error 2022-07-12 17:43:49: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-07-12 17:43:49: Failed to start zigbee
Zigbee2MQTT:error 2022-07-12 17:43:49: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-07-12 17:43:49: Exiting...
Zigbee2MQTT:error 2022-07-12 17:43:49: undefined
[17:43:50] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-07-12 17:43:52: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-12.17-43-52' filename: log.txt
Zigbee2MQTT:info  2022-07-12 17:43:52: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info  2022-07-12 17:43:52: Starting zigbee-herdsman (0.14.40)
Zigbee2MQTT:error 2022-07-12 17:44:03: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-07-12 17:44:03: Failed to start zigbee
Zigbee2MQTT:error 2022-07-12 17:44:03: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-07-12 17:44:03: Exiting...
Zigbee2MQTT:error 2022-07-12 17:44:03: undefined
[17:44:04] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-07-12 17:44:06: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-12.17-44-06' filename: log.txt
Zigbee2MQTT:info  2022-07-12 17:44:06: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info  2022-07-12 17:44:06: Starting zigbee-herdsman (0.14.40)
Zigbee2MQTT:error 2022-07-12 17:44:16: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-07-12 17:44:16: Failed to start zigbee
Zigbee2MQTT:error 2022-07-12 17:44:16: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-07-12 17:44:16: Exiting...
Zigbee2MQTT:error 2022-07-12 17:44:16: undefined
[17:44:17] INFO: Handing over control to Zigbee2MQTT Core ...
> [email protected] start
> node index.js
Zigbee2MQTT:info  2022-07-12 17:44:19: Logging to console and directory: '/config/zigbee2mqtt/log/2022-07-12.17-44-19' filename: log.txt
Zigbee2MQTT:info  2022-07-12 17:44:19: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info  2022-07-12 17:44:19: Starting zigbee-herdsman (0.14.40)

It seems the error is undefined and cannot see anything on the help page that would work?
I’ve tried re-installing the add-on but no luck.

Any ideas where i can start troublshooting next?

Assume you have a conbee2? Have you checked the conbee2 have current FW and that the serial is correct? your setup, is it a RPI or other hardware, or a virtual setup?

1 Like

Hi, I’m having trouble getting the add-ons to start for Zigbee2Mqtt as well.
I am a noob but I have been using ZHA with Sonoff dongle. It works very well, but I purchased some sensors that required Z2M, the maker suggested Z2M is better.
My log has some additional errors.
Interestingly there is nothing on the Configuration page except this message:
" This add-on does not expose configuration for you to mess with… "

[email protected] start
node index.js
Zigbee2MQTT:info 2022-07-20 08:30:01: Logging to console and directory: ‘/config/zigbee2mqtt/log/2022-07-20.08-30-01’ filename: log.txt
Zigbee2MQTT:info 2022-07-20 08:30:01: Starting Zigbee2MQTT version 1.26.0 (commit #unknown)
Zigbee2MQTT:info 2022-07-20 08:30:01: Starting zigbee-herdsman (0.14.40)
Zigbee2MQTT:error 2022-07-20 08:30:01: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-07-20 08:30:01: Failed to start zigbee
Zigbee2MQTT:error 2022-07-20 08:30:01: Check Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2022-07-20 08:30:01: Exiting…
Zigbee2MQTT:error 2022-07-20 08:30:01: 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)
[08:30:03] INFO: Handing over control to Zigbee2MQTT Core …

I’m also getting “Error while starting zigbee-herdsman” error.
How do I check if conbee2 has latest firmware?

As some here posted they were using ZHA if you have any other ZigBee setup already configured you can’t also setup Z2M with the same hardware device, a coordinator can’t be simultaneously used by 2 different integrations. As already noted make sure you have confirmed which device is your Conbee stick.

Edit: Also confirm if you’ve set anything in your configuration.yml that might be incorrect and causing Z2M to fail loading.

im havinf the same issue, i did previously have zha, however i delets all the devices than zha itself. Is my sonoff dongle still latched on to zha? how do i check if it it?

I am having the same issue. any help?

Zigbee2MQTT:info  2023-08-28 15:07:12: Logging to console and directory: '/app/data/log/2023-08-28.15-07-12' filename: log.txt
Zigbee2MQTT:info  2023-08-28 15:07:12: Starting Zigbee2MQTT version 1.30.1 (commit #eb878d3)
Zigbee2MQTT:info  2023-08-28 15:07:12: Starting zigbee-herdsman (0.14.89)
Zigbee2MQTT:error 2023-08-28 15:07:22: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2023-08-28 15:07:22: Failed to start zigbee
Zigbee2MQTT:error 2023-08-28 15:07:22: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2023-08-28 15:07:22: Exiting...
Zigbee2MQTT:error 2023-08-28 15:07:22: undefined
Using '/app/data' as data directory