Error starting Zigbee2mqtt

hi im having trouble with starting zigbee2mqtt. i just got my sonoff zigbee 3.0 dongle and tried to set it up and keep getting this error,

Zigbee2MQTT:info  2022-09-26 20:19:40: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info  2022-09-26 20:19:40: Starting zigbee-herdsman (0.14.53)
Zigbee2MQTT:error 2022-09-26 20:19:40: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-09-26 20:19:40: Failed to start zigbee
Zigbee2MQTT:error 2022-09-26 20:19:40: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-09-26 20:19:40: Exiting...
Zigbee2MQTT:error 2022-09-26 20:19:40: 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)
[20:19:40] INFO: Handing over control to Zigbee2MQTT Core ...

please help

Is it the new sonoff e dongle?
Then you need:

1 Like

Thanks for your reply. ive added the code to the configuration.yaml and now i am getting this

Zigbee2MQTT:info  2022-09-27 12:47:55: Logging to console and directory: '/config/zigbee2mqtt/log/2022-09-27.12-47-55' filename: log.txt
Zigbee2MQTT:info  2022-09-27 12:47:55: Starting Zigbee2MQTT version 1.27.2 (commit #unknown)
Zigbee2MQTT:info  2022-09-27 12:47:55: Starting zigbee-herdsman (0.14.53)
Zigbee2MQTT:error 2022-09-27 12:47:55: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2022-09-27 12:47:55: Failed to start zigbee
Zigbee2MQTT:error 2022-09-27 12:47:55: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
Zigbee2MQTT:error 2022-09-27 12:47:55: Exiting...
Zigbee2MQTT:error 2022-09-27 12:47:55: Error: No path provided and failed to auto detect path
    at Function.create (/app/node_modules/zigbee-herdsman/src/adapter/adapter.ts:81:23)
    at Controller.start (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:129:24)
    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)
[12:47:55] INFO: Handing over control to Zigbee2MQTT Core ...

any ideas?

So what path did you specify and is the device visible there?

Where can I find the path?

Post your z2m config here

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:
  adapter: ezsp

You are missing path to your usb coordinator. Here is my conbee2 as example:

serial:
  port: /dev/serial/by-id/usb-QEMU_QEMU_USB_SERIAL_1-0000:00:07.7-4-if00-port0
  adapter: deconz


i Just found this. is this the path?

Yes your path would be /dev/serial/by-id/usb-ITEAD_SONOFF…

Thank you so much. it is now working!

Tip if continue using Z2M is keep an eye on https://github.com/Koenkk/zigbee2mqtt/discussions and https://github.com/Koenkk/zigbee2mqtt/issues and https://github.com/Koenkk/zigbee2mqtt/releases

1 Like