zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Zigbee2mqtt 1.21.0-1 Error while starting zigbee-herdsman

Open SmartM-ui opened this issue 5 years ago β€’ 153 comments

Hi, after updating the addon to version 1.21.0-1, I noticed that to display the cc2530 key I have to stop the addon, remove the key from the USB port, wait a few seconds, reconnect the USB key, start the addon.

I have to repeat this procedure every time I stop and start the component or simply restart it.

Returning to the previous version of the addon 1.20.0-1, however, I can restart the component and the key is seen immediately, without having to disconnect the USB key and carry out the procedure described above.

What can it be?

This is the log:

[12:57:46] INFO: Handing over control to Zigbee2mqtt Core ...

[email protected] start node index.js Zigbee2MQTT:error 2021-08-04 12:58:08: Error while starting zigbee-herdsman Zigbee2MQTT:error 2021-08-04 12:58:08: Failed to start zigbee Zigbee2MQTT:error 2021-08-04 12:58:08: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions Zigbee2MQTT:error 2021-08-04 12:58:08: Exiting... Zigbee2MQTT:error 2021-08-04 12:58:08: 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.js:67:27) at Controller.start (/app/lib/controller.js:106:27) at start (/app/index.js:94:5)

My system: HassOS: 6.2 Core: 2021.8.3 SuperVisor: 2021.06.08

Thanks

SmartM-ui avatar Aug 06 '21 23:08 SmartM-ui

I have the exact same problem. Running zigbee2mqtt as a docker

epicurean70 avatar Aug 07 '21 02:08 epicurean70

I also have this problem.when it running at docker.

FimaiTech avatar Aug 07 '21 03:08 FimaiTech

Could you post the herdsman debug log when starting with both 1.20.0 (working situation) and 1.21.0 (non working situation)?

See https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files.

Koenkk avatar Aug 07 '21 11:08 Koenkk

Could you post the herdsman debug log when starting with both 1.20.0 (working situation) and 1.21.0 (non working situation)?

See https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files.

Hi @Koenkk , thanks for the prompt reply. This is the code that is reported immediately after starting the addon in the working version 1.20.0-1:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] socat.sh: executing... [00:41:47] INFO: Socat not enabled, marking service as down [cont-init.d] socat.sh: exited 0. [cont-init.d] zigbee2mqtt.sh: executing... [00:41:47] INFO: MQTT available, fetching server detail ... [00:41:47] INFO: Previous config file found, checking backup [00:41:47] INFO: Creating backup config in '/share/zigbee2mqtt/.configuration.yaml.bk' [00:41:47] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ... [cont-init.d] zigbee2mqtt.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. [00:41:48] INFO: Zigbee Herdsman debug logging enabled [00:41:48] INFO: Handing over control to Zigbee2mqtt Core ...

[email protected] start /app node index.js 2021-08-07T22:41:50.547Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT' 2021-08-07T22:41:50.550Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"rtscts":false,"path":"/dev/ttyUSB0"},"databasePath":"/share/zigbee2mqtt/database.db","databaseBackupPath":"/share/zigbee2mqtt/database.db.backup","backupPath":"/share/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}' 2021-08-07T22:41:50.551Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyUSB0 and {"baudRate":115200,"rtscts":false,"autoOpen":false} 2021-08-07T22:41:50.566Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened 2021-08-07T22:41:51.044Z zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload 2021-08-07T22:41:51.045Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239]

2021-08-07T22:41:52.592Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] 2021-08-07T22:41:52.598Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,14,69,132,0,0,0,0,0,8,6,9,1,5,0,0,0,0,204] 2021-08-07T22:41:52.598Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,14,69,132,0,0,0,0,0,8,6,9,1,5,0,0,0,0,204] 2021-08-07T22:41:52.598Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,6,9,1,5,0,0,0,0] - 204 2021-08-07T22:41:52.598Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":6,"profileid":265,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} 2021-08-07T22:41:52.598Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] 2021-08-07T22:41:52.599Z zigbee-herdsman:adapter:zStack:znp:SREQ --> ZDO - simpleDescReq - {"dstaddr":0,"nwkaddrofinterest":0,"endpoint":5} 2021-08-07T22:41:52.599Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,5,37,4,0,0,0,0,5,33] 2021-08-07T22:41:52.609Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [254,1,101,4,0,96] 2021-08-07T22:41:52.609Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [254,1,101,4,0,96] 2021-08-07T22:41:52.609Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 1 - 3 - 5 - 4 - [0] - 96 2021-08-07T22:41:52.609Z zigbee-herdsman:adapter:zStack:znp:SRSP <-- ZDO - simpleDescReq - {"status":0} 2021-08-07T22:41:52.610Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] ... ...

This is the code that is reported in the working version 1.21.0, by removing the key and putting it back: [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] socat.sh: executing... [00:59:26] INFO: Socat not enabled, marking service as down [cont-init.d] socat.sh: exited 0. [cont-init.d] zigbee2mqtt.sh: executing... [00:59:26] INFO: MQTT available, fetching server detail ... [00:59:26] INFO: Previous config file found, checking backup [00:59:26] INFO: Creating backup config in '/share/zigbee2mqtt/.configuration.yaml.bk' [00:59:27] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ... [cont-init.d] zigbee2mqtt.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. [00:59:27] INFO: Zigbee Herdsman debug logging enabled [00:59:27] INFO: Handing over control to Zigbee2mqtt Core ...

[email protected] start node index.js 2021-08-07T22:59:30.375Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT' 2021-08-07T22:59:30.378Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"rtscts":false,"path":"/dev/ttyUSB0"},"databasePath":"/share/zigbee2mqtt/database.db","databaseBackupPath":"/share/zigbee2mqtt/database.db.backup","backupPath":"/share/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}' 2021-08-07T22:59:30.379Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyUSB0 and {"baudRate":115200,"rtscts":false,"autoOpen":false} 2021-08-07T22:59:30.405Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened 2021-08-07T22:59:30.407Z zigbee-herdsman:adapter:zStack:unpi:parser <-- [236] 2021-08-07T22:59:30.408Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [236] 2021-08-07T22:59:30.878Z zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload 2021-08-07T22:59:30.879Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239] 2021-08-07T22:59:33.320Z zigbee-herdsman:adapter:zStack:unpi:parser --> parsed 14 - 2 - 5 - 132 - [0,0,0,0,0,8,6,9,1,5,0,0,0,0] - 204 2021-08-07T22:59:33.320Z zigbee-herdsman:adapter:zStack:znp:AREQ <-- ZDO - simpleDescRsp - {"srcaddr":0,"status":0,"nwkaddr":0,"len":8,"endpoint":6,"profileid":265,"deviceid":5,"deviceversion":0,"numinclusters":0,"inclusterlist":[],"numoutclusters":0,"outclusterlist":[]} 2021-08-07T22:59:33.320Z zigbee-herdsman:adapter:zStack:unpi:parser --- parseNext [] ... ...

This is the code that is reported when the addon is restarted with version 1.21 and the key is no longer recognized correctly and the device sensors are no longer detected: [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] socat.sh: executing... [01:01:34] INFO: Socat not enabled, marking service as down [cont-init.d] socat.sh: exited 0. [cont-init.d] zigbee2mqtt.sh: executing... [01:01:34] INFO: MQTT available, fetching server detail ... [01:01:34] INFO: Previous config file found, checking backup [01:01:34] INFO: Creating backup config in '/share/zigbee2mqtt/.configuration.yaml.bk' [01:01:35] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ... [cont-init.d] zigbee2mqtt.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. [01:01:35] INFO: Zigbee Herdsman debug logging enabled [01:01:35] INFO: Handing over control to Zigbee2mqtt Core ...

[email protected] start node index.js 2021-08-07T23:01:38.070Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT' 2021-08-07T23:01:38.073Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"rtscts":false,"path":"/dev/ttyUSB0"},"databasePath":"/share/zigbee2mqtt/database.db","databaseBackupPath":"/share/zigbee2mqtt/database.db.backup","backupPath":"/share/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}' 2021-08-07T23:01:38.073Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyUSB0 and {"baudRate":115200,"rtscts":false,"autoOpen":false} 2021-08-07T23:01:38.090Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened 2021-08-07T23:01:38.567Z zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload 2021-08-07T23:01:38.567Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239] 2021-08-07T23:01:39.572Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-08-07T23:01:39.573Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] 2021-08-07T23:01:45.575Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-08-07T23:01:45.575Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] 2021-08-07T23:01:51.585Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-08-07T23:01:51.586Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] Zigbee2MQTT:error 2021-08-08 01:01:57: Error while starting zigbee-herdsman Zigbee2MQTT:error 2021-08-08 01:01:57: Failed to start zigbee Zigbee2MQTT:error 2021-08-08 01:01:57: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions Zigbee2MQTT:error 2021-08-08 01:01:57: Exiting... Zigbee2MQTT:error 2021-08-08 01:01:57: 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.js:67:27) at Controller.start (/app/lib/controller.js:106:27) at start (/app/index.js:94:5) [01:01:57] INFO: Zigbee Herdsman debug logging enabled [01:01:57] INFO: Handing over control to Zigbee2mqtt Core ... [email protected] start node index.js 2021-08-07T23:02:00.247Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT' 2021-08-07T23:02:00.250Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"rtscts":false,"path":"/dev/ttyUSB0"},"databasePath":"/share/zigbee2mqtt/database.db","databaseBackupPath":"/share/zigbee2mqtt/database.db.backup","backupPath":"/share/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}' 2021-08-07T23:02:00.251Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyUSB0 and {"baudRate":115200,"rtscts":false,"autoOpen":false} 2021-08-07T23:02:00.268Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened 2021-08-07T23:02:00.744Z zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload 2021-08-07T23:02:00.745Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239] 2021-08-07T23:02:01.748Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-08-07T23:02:01.750Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] 2021-08-07T23:02:07.752Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-08-07T23:02:07.753Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] 2021-08-07T23:02:13.760Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-08-07T23:02:13.761Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32]

Thanks again for this amazing add-on!

SmartM-ui avatar Aug 07 '21 23:08 SmartM-ui

same problem here…. you can find my log below:

Zigbee2MQTT:error 2021-08-02 01:09:42: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-08-02 01:09:42: Failed to start zigbee
Zigbee2MQTT:error 2021-08-02 01:09:42: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-08-02 01:09:42: Exiting...
Zigbee2MQTT:error 2021-08-02 01:09:42: 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.js:67:27)
    at Controller.start (/app/lib/controller.js:106:27)
    at start (/app/index.js:94:5))

thank you @Koenkk for your precious work

liuk4friends avatar Aug 08 '21 17:08 liuk4friends

same problem here…. you can find my log below:

Zigbee2MQTT:error 2021-08-02 01:09:42: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-08-02 01:09:42: Failed to start zigbee
Zigbee2MQTT:error 2021-08-02 01:09:42: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions
Zigbee2MQTT:error 2021-08-02 01:09:42: Exiting...
Zigbee2MQTT:error 2021-08-02 01:09:42: 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.js:67:27)
    at Controller.start (/app/lib/controller.js:106:27)
    at start (/app/index.js:94:5))

thank you @Koenkk for your precious work

same error for me, i tried reflashing the adapter, and using a new adapter but it still has the same problem since i upgraded to 1.21, i also tried with 1.21dev but it doesn't solve the problem.

robyevolution avatar Aug 09 '21 11:08 robyevolution

I started facing the same issue 2 days ago. I got two different adapters (LAUNCHXL-CC26X2R1 and CC2592) and getting the same issue. Below are the logs from herdsman:

  zigbee-herdsman:adapter:zStack:znp:log Serialport opened +8ms
  zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload +460ms
  zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239] +0ms
  zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} +0ms
  zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] +1s
  zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} +6s
  zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] +6s
  zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} +6s
  zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] +6s
Zigbee2MQTT:error 2021-08-10 12:47:49: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2021-08-10 12:47:49: Failed to start zigbee```

umairyounus avatar Aug 10 '21 12:08 umairyounus

Hi all, I add my experince about the same problem, using HA Supervised on a Proxmox VM, latest zigbee2mqtt edge addon (I can try with standard version but I read the problem is with the 2 addons version so I think is the same, because nothing works after a restart of the addons). Below my log, if this can help to solve the problem:

`[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] socat.sh: executing... [18:24:24] INFO: Socat not enabled, marking service as down [cont-init.d] socat.sh: exited 0. [cont-init.d] zigbee2mqtt.sh: executing... [18:24:24] INFO: MQTT available, fetching server detail ... [18:24:24] INFO: Previous config file found, checking backup [18:24:24] INFO: Creating backup config in '/share/zigbee2mqtt/.configuration.yaml.bk' [18:24:24] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ... [cont-init.d] zigbee2mqtt.sh: exited 0. [cont-init.d] done. [services.d] starting services [services.d] done. [18:24:25] INFO: Zigbee Herdsman debug logging enabled [18:24:25] INFO: Handing over control to Zigbee2mqtt Core ...

[email protected] start node index.js Zigbee2MQTT:debug 2021-08-10 18:24:28: Loaded state from file /share/zigbee2mqtt/state.json Zigbee2MQTT:info 2021-08-10 18:24:28: Logging to console and directory: '/share/zigbee2mqtt/log/2021-08-10.18-24-27' filename: log.txt Zigbee2MQTT:debug 2021-08-10 18:24:28: Removing old log directory '/share/zigbee2mqtt/log/2021-08-09.21-25-19' Zigbee2MQTT:info 2021-08-10 18:24:28: Starting Zigbee2MQTT version 1.21.0-dev (commit #911c3d2) Zigbee2MQTT:info 2021-08-10 18:24:28: Starting zigbee-herdsman (0.13.127) Zigbee2MQTT:debug 2021-08-10 18:24:28: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/share/zigbee2mqtt/coordinator_backup.json","databaseBackupPath":"/share/zigbee2mqtt/database.db.backup","databasePath":"/share/zigbee2mqtt/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyUSB0"}}' 2021-08-10T16:24:28.732Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT' 2021-08-10T16:24:28.735Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/ttyUSB0"},"databasePath":"/share/zigbee2mqtt/database.db","databaseBackupPath":"/share/zigbee2mqtt/database.db.backup","backupPath":"/share/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}' 2021-08-10T16:24:28.736Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyUSB0 and {"baudRate":115200,"rtscts":false,"autoOpen":false} 2021-08-10T16:24:28.745Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened 2021-08-10T16:24:29.204Z zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload 2021-08-10T16:24:29.205Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239] 2021-08-10T16:24:30.209Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-08-10T16:24:30.211Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] 2021-08-10T16:24:36.214Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-08-10T16:24:36.215Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] 2021-08-10T16:24:42.220Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1} 2021-08-10T16:24:42.221Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32] Zigbee2MQTT:error 2021-08-10 18:24:48: Error while starting zigbee-herdsman Zigbee2MQTT:error 2021-08-10 18:24:48: Failed to start zigbee Zigbee2MQTT:error 2021-08-10 18:24:48: Check https://www.zigbee2mqtt.io/information/FAQ.html#help-zigbee2mqtt-fails-to-start for possible solutions Zigbee2MQTT:error 2021-08-10 18:24:48: Exiting... Zigbee2MQTT:error 2021-08-10 18:24:48: 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.js:67:27) at Controller.start (/app/lib/controller.js:106:27) at start (/app/index.js:94:5) [18:24:48] INFO: Zigbee Herdsman debug logging enabled [18:24:48] INFO: Handing over control to Zigbee2mqtt Core ... [email protected] start node index.js`

My zigbee key are not flashable so I expect such a big project to continue being compatible with all kinds of zigbee keys, otherwise I don't see advantages to use zigbee over other connections, but we are all here to help solve problems.

fabioxp7980 avatar Aug 10 '21 16:08 fabioxp7980

Hello, Having the same problem as well. It's been working flawlessly for months before this happening. I also upgraded the usb stick (Zzh! CC2652R) to the latest version.

Is there a way to make this work back again? Is it possible to maybe install previous 1.20 version? Thanks!

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] socat.sh: executing... 
[00:25:46] INFO: Socat not enabled, marking service as down
[cont-init.d] socat.sh: exited 0.
[cont-init.d] zigbee2mqtt.sh: executing... 
[00:25:47] INFO: MQTT available, fetching server detail ...
[00:25:47] INFO: MQTT server settings not configured, trying to auto-discovering ...
[00:25:47] INFO: Configuring 'mqtt://core-mosquitto:1883' mqtt server
[00:25:47] INFO: MQTT credentials not configured, trying to auto-discovering ...
[00:25:47] INFO: Configuring'addons' mqtt user
[00:25:47] INFO: Previous config file found, checking backup
[00:25:47] INFO: Creating backup config in '/config/zigbee2mqtt/.configuration.yaml.bk'
[00:25:47] INFO: Adjusting Zigbee2mqtt core yaml config with add-on quirks ...
[cont-init.d] zigbee2mqtt.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[00:25:48] INFO: Zigbee Herdsman debug logging enabled
[00:25:48] INFO: Handing over control to Zigbee2mqtt Core ...
> [email protected] start
> node index.js
2021-08-10T22:25:51.388Z zigbee-herdsman:adapter Failed to validate path: 'Error: spawn udevadm ENOENT'
2021-08-10T22:25:51.400Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0"},"databasePath":"/config/zigbee2mqtt/database.db","databaseBackupPath":"/config/zigbee2mqtt/database.db.backup","backupPath":"/config/zigbee2mqtt/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}'
2021-08-10T22:25:51.401Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 and {"baudRate":115200,"rtscts":false,"autoOpen":false}
2021-08-10T22:25:51.408Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened

EDIT: Not entirely sure what happened or what I did, but without changing any configuration other than setting log_level: debug now it seems to be working

jcastro avatar Aug 10 '21 22:08 jcastro

Same error for me with CC2530

ykiv63 avatar Aug 11 '21 13:08 ykiv63

Same error for me with CC2530

Please guys, please, avoid "me too" posts

maxcanna avatar Aug 11 '21 13:08 maxcanna

Oh I realised what I've changed, I switch the USB stick to another port and restarted the whole computer

jcastro avatar Aug 11 '21 13:08 jcastro

Oh I realised what I've changed, I switch the USB stick to another port and restarted the whole computer

If I restart the computer, even without changing the USB port, the addon restarts, but the problem recurs if you restart the addon without restarting the computer

SmartM-ui avatar Aug 11 '21 13:08 SmartM-ui

Oh I realised what I've changed, I switch the USB stick to another port and restarted the whole computer

If I restart the computer, even without changing the USB port, the addon restarts, but the problem recurs if you restart the addon without restarting the computer

That's true! it seems only a temporary solution

jcastro avatar Aug 11 '21 13:08 jcastro

Hi, I have the same issue there is a way to came back to previous version with addon?

Thanks

michelebossa avatar Aug 11 '21 23:08 michelebossa

I found that if I unplug the zigbee stick from the usb port and replug it again, and then restart the zigbee2mqtt container, it would be ok. But its only temporary. my log is exactly the same as @robyevolution

epicurean70 avatar Aug 12 '21 00:08 epicurean70

Hi, I have the same issue there is a way to came back to previous version with addon?

Thanks

Avoid this kind of messages. They don't add anything useful but spam everyone. Furthermore you're off topic

maxcanna avatar Aug 12 '21 05:08 maxcanna

Hello,

have the same issue since I migrated to z2m 1.21. I'm using a CC2530+CC2591, the same setup works perfectly well if I down grade to version 1.18-1 or 1.17.0-1 (Home Assistant Add-on). this issue seems to be directly related to #8376 and @#8452

Regards

YassineBenayad avatar Sep 01 '21 10:09 YassineBenayad

Hi @Koenkk I have not read directions on resolving this problem in your latest version of the addon (1.21.1-1) Not being very present in the home and not being able to allow me to do tests, could you tell me if you managed to solve this problem and if you need further information to deal with it? Thanks again!

SmartM-ui avatar Sep 02 '21 15:09 SmartM-ui

Please provide the herdsman debug logging.

See https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files.

for the addon you can grab the logs by executing: docker logs ZIGBEE2MQTT_CONTAINER_ID > log.txt 2>&1

Koenkk avatar Sep 02 '21 15:09 Koenkk