After upgrade to 2.0.0.1 herdsman wil not start
What happened?
After upgrade herdsman wil not start, if i rollback to previous version all wil normal
What did you expect to happen?
Normal start
How to reproduce it (minimal and precise)
simpel after update zigbee2mqtt wil not start
Zigbee2MQTT version
Zigbee2MQTT Huidige versie: 2.0.0-1
Adapter firmware version
Firmware version: 20240710 v2.6.8.dev25
Adapter
SLZB-06
Setup
proxmox x86-64 i5
Debug log
[00:02:32] INFO: Preparing to start... [00:02:32] INFO: Socat not enabled [00:02:32] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-01-04 00:02:34] info: z2m: Logging to console, file (filename: log.log) [2025-01-04 00:02:34] info: z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown) [2025-01-04 00:02:34] info: z2m: Starting zigbee-herdsman (3.2.1) [2025-01-04 00:02:34] error: z2m: Error while starting zigbee-herdsman [2025-01-04 00:02:34] error: z2m: Failed to start zigbee-herdsman [2025-01-04 00:02:34] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-01-04 00:02:34] error: z2m: Exiting... [2025-01-04 00:02:34] error: z2m: Error: Cannot discover TCP adapters at this time. Specify valid 'adapter' and 'port' in your configuration. at findTCPAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:470:15) at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:496:26) at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:54) at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:38) at Zigbee.start (/app/lib/zigbee.ts:69:47) at Controller.start (/app/lib/controller.ts:142:13) at start (/app/index.js:161:5)
In the notes it says to add an entry:
adapter: zstack # <- it's probably this
to serial:
This solved that error for me, however I now get
[2025-01-03 23:14:25] error: z2m: Error while starting zigbee-herdsman
[2025-01-03 23:14:25] error: z2m: Failed to start zigbee-herdsman
[2025-01-03 23:14:25] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions
[2025-01-03 23:14:25] error: z2m: Exiting...
[2025-01-03 23:14:25] error: z2m: Error: Error: Not supported, cannot set
/app/node_modules/.pnpm/[email protected]/node_modules/readable-stream/lib/_stream_writable.js:264
var er = new ERR_STREAM_WRITE_AFTER_END();
^
Error: write after end
at writeAfterEnd (/app/node_modules/.pnpm/[email protected]/node_modules/readable-stream/lib/_stream_writable.js:264:12)
at DerivedLogger.Writable.write (/app/node_modules/.pnpm/[email protected]/node_modules/readable-stream/lib/_stream_writable.js:300:21)
at DerivedLogger.log (/app/node_modules/.pnpm/[email protected]/node_modules/winston/lib/winston/logger.js:231:12)
at Logger.log (/app/lib/util/logger.ts:198:25)
at Logger.info (/app/lib/util/logger.ts:211:14)
at Znp.onPortClose (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:88:16)
at Object.onceWrapper (node:events:633:26)
at SerialPort.emit (node:events:530:35)
at port.close.then.closing (/app/node_modules/.pnpm/@[email protected]/node_modules/@serialport/stream/dist/index.js:242:18)
To solve the above - put the right adaptor type in, for me on a sonoff-E - ezsp
Similar problem. I updated to HA 2025.1 and next spet to Zigbee2MQTT 2.0.0-1 - and after that addon Zigbee2MQTT can't start. In logs have message:
Logger: homeassistant.components.hassio Source: components/hassio/websocket_api.py:135 integration: Home Assistant Supervisor (documentation, issues) First occurred: 1:19:12 AM (1 occurrences) Last logged: 1:19:12 AM
Failed to to call /addons/45df7312_zigbee2mqtt/stats - Container addon_45df7312_zigbee2mqtt is not running
Youre compleetly right Problem Solved, Thanks a lot Wheelyjoe
Hi there!
Im having these problems after adding the adapter change as suggested:
Sonoff P dongle
serial: port: /dev/ttyUSB1 adapter: zstack
Log: [20:31:30] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [03-01-2025 20:31:31] info: z2m: Logging to console, file (filename: log.log) [03-01-2025 20:31:31] info: z2m: Starting Zigbee2MQTT version 2.0.0 (commit #unknown) [03-01-2025 20:31:31] info: z2m: Starting zigbee-herdsman (3.2.1) [03-01-2025 20:31:31] error: z2m: Error while starting zigbee-herdsman [03-01-2025 20:31:31] error: z2m: Failed to start zigbee-herdsman [03-01-2025 20:31:31] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [03-01-2025 20:31:31] error: z2m: Exiting... [03-01-2025 20:31:31] error: z2m: Error: USB adapter discovery error (No valid USB adapter found). Specify valid 'adapter' and 'port' in your configuration. at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:523:15) at processTicksAndRejections (node:internal/process/task_queues:105:5) at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:33) at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:24) at Zigbee.start (/app/lib/zigbee.ts:69:27) at Controller.start (/app/lib/controller.ts:142:13) at start (/app/index.js:161:5) [03-01-2025 20:31:31] error: z2m: If this happens after updating to Zigbee2MQTT 2.0.0, see https://github.com/Koenkk/zigbee2mqtt/discussions/24364
It getting late and I have no lights =P
Let me know if there any extra log needed @Koenkk
Thanks!
The same problem, i use tcp XZG-01 adapter. After update it stop working.
2025-01-04 00:33:42] error: z2m: Error: Cannot discover TCP adapters at this time. Specify valid 'adapter' and 'port' in your configuration. at findTCPAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:470:15) at discoverAdapter (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapterDiscovery.ts:496:26) at Function.create (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/adapter.ts:68:54) at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:132:38) at Zigbee.start (/app/lib/zigbee.ts:69:47) at Controller.start (/app/lib/controller.ts:142:13) at start (/app/index.js:161:5)
Can you explain how to solve? I have USB-Zigbee dongle CC2652P in one of ports in Pi 4B. Here screens from hardware and form Zigbee2MQTT settings. What changes I need ?
In the notes it says to add an entry:
adapter: zstack # <- it's probably thisto serial:
@wheelyjoe thanks for your hint - i hadn't read that anywhere and now everything works again!
but why does zstack have to be specified at all if this is the default and also matches the coordinator?
(i have a "cod.m Zigbee Coordinator CC2652P7 (CZC-1.0)" btw.)
Can you explain how to solve? I have USB-Zigbee dongle CC2652P in one of ports in Pi 4B. Here screens from hardware and form Zigbee2MQTT settings. What changes I need ?
![]()
Solved: add "adapter: zstack" after "port: /dev/ttyUSB0"
Just adding another data point that adding adapter: zstack fixed it for me as well.
For anyone seeing this - it depends on what device you use, I needed to use ezsp for my unflashed sonoff dongle E
Can you explain how to solve? I have USB-Zigbee dongle CC2652P in one of ports in Pi 4B. Here screens from hardware and form Zigbee2MQTT settings. What changes I need ?
![]()
Solved: add "adapter: zstack" after "port: /dev/ttyUSB0"
Worked for me as well, thanks!
I'm using an SLZB06m and on upgrade mine wouldn't start (herdsman crashed then would not connect to MQTT and got into a boot loop). I installed and started the Edge build, stopped it and started the production version and it works now so it looks like some migration failed.
For SLZB06, I used adapter: zstack as well, and it works.
for my Sonoff_Zigbee_3.0 zstack also did the trick
Dammit. I misspelled adapter: zstack as adaptor: zstack once I fixed that the (king's English) adaptor connected.
However even though I could see all my devices in the z2m web interface they were all missing in Home Assistant until I restarted Home Assistant.
我也是相同问题,在serial中添加adapter: zstack后恢复正常(xzg-01)
haos
docker
Hello everyone, what if I had this setting but now I have the same problem?
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: mqtt: server: mqtt://core-mosquitto:1883 base_topic: zigbee2mqt serial: port: tcp://192.168.1.11:6638
What needs to be changed?
To solve the above - put the right adaptor type in, for me on a sonoff-E - ezsp
I'm using a UZG-01 network adapter. What's the right "adapter" entry for that controller?
To solve the above - put the right adaptor type in, for me on a sonoff-E - ezsp
I'm using a UZG-01 network adapter. What's the right "adapter" entry for that controller?
For me zstack is working on my UZG-01
https://www.zigbee2mqtt.io/guide/configuration/adapter-settings.html#basic-configuration
https://www.zigbee2mqtt.io/guide/adapters/
