zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Z2M stops working after a few days

Open theFork opened this issue 6 years ago β€’ 97 comments

Abstract:

After some days of operation, my entire Zigbee system fails. No devices report and none can be controlled. Reconnecting the zzh coordinator (CC2652R) fixes the problem for a while.

System:

Version of Zigbee2Mqtt: 1.14.4 (Homeassistant Add-On) Coordinator: zig-a-zig-ah! (CC2652R) Coordinator version: 20200417 Host: NUC with Homeassisant

What happens:

In the Z2M log, I only see lines that look like that: No usual zigbee activity can be seen here:

Zigbee2MQTT:info  2020-09-08 18:24:00: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":[{"dateCode":"20200417","friendly_name":"Coordinator","ieeeAddr":"0x00124b001e17f0bd","lastSeen":1599582240103,"networkAddress":0,"softwareBuildID":"zStack3x0","type":"Coordinator"},{"dateCode":"20180517-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_kg_werk_flur","hardwareVersion":5,"ieeeAddr":"0x001fee00000030b7","lastSeen":1599475569798,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":58457,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20170718-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_eg_az_bad","hardwareVersion":5,"ieeeAddr":"0x001fee0000001815","lastSeen":1599475607620,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":58695,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20200609-DE-FB0","description":"Shutter control J1","friendly_name":"j1_rollo_eg_th","hardwareVersion":6,"ieeeAddr":"0x001fee0000003e72","lastSeen":1599475593189,"manufacturerID":4338,"manufacturerName":"ubisys","model":"J1","modelID":"J1 (5502)","networkAddress":45071,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20180920-DE-FB0","description":"Shutter control J1","friendly_name":"j1_rollo_eg_az","hardwareVersion":6,"ieeeAddr":"0x001fee0000002cad","lastSeen":1599475559565,"manufacturerID":4338,"manufacturerName":"ubisys","model":"J1","modelID":"J1 (5502)","networkAddress":26830,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20160516","description":"MiJia temperature & humidity sensor","friendly_name":"xiaq_klima_eg_kueche","hardwareVersion":30,"ieeeAddr":"0x00158d00023e2da5","lastSeen":1593372520673,"manufacturerID":4151,"manufacturerName":"LUMI","model":"WSDCGQ01LM","modelID":"lumi.sens","networkAddress":61795,"powerSource":"Battery","softwareBuildID":"3000-0001","type":"EndDevice","vendor":"Xiaomi"},{"dateCode":"20160516","description":"MiJia temperature & humidity sensor","friendly_name":"xiaq_klima_eg_az","hardwareVersion":30,"ieeeAddr":"0x00158d00023e2cb8","lastSeen":1599474402417,"manufacturerID":4151,"manufacturerName":"LUMI","model":"WSDCGQ01LM","modelID":"lumi.sensor_ht","networkAddress":11114,"powerSource":"Battery","softwareBuildID":"3000-0001","type":"EndDevice","vendor":"Xiaomi"},{"dateCode":"20160516","description":"MiJia temperature & humidity sensor","friendly_name":"xiaq_klima_eg_bad","hardwareVersion":30,"ieeeAddr":"0x00158d00023a3380","lastSeen":1593372772744,"manufacturerID":4151,"manufacturerName":"LUMI","model":"WSDCGQ01LM","modelID":"lumi.sens","networkAddress":44706,"powerSource":"Battery","softwareBuildID":"3000-0001","type":"EndDevice","vendor":"Xiaomi"},{"description":"MiJia temperature & humidity sensor","friendly_name":"xiaq_klima_kg_heiz","ieeeAddr":"0x00158d000208d6f8","lastSeen":1593374764809,"manufacturerID":4151,"manufacturerName":"LUMI","model":"WSDCGQ01LM","modelID":"lumi.sensor_ht","networkAddress":64345,"powerSource":"Battery","type":"EndDevice","vendor":"Xiaomi"},{"dateCode":"20170717-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_eg_flur_signal","hardwareVersion":5,"ieeeAddr":"0x001fee000000181e","lastSeen":1599475598564,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":10867,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20170522-DE-FB0","description":"Power switch S1","friendly_name":"s1_steckdose_garten","hardwareVersion":6,"ieeeAddr":"0x001fee0000001a7f","lastSeen":1599475557234,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S1","modelID":"S1 (5501)","networkAddress":61115,"powerSource":"Mains (single phase)","softwareBuildID":"","type":"Router","vendor":"Ubisys"},{"dateCode":"20190211-DE-FB0","description":"Control unit C4","friendly_name":"c4_eg_flur","hardwareVersion":3,"ieeeAddr":"0x001fee00000039c6","lastSeen":1599475554788,"manufacturerID":4338,"manufacturerName":"ubisys","model":"C4","modelID":"C4 (5504)","networkAddress":22880,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20180509-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_eg_th_garten","hardwareVersion":5,"ieeeAddr":"0x001fee0000001850","lastSeen":1599475570280,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":40104,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20191127-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_og_th","hardwareVersion":5,"ieeeAddr":"0x001fee00000058bf","lastSeen":1599475582971,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":50413,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20191127-DE-FB0","description":"Power switch S2","friendly_name":"s2_iicht_kg_flur_beet","hardwareVersion":5,"ieeeAddr":"0x001fee0000005747","lastSeen":1599475578048,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":62319,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20180522-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_og_flur","hardwareVersion":5,"ieeeAddr":"0x001fee00000030a7","lastSeen":1599475584236,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":53062,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20170302","description":"TRADFRI LED bulb E12/E14/E17 400 lumen, dimmable warm white, chandelier opal","friendly_name":"cube_tradfri_eg_flur","hardwareVersion":1,"ieeeAddr":"0x000b57fffe99aa9f","lastSeen":1599475595702,"manufacturerID":4476,"manufacturerName":"IKEA of Sweden","model":"LED1649C5","modelID":"TRADFRI bulb E14 W op/ch 400lm","networkAddress":42690,"powerSource":"Mains (single phase)","softwareBuildID":"1.2.214","type":"Router","vendor":"IKEA"},{"dateCode":"20180810-1","description":"E14 candle with white spectrum","friendly_name":"cube_innr_eg_wz_hinten","hardwareVersion":1,"ieeeAddr":"0x00158d00038f2a93","lastSeen":1599475589744,"manufacturerID":4454,"manufacturerName":"innr","model":"RB 248 T","modelID":"RB 248 T","networkAddress":44514,"powerSource":"Mains (single phase)","softwareBuildID":"2.0","type":"Router","vendor":"Innr"},{"dateCode":"20170302","description":"TRADFRI LED bulb E12/E14/E17 400 lumen, dimmable warm white, chandelier opal","friendly_name":"cube_tradfri_eg_kueche","hardwareVersion":1,"ieeeAddr":"0xd0cf5efffe72e953","lastSeen":1599475573845,"manufacturerID":4476,"manufacturerName":"IKEA of Sweden","model":"LED1649C5","modelID":"TRADFRI bulb E14 W op/ch 400lm","networkAddress":5027,"powerSource":"Mains (single phase)","softwareBuildID":"1.2.214","type":"Router","vendor":"IKEA"},{"dateCode":"20180810-1","description":"E14 candle with white spectrum","friendly_name":"cube_innr_eg_wz_vorne","hardwareVersion":1,"ieeeAddr":"0x00158d00038f2a98","lastSeen":1599475562957,"manufacturerID":4454,"manufacturerName":"innr","model":"RB 248 T","modelID":"RB 248 T","networkAddress":43197,"powerSource":"Mains (single phase)","softwareBuildID":"2.0","type":"Router","vendor":"Innr"},{"dateCode":"20170908","description":"Hue white and color ambiance E26/E27/E14","friendly_name":"cube_hue_eg_bad","hardwareVersion":1,"ieeeAddr":"0x00178801041b455f","lastSeen":1599475586682,"manufacturerID":4107,"manufacturerName":"Philips","model":"9290012573A","modelID":"LCT012","networkAddress":24413,"powerSource":"Mains (single phase)","softwareBuildID":"1.29.0_r21169","type":"Router","vendor":"Philips"},{"dateCode":"20170718-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_eg_bad_spiegelschrank","hardwareVersion":5,"ieeeAddr":"0x001fee00000017fd","lastSeen":1599475609558,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":27907,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20181022-DE-FB0","description":"Shutter control J1","friendly_name":"j1_rollo_eg_bad","hardwareVersion":6,"ieeeAddr":"0x001fee00000038c4","lastSeen":1599475591876,"manufacturerID":4338,"manufacturerName":"ubisys","model":"J1","modelID":"J1 (5502)","networkAddress":63077,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20180920-DE-FB0","description":"Shutter control J1","friendly_name":"j1_rollo_eg_ez","hardwareVersion":6,"ieeeAddr":"0x001fee0000002c65","lastSeen":1599475558914,"manufacturerID":4338,"manufacturerName":"ubisys","model":"J1","modelID":"J1 (5502)","networkAddress":3073,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20170111-DE-FB0","description":"Shutter control J1","friendly_name":"j1_rollo_eg_wz_west","hardwareVersion":5,"ieeeAddr":"0x001fee00000024e5","lastSeen":1599475612398,"manufacturerID":4338,"manufacturerName":"ubisys","model":"J1","modelID":"J1 (5502)","networkAddress":25941,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20170111-DE-FB0","description":"Shutter control J1","friendly_name":"j1_rollo_eg_wz_sued","hardwareVersion":5,"ieeeAddr":"0x001fee0000002517","lastSeen":1599475607114,"manufacturerID":4338,"manufacturerName":"ubisys","model":"J1","modelID":"J1 (5502)","networkAddress":38731,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20170315","description":"TRADFRI LED bulb E14/E26/E27 600 lumen, dimmable, color, opal white","friendly_name":"e27_tradfri_rgb","hardwareVersion":1,"ieeeAddr":"0xd0cf5efffe2926f9","lastSeen":1594040066719,"manufacturerID":4476,"manufacturerName":"IKEA of Sweden","model":"LED1624G9","modelID":"TRADFRI bulb E27 CWS opal 600lm","networkAddress":57311,"powerSource":"Mains (single phase)","softwareBuildID":"1.3.002","type":"Router","vendor":"IKEA"},{"dateCode":"20180921-DE-FB0","description":"Control unit C4","friendly_name":"c4_eg_wz","hardwareVersion":3,"ieeeAddr":"0x001fee0000002a44","lastSeen":1599475564967,"manufacturerID":4338,"manufacturerName":"ubisys","model":"C4","modelID":"C4 (5504)","networkAddress":30018,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20170718-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_eg_wz","hardwareVersion":5,"ieeeAddr":"0x001fee000000176d","lastSeen":1599475609392,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":46374,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20180813-1","description":"E27 bulb RGBW","friendly_name":"regal_innr_eg_ez","hardwareVersion":1,"ieeeAddr":"0x00158d0002d4a91c","lastSeen":1599475602655,"manufacturerID":4454,"manufacturerName":"innr","model":"RB 285 C","modelID":"RB 285 C","networkAddress":50066,"powerSource":"Mains (single phase)","softwareBuildID":"2.0","type":"Router","vendor":"Innr"},{"dateCode":"20170331","description":"TRADFRI LED bulb E26/E27 980 lumen, dimmable, white spectrum, opal white","friendly_name":"deckenlampe_tradfri_eg_az","hardwareVersion":1,"ieeeAddr":"0x90fd9ffffe8b2149","lastSeen":1599420900408,"manufacturerID":4476,"manufacturerName":"IKEA of Sweden","model":"LED1545G12","modelID":"TRADFRI bulb E27 WS opal 980lm","networkAddress":21288,"powerSource":"Mains (single phase)","softwareBuildID":"1.2.217","type":"Router","vendor":"IKEA"},{"dateCode":"20170214-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_eg_ez_kueche","hardwareVersion":5,"ieeeAddr":"0x001fee00000017c6","lastSeen":1599475579526,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":62029,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20161129-DE-FB0","description":"Power switch S1","friendly_name":"s1_steckdose_terrasse","hardwareVersion":5,"ieeeAddr":"0x001fee000000210f","lastSeen":1599475553711,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S1","modelID":"S1 (5501)","networkAddress":1030,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20170718-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_eg_terrasse","hardwareVersion":5,"ieeeAddr":"0x001fee000000182d","lastSeen":1599475561575,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":36181,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20180920-DE-FB0","description":"Shutter control J1","friendly_name":"j1_rollo_og_kind1","hardwareVersion":6,"ieeeAddr":"0x001fee0000002c7d","lastSeen":1599475593863,"manufacturerID":4338,"manufacturerName":"ubisys","model":"J1","modelID":"J1 (5502)","networkAddress":56347,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20181022-DE-FB0","description":"Shutter control J1","friendly_name":"j1_rollo_og_sz","hardwareVersion":6,"ieeeAddr":"0x001fee00000038cb","lastSeen":1599475562210,"manufacturerID":4338,"manufacturerName":"ubisys","model":"J1","modelID":"J1 (5502)","networkAddress":37057,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20180509-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_og_sz","hardwareVersion":5,"ieeeAddr":"0x001fee0000001791","lastSeen":1596267903613,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":39716,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20190211-DE-FB0","description":"Control unit C4","friendly_name":"c4_og_sz","hardwareVersion":3,"ieeeAddr":"0x001fee00000039c2","lastSeen":1599475587382,"manufacturerID":4338,"manufacturerName":"ubisys","model":"C4","modelID":"C4 (5504)","networkAddress":11041,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20170718-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_og_kind1","hardwareVersion":5,"ieeeAddr":"0x001fee00000017cd","lastSeen":1599475613511,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":8134,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20190211-DE-FB0","description":"Control unit C4","friendly_name":"c4_og_kind1","hardwareVersion":3,"ieeeAddr":"0x001fee0000003bc1","lastSeen":1599475559596,"manufacturerID":4338,"manufacturerName":"ubisys","model":"C4","modelID":"C4 (5504)","networkAddress":65078,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20190529-DE-FB0","description":"Power switch S1","friendly_name":"s1_steckdose_balkon","hardwareVersion":6,"ieeeAddr":"0x001fee0000004743","lastSeen":1599475569299,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S1","modelID":"S1 (5501)","networkAddress":19463,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"20191127-DE-FB0","description":"Power switch S2","friendly_name":"s2_licht_og_sz_boden","hardwareVersion":5,"ieeeAddr":"0x001fee000000578a","lastSeen":1599475579775,"manufacturerID":4338,"manufacturerName":"ubisys","model":"S2","modelID":"S2 (5502)","networkAddress":11849,"powerSource":"Mains (single phase)","type":"Router","vendor":"Ubisys"},{"dateCode":"","description":"Temperature & humidity sensor with display","friendly_name":"ts0201_klima_og_sz","hardwareVersion":1,"ieeeAddr":"0xec1bbdfffe863c4a","lastSeen":1596899573388,"manufacturerID":4098,"manufacturerName":"_TZ2000_a476raq2","model":"TS0201","modelID":"TS0201","networkAddress":19202,"powerSource":"Battery","type":"EndDevice","vendor":"TuYa"},{"dateCode":"20170302","description":"TRADFRI motion sensor","friendly_name":"motion_tradfri_kg_garage_klein","hardwareVersion":1,"ieeeAddr":"0x000b57fffe99f082","lastSeen":1599435423165,"manufacturerID":4476,"manufacturerName":"IKEA of Sweden","model":"E1525/E1745","modelID":"TRADFRI motion sensor","networkAddress":30546,"powerSource":"Battery","softwareBuildID":"1.2.214","type":"EndDevice","vendor":"IKEA"}],"type":"devices"}'

When I restart Z2M using the Homeassistant supervisor, I see this:

[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] done.
[services.d] starting services
[services.d] done.
./run.sh: line 17: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
[Info] Socat is DISABLED and not started
2020-09-08T18:34:09: PM2 log: Launching in no daemon mode
2020-09-08T18:34:09: PM2 log: App [npm:0] starting in -fork mode-
2020-09-08T18:34:09: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.14.4
> node index.js
Zigbee2MQTT:info  2020-09-08 18:34:09: Logging to console and directory: '/share/zigbee2mqtt/log/2020-09-08.18-34-09' filename: log.txt
Zigbee2MQTT:info  2020-09-08 18:34:10: Starting Zigbee2MQTT version 1.14.4 (commit #unknown)
Zigbee2MQTT:info  2020-09-08 18:34:10: Starting zigbee-herdsman...
Zigbee2MQTT:error 2020-09-08 18:34:29: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2020-09-08 18:34:29: Failed to start zigbee
Zigbee2MQTT:error 2020-09-08 18:34:29: Exiting...
Zigbee2MQTT:error 2020-09-08 18:34:29: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/zigbee2mqtt-1.14.4/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:90:31)
    at Generator.throw (<anonymous>)
    at rejected (/zigbee2mqtt-1.14.4/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm
 ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR!
 [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-09-08T16_34_29_597Z-debug.log
2020-09-08T18:34:30: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
2020-09-08T18:34:30: PM2 log: App [npm:0] starting in -fork mode-
2020-09-08T18:34:30: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.14.4
> node index.js
Zigbee2MQTT:info  2020-09-08 18:34:30: Logging to console and directory: '/share/zigbee2mqtt/log/2020-09-08.18-34-30' filename: log.txt
Zigbee2MQTT:info  2020-09-08 18:34:31: Starting Zigbee2MQTT version 1.14.4 (commit #unknown)
Zigbee2MQTT:info  2020-09-08 18:34:31: Starting zigbee-herdsman...
Zigbee2MQTT:error 2020-09-08 18:34:50: Error while starting zigbee-herdsman
Zigbee2MQTT:error 2020-09-08 18:34:50: Failed to start zigbee
Zigbee2MQTT:error 2020-09-08 18:34:50: Exiting...
Zigbee2MQTT:error 2020-09-08 18:34:50: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms)
    at ZStackAdapter.<anonymous> (/zigbee2mqtt-1.14.4/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:90:31)
    at Generator.throw (<anonymous>)
    at rejected (/zigbee2mqtt-1.14.4/node_modules/zigbee-herdsman/dist/adapter/z-stack/adapter/zStackAdapter.js:25:65)
npm
 ERR! code ELIFECYCLE
npm ERR! errno 1
npm
 ERR! [email protected] start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-09-08T16_34_50_695Z-debug.log
2020-09-08T18:34:51: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT]
2020-09-08T18:34:51: PM2 log: App [npm:0] starting in -fork mode-
2020-09-08T18:34:51: PM2 log: App [npm:0] online
> [email protected] start /zigbee2mqtt-1.14.4
> node index.js
Zigbee2MQTT:info  2020-09-08 18:34:52: Logging to console and directory: '/share/zigbee2mqtt/log/2020-09-08.18-34-52' filename: log.txt
Zigbee2MQTT:info  2020-09-08 18:34:52: Starting Zigbee2MQTT version 1.14.4 (commit #unknown)
Zigbee2MQTT:info  2020-09-08 18:34:52: Starting zigbee-herdsman...

And so on. This would repeat forever, until I disconnect and reconnect my ZZH coordinator. After this, the network comes up again.

Config

Maybe I should mention, that both features reporting and availability are enabled:

data_path: /share/zigbee2mqtt
devices: devices.yaml
groups: groups.yaml
homeassistant: false
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
...
serial:
  port: /dev/ttyUSB0
advanced:
  rtscts: false
  report: true
  channel: 11
  network_key:
...
  availability_timeout: 60
  availability_blacklist: []
...
ban: []
whitelist: []
queue: {}
socat:
  enabled: false
...

I`m afraid, that this is not enough information to analyze the issue. Is there anything I could fetch when the problem shows up the next time?

theFork avatar Sep 08 '20 16:09 theFork

Could you provide the herdsman debug logging of the moment it stops working?

To enable herdsman debug logging, see https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging

Koenkk avatar Sep 09 '20 08:09 Koenkk

Sure, I will enable it and post the log as soon as the issue reoccurs.

theFork avatar Sep 09 '20 09:09 theFork

I actually have a similar issue ongoing, although I'm on a CC2531 stick. This morning I've burned the source-routing code as I saw that was advised in earlier issues. A few hours later my zigbee netmap shows the coordinator with the a number of routers still attached and a sea of devices floating around without any connection. This started like 3 days ago. Restarting the zigbee2mqtt HA container does not help, I really had to pull the stick and re-insert it (before it was migrated to source-routing; I will try this now with the SR version). (stick: 20190619 source routing, z2m: 1.14.4) If it looses connectivity again, I shall enable hardsman debugging and try to find anything Edit: Interesting observation is that the coordinator still receives updates, it just can't talk to most of them

middelink avatar Sep 09 '20 13:09 middelink

I also have a similar issue since I've switched to 1.14.4 (hassio add-on).

My CC2531 sticks work for let's say max 2 days and then z2m becomes unresponsive. A reboot, restart of z2m or reconnect/re-seat of the USB stick doesn't seem to help. The only thing that helps is to actually reflash the stick with the latest firmware (20190619 default - so not source routing). Then it works for a few days and stops.

Nothing has changed to the set-up and no devices have been added. I have multiple CC2531 lying around and I am now rotating the sticks. If Z2M fails I stop the service, replace it with a reflashed CC2531 and start the service and all zigbee devices are back doing their things.

I just feels like they are overrun by something and then stop working. I read somewhere some old comment about nvram and reflashing it only helps. So I tried that and that helped for now.

I have seen several errors:

  • while the system was running happily "failed (Cannot request when znp has not been initialized yet)"

  • the typical no network route to host (probably some errors before - no logging anymore)

  • timeouts like: error 2020-09-07 19:26:39: Publish 'set' 'state' to '0xec1bbdfffeef2c76' failed: 'Error: Command 0xec1bbdfffeef2c76/1 genOnOff.off({}, {"timeout":10000,"disableResponse":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Timeout - 2562 - 1 - 203 - 6 - 11 after 10000ms)'

  • tonight 2020-09-09 18:29:04: Publish 'set' 'state' to '0x7cb03eaa0a0597b9' failed: 'Error: Command 0x7cb03eaa0a0597b9/3 genOnOff.off({}, {"timeout":10000,"disableResponse":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (SREQ '--> ZDO - extRouteDisc - {"dstAddr":30162,"options":0,"radius":30}' failed with status '(0xc7: NWK_TABLE_FULL)' (expected '(0x00: SUCCESS)'))'

I've just enabled herdsman debugging because I expect it to break anytime soon within two days, but maybe this already helps a bit.

Cheers,

Ramon

aBaDDoNNL avatar Sep 09 '20 18:09 aBaDDoNNL

@aBaDDoNNL

  • Looks like you are hitting the limits of the CC2531. How many devices do you have on your network?
  • 20190619 default is not a firmware, it's either default 20190608 or source routing 20190619. For max stability use the source routing fw instead of the default one. https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_Home_1.2/bin/source_routing

Koenkk avatar Sep 09 '20 18:09 Koenkk

@Koenkk

Thanks for the quick response.

Sorry, for the confusing. Currently I am back to the default 20190608 firmware: {'meta': {'maintrel': 3, 'majorrel': 2, 'minorrel': 6, 'product': 0, 'revision': 20190608, 'transportrev': 2}, 'type': 'zStack12'}

The source routing version I used a while ago, but that (as far as I recall caused me some issues when pairing/joining zigbee devices to the network).

It would be awkward to hit the limit just now after months not having added a new (or old device).

I have 10 routers and 15 other devices.

aBaDDoNNL avatar Sep 09 '20 18:09 aBaDDoNNL

@aBaDDoNNL I would recommend switching to the source routing fw in that case, in case you run into any pairing issues let me know if it cannot be fixed by stopping z2m, disconnect stick for a few seconds and replug.

This issue also happens earlier when using the availability feature: https://www.zigbee2mqtt.io/information/availability.html or when sending many commands at once.

Koenkk avatar Sep 09 '20 18:09 Koenkk

@Koenkk Ok I will look into the source routing firmware again.

But tbh I still find it awkward that it is happening now and a "clean" stick solves it for me. No changes to the sensors/zigbee device set-up. No changes in automation or configuration. And it happens even when actually nothing extra is happening (read it as ... motion sensors for example being triggered by a lot of movement / hitting/bashing switches).

I've enabled the extra debugging so let's see if I can get logging of the issue occurring again and then switch to the source routing fw. I'll report back when running into it with some logging and will move to the source routing fw after that.

BTW: I haven't enabled the availability feature which if I read correctly gets triggered by setting the availability_timeout, but I do notice that availability_blacklist: [] is there and probably came with a default hassio add-on config at some point. Not sure if this can also have influence although I guess not. I don't see these messages in the logs.

Thank you for responding and helping so far.

aBaDDoNNL avatar Sep 09 '20 19:09 aBaDDoNNL

@aBaDDoNNL I'm supprised switching sticks works without re-pairing. It would change the MAC address of the coordinator, and I think that is used in all kind of bindings.

middelink avatar Sep 10 '20 07:09 middelink

@middelink Nope it is not an issue as documented here:

https://www.zigbee2mqtt.io/information/what_does_and_doesnt_require_repairing.html

That's why I have a bunch of the same coordinators just in case lying around.

aBaDDoNNL avatar Sep 10 '20 09:09 aBaDDoNNL

I have the same issue after upgrade to the latest dev branch last 1.14.4-dev. My coordinator is 2530+2591 with source routing firmware. It stopped after a few hours and the only way to get z2m back on line is unplug the coordinator and plug it back in. It happened twice. So I went back to release that I had running before 1.14.2-dev and it has been rock solid for more than a week.

Claude2666 avatar Sep 10 '20 10:09 Claude2666

@Koenkk just for the sake of "might be interesting/useful". Here is logging of my Zigbee stopped working this afternoon. This is with the default firmware.

log.txt

I will now plug in a stick with the source routing fw.

aBaDDoNNL avatar Sep 10 '20 14:09 aBaDDoNNL

@aBaDDoNNL please provide the herdsman debug logging (provides much more insight in what is happening).

To enable herdsman debug logging, see https://www.zigbee2mqtt.io/information/debug.html#zigbee-herdsman-debug-logging

Koenkk avatar Sep 10 '20 18:09 Koenkk

@Koenkk Super sorry about this. I had the debug option set in the config yaml, but I most likely forgot to restart z2m. Because I never turned it on before I didn't notice extra prefix of herdsman in the logs which I do see know.

Currentl herdsman logging is turned on, but with the stick with source routing fw. Would you like me to go back to the default firmware or see for the time being how the source routing fw is behaving?

aBaDDoNNL avatar Sep 11 '20 07:09 aBaDDoNNL

Let's see how the source routing fw behaves.

Koenkk avatar Sep 11 '20 07:09 Koenkk

I have the same issue after upgrade to the latest dev branch last 1.14.4-dev. My coordinator is 2530+2591 with source routing firmware. It stopped after a few hours and the only way to get z2m back on line is unplug the coordinator and plug it back in. It happened twice. So I went back to release that I had running before 1.14.2-dev and it has been rock solid for more than a week.

How? Pulling 1.14.2 or 1.14.1 doesn't start because json-stable-stringify is missing (installed it by hand - but uuuuh).

Same issue here. Updated to 1.14.4 and everything stops after half an hour.

@Koenkk: Do you have any workaround available downgrading Z2M to the last stable Version, until this bug is fixed?

int2001 avatar Sep 11 '20 14:09 int2001

@int2001 do you use the availabilty feature? If so try disabling that, it seems to be the cause of the issue.

Koenkk avatar Sep 11 '20 14:09 Koenkk

Same issue here, since upgrading to 1.14.4 my Zigbee2MQTT has become very unstable en becomes unresponsive once or twice a day. Unplugging the CC2531 works sometimes, but sometimes I need to restart my NAS (Zigbee2MQTT on Docker).

I get the same error as OP, and eventually when Z2M starts I also get a lot of 'Failed to execute...' errors on almost all of my devices (17 devices in total and for around 13 devices Z2M gives this error). Besides that I get regular errors like: Publish 'set' 'state' to 'Garageverlichting' failed: 'Error: Command 0x00158d00040d30b3/2

Searching the issue-list it seems I get a mixure of three issues: the one from OP, the LQI and Error: Command 0x00

Don't use the availability feature. Tried downgrading to 1.14.3 but this did help Tried using the source firmware, this made my network even more unstable (all connections to coordinator are very weak and nothing works or with a lot of delay) Rolled back to default firmware, this kept the connections to coordinator weak and also made the connections from the devices to the router weak, only device to device connections are strong).

I ordered a stronger, better USB (slaesh’s CC2652RB stick) but this will take a few weeks to get here, so following this thread hoping a solution becomes available.

JHurk avatar Sep 11 '20 15:09 JHurk

availabilty

Tried both during the past 2 days. With availability_timeout: 60 and without. --> Doesn't matter. Always stops after 30min.

I'll try with my manually downgraded Z2M (1.14.1) and the "hand-installed" json-stable-stringify. It's now running for about 2h without any issue.

PS: Ordered a ConBee II because i thought it is a hardware-issue. Will try the Conbee II tomorrow with most recent Z2M

int2001 avatar Sep 11 '20 15:09 int2001

Please provide more logging of this, otherwise I have no clue what is going on (https://github.com/Koenkk/zigbee2mqtt/issues/4307#issuecomment-690601441)

Koenkk avatar Sep 11 '20 21:09 Koenkk