Z2M 1.41.0-1 restarts due CRC error
What happened?
Since updating to version 1.4.0, I’ve encountered an issue where this add-on restarts every night shortly after 00:00. It’s strange that this happens consistently at the same time each day, which prompted me to open this issue.
I haven’t set up any automations that would trigger a restart, nor anything related to MQTT that might cause this behavior. Prior to this, everything ran normally. However, starting from 1.4.0, I’m seeing CRC errors and timeouts just after midnight.
// UPDATE Right now it did crash again, see logs below
Here’s some additional context:
- Environment: I’m running this setup on Proxmox with Home Assistant OS.
- Zigbee Stick: I updated the Zigbee stick firmware when the Ember update was announced, and it worked without issues until version 1.4.0. The problem persists even after updating to 1.4.1.
- Logs: Reviewing the logs, I noticed that the CRC error and restart behavior started occurring with 1.4.0.
- Detection of Issue: I have a tamper sensor outside, and I recently created an automation that triggers a speaker alert when the tamper status changes. This is how I realized Z2M (Zigbee2MQTT) was restarting after midnight, as the automation would activate. Looking back through the logs, this issue was occurring even before I set up the automation, but I hadn’t noticed it.
To summarize, I haven’t made any changes to the server, Proxmox OS, or Zigbee stick other than the required update. My setup only undergoes a planned restart once a month for Home Assistant updates, and I haven’t modified or updated the Zigbee stick firmware beyond the initial Ember update.
What did you expect to happen?
That it doesn't restart at all, before version 1.40 it did work, especially 1.38.1
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.41.0-1
Adapter firmware version
7.4.1 [GA]
Adapter
Sonoff-E
Setup
Home assistant OS
Debug log
'{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":145.45,"indicator_mode":"off/on","linkquality":60,"power":0,"power_outage_memory":"on","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":226}'
[2024-11-08 00:00:47] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Oven', payload '{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":145.45,"indicator_mode":"off/on","linkquality":60,"power":0,"power_outage_memory":"on","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"update_available":false,"voltage":226}'
[2024-11-08 00:00:49] error: zh:ember:uart:ash: Received frame with CRC error
[2024-11-08 00:00:49] error: zh:ember:uart:ash: Received frame with CRC error
[2024-11-08 00:00:49] error: zh:ember:uart:ash: Received frame with CRC error
[2024-11-08 00:00:49] error: zh:ember:uart:ash: Received frame with CRC error
[2024-11-08 00:00:50] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/heater 2', payload '{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":997.82,"indicator_mode":"off/on","linkquality":92,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":77,"latest_version":192,"state":"available"},"update_available":null,"voltage":228}'
[2024-11-08 00:00:50] error: zh:ember:uart:ash: Received ERROR from adapter, with code=ERROR_EXCEEDED_MAXIMUM_ACK_TIMEOUT_COUNT.
[2024-11-08 00:00:50] error: zh:ember:uart:ash: ASH disconnected | Adapter status: ASH_NCP_FATAL_ERROR
[2024-11-08 00:00:50] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
[2024-11-08 00:00:50] error: zh:ember: Adapter fatal error: HOST_FATAL_ERROR
[2024-11-08 00:00:50] info: zh:ember:uart:ash: ASH COUNTERS since last clear:
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Total frames: RX=3411, TX=4221
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Cancelled : RX=0, TX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: DATA frames : RX=3405, TX=809
[2024-11-08 00:00:50] info: zh:ember:uart:ash: DATA bytes : RX=76793, TX=20496
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Retry frames: RX=5, TX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: ACK frames : RX=0, TX=3410
[2024-11-08 00:00:50] info: zh:ember:uart:ash: NAK frames : RX=0, TX=2
[2024-11-08 00:00:50] info: zh:ember:uart:ash: nRdy frames : RX=0, TX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: CRC errors : RX=4
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Comm errors : RX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Length < minimum: RX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Length > maximum: RX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Bad controls : RX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Bad lengths : RX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Bad ACK numbers : RX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Out of buffers : RX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Retry dupes : RX=3
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Out of sequence : RX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: ACK timeouts : RX=0
[2024-11-08 00:00:50] info: zh:ember:uart:ash: Port closed.
[2024-11-08 00:00:50] info: zh:ember:uart:ash: ======== ASH stopped ========
[2024-11-08 00:00:50] info: zh:ember:ezsp: ======== EZSP stopped ========
[2024-11-08 00:00:50] info: zh:ember: ======== Ember Adapter Stopped ========
[2024-11-08 00:00:50] error: z2m: Adapter disconnected, stopping
[2024-11-08 00:00:53] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"offline"}'
[2024-11-08 00:00:53] info: z2m: Disconnecting from MQTT server
[2024-11-08 00:00:53] info: z2m: Stopping zigbee-herdsman...
[2024-11-08 00:00:53] info: z2m: Stopped zigbee-herdsman
[2024-11-08 00:00:53] info: z2m: Stopped Zigbee2MQTT
[00:00:58] INFO: Preparing to start...
[00:00:59] INFO: Socat not enabled
[00:00:59] ERROR: Got unexpected response from the API: Service not enabled
[00:00:59] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-11-08 00:01:16] info: z2m: Logging to console, file (filename: log.log)
[2024-11-08 00:01:16] info: z2m: Starting Zigbee2MQTT version 1.41.0 (commit #unknown)
[2024-11-08 00:01:16] info: z2m: Starting zigbee-herdsman (2.1.7)
[2024-11-08 00:01:18] info: zh:ember: Using default stack config.
[2024-11-08 00:01:18] info: zh:ember: ======== Ember Adapter Starting ========
[2024-11-08 00:01:18] info: zh:ember:ezsp: ======== EZSP starting ========
[2024-11-08 00:01:18] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-11-08 00:01:18] info: zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-11-08 00:01:18] info: zh:ember:uart:ash: Serial port opened
[2024-11-08 00:01:18] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-11-08 00:01:19] info: zh:ember:uart:ash: ======== ASH connected ========
[2024-11-08 00:01:19] info: zh:ember:uart:ash: ======== ASH started ========
[2024-11-08 00:01:19] info: zh:ember:ezsp: ======== EZSP started ========
[2024-11-08 00:01:19] info: zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched.
[2024-11-08 00:01:19] info: zh:ember: Adapter version info: {"ezsp":13,"revision":"7.4.1 [GA]","build":0,"major":7,"minor":4,"patch":1,"special":0,"type":170}
[2024-11-08 00:01:20] info: zh:ember: [STACK STATUS] Network up.
[2024-11-08 00:01:20] info: zh:ember: [INIT TC] Adapter network matches config.
[2024-11-08 00:01:20] info: zh:ember: [CONCENTRATOR] Started source route discovery. 1247ms until next broadcast.
[2024-11-08 00:01:20] info: z2m: zigbee-herdsman started (resumed)
[2024-11-08 00:01:20] info: z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":1,"revision":"7.4.1 [GA]","special":0,"type":170},"type":"EmberZNet"}'
Logs after second crash during the day
{"installed_version":69,"latest_version":69,"state":"idle"},"update_available":null,"voltage":226}'
[2024-11-08 15:42:41] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Solar2', payload '{"current":0.58,"energy":1143.27,"indicator_mode":"off/on","linkquality":104,"over_current_breaker":"ON","over_current_threshold":16,"over_voltage_breaker":"OFF","over_voltage_threshold":265,"power":8,"power_breaker":"OFF","power_outage_memory":"off","power_threshold":4,"state":"ON","temperature":24.58,"temperature_breaker":"ON","temperature_threshold":100,"under_voltage_breaker":"OFF","under_voltage_threshold":75,"update":{"installed_version":69,"latest_version":69,"state":"idle"},"update_available":null,"voltage":226}'
[2024-11-08 15:42:45] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Mantequilla_light', payload '{"child_lock":"LOCK","countdown":0,"current":2.28,"energy":470.76,"indicator_mode":"off/on","linkquality":124,"power":391,"power_outage_memory":"on","state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":"available"},"update_available":null,"voltage":222}'
[2024-11-08 15:42:56] error: zh:ember:uart:ash: Received frame with CRC error
[2024-11-08 15:42:56] error: zh:ember:uart:ash: Received ERROR from adapter, with code=ERROR_EXCEEDED_MAXIMUM_ACK_TIMEOUT_COUNT.
[2024-11-08 15:42:56] error: zh:ember:uart:ash: ASH disconnected | Adapter status: ASH_NCP_FATAL_ERROR
[2024-11-08 15:42:56] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
[2024-11-08 15:42:56] error: zh:ember: Adapter fatal error: HOST_FATAL_ERROR
[2024-11-08 15:42:56] info: zh:ember:uart:ash: ASH COUNTERS since last clear:
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Total frames: RX=2403, TX=2984
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Cancelled : RX=0, TX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: DATA frames : RX=2393, TX=581
[2024-11-08 15:42:56] info: zh:ember:uart:ash: DATA bytes : RX=52921, TX=14724
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Retry frames: RX=9, TX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: ACK frames : RX=0, TX=2401
[2024-11-08 15:42:56] info: zh:ember:uart:ash: NAK frames : RX=0, TX=2
[2024-11-08 15:42:56] info: zh:ember:uart:ash: nRdy frames : RX=0, TX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: CRC errors : RX=3
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Comm errors : RX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Length < minimum: RX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Length > maximum: RX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Bad controls : RX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Bad lengths : RX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Bad ACK numbers : RX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Out of buffers : RX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Retry dupes : RX=7
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Out of sequence : RX=0
[2024-11-08 15:42:56] info: zh:ember:uart:ash: ACK timeouts : RX=0
[2024-11-08 15:42:56] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
[2024-11-08 15:42:56] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
[2024-11-08 15:42:56] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
[2024-11-08 15:42:56] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
[2024-11-08 15:42:56] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
[2024-11-08 15:42:56] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
[2024-11-08 15:42:56] error: zh:ember:uart:ash: Error while parsing received frame, status=ASH_NCP_FATAL_ERROR.
[2024-11-08 15:42:56] info: zh:ember:uart:ash: Port closed.
[2024-11-08 15:42:56] info: zh:ember:uart:ash: ======== ASH stopped ========
[2024-11-08 15:42:56] info: zh:ember:ezsp: ======== EZSP stopped ========
[2024-11-08 15:42:56] info: zh:ember: ======== Ember Adapter Stopped ========
[2024-11-08 15:42:56] error: z2m: Adapter disconnected, stopping
[2024-11-08 15:43:00] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"offline"}'
[2024-11-08 15:43:00] info: z2m: Disconnecting from MQTT server
[2024-11-08 15:43:00] info: z2m: Stopping zigbee-herdsman...
[2024-11-08 15:43:00] info: z2m: Stopped zigbee-herdsman
[2024-11-08 15:43:00] info: z2m: Stopped Zigbee2MQTT
[15:43:04] INFO: Preparing to start...
[15:43:04] INFO: Socat not enabled
[15:43:05] ERROR: Got unexpected response from the API: Service not enabled
[15:43:05] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-11-08 15:43:20] info: z2m: Logging to console, file (filename: log.log)
[2024-11-08 15:43:20] info: z2m: Starting Zigbee2MQTT version 1.41.0 (commit #unknown)
[2024-11-08 15:43:20] info: z2m: Starting zigbee-herdsman (2.1.7)
[2024-11-08 15:43:22] info: zh:ember: Using default stack config.
[2024-11-08 15:43:22] info: zh:ember: ======== Ember Adapter Starting ========
[2024-11-08 15:43:22] info: zh:ember:ezsp: ======== EZSP starting ========
[2024-11-08 15:43:22] info: zh:ember:uart:ash: ======== ASH Adapter reset ========
[2024-11-08 15:43:22] info: zh:ember:uart:ash: RTS/CTS config is off, enabling software flow control.
[2024-11-08 15:43:22] info: zh:ember:uart:ash: Serial port opened
[2024-11-08 15:43:22] info: zh:ember:uart:ash: ======== ASH starting ========
[2024-11-08 15:43:23] info: zh:ember:uart:ash: ======== ASH connected ========
[2024-11-08 15:43:23] info: zh:ember:uart:ash: ======== ASH started ========
[2024-11-08 15:43:23] info: zh:ember:ezsp: ======== EZSP started ========
[2024-11-08 15:43:23] info: zh:ember: Adapter EZSP protocol version (13) lower than Host. Switched.
[2024-11-08 15:43:23] info: zh:ember: Adapter version info: {"ezsp":13,"revision":"7.4.1 [GA]","build":0,"major":7,"minor":4,"patch":1,"special":0,"type":170}
[2024-11-08 15:43:24] info: zh:ember: [STACK STATUS] Network up.
[2024-11-08 15:43:24] info: zh:ember: [INIT TC] Adapter network matches config.
[2024-11-08 15:43:24] info: zh:ember: [CONCENTRATOR] Started source route discovery. 1248ms until next broadcast.
[2024-11-08 15:43:24] info: z2m: zigbee-herdsman started (resumed)
[2024-11-08 15:43:24] info: z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":1,"revision":"7.4.1 [GA]","special":0,"type":170},"type":"EmberZNet"}'
[2024-11-08 15:43:24] info: z2m: Router1 (0x00124b0014da4b41): CC2530.ROUTER - Custom devices (DiY) CC2530 router (Router)
[2024-11-08 15:43:24] info: z2m: Router2 (0x00124b001cde5138): CC2530.ROUTER - Custom devices (DiY) CC2530 router (Router)
[2024-11-08 15:43:24] info: z2m: Caralarm (0x680ae2fffe0a3504): HG06335/HG07310 - Lidl Silvercrest smart motion sensor (EndDevice)
[2024-11-08 15:43:24] info: z2m: Router3 (0x00124b0014d9af3b): CC2530.ROUTER - Custom devices (DiY) CC2530 router (Router)
[2024-11-08 15:43:24] info: z2m: c (0xa4c1382048815501): TS011F_plug_1 - Tuya Smart plug (with power monitoring) (Router)
[2024-11-08 15:43:24] info: z2m: Left (0x5c0272fffec2115e): TS0601_cover_1 - Tuya Curtain motor/roller blind motor/window pusher/tubular motor (EndDevice)
[2024-11-08 15:43:24] info: z2m: Mantequilla_light (0xa4c138fb51e19150): TS011F_plug_1 - Tuya Smart plug (with power monitoring) (Router)
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days