zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Zigbee2MQTT terminates after approx. 5h and does not restart

Open hesst opened this issue 1 year ago • 4 comments

What happened?

Zigbee2MQTT(Home Assistant addon) terminates after approx. 5h and does not restart

Image

Image

Image

Zigbee2MQTT log:

[2025-06-19 23:34:33] error: zh:zstack:znp: Socket error Error: read ETIMEDOUT [2025-06-19 23:34:33] info: zh:zstack:znp: Port closed [2025-06-19 23:34:33] info: zh:zstack:znp: closing [2025-06-19 23:34:33] error: z2m: Adapter disconnected, stopping [2025-06-19 23:34:33] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"offline"}' [2025-06-19 23:34:33] info: z2m: Disconnecting from MQTT server [2025-06-19 23:34:33] info: z2m: Stopping zigbee-herdsman... [2025-06-19 23:34:33] info: z2m: Stopped zigbee-herdsman [2025-06-19 23:34:33] info: z2m: Stopped Zigbee2MQTT [23:34:33] INFO: Preparing to start... [23:34:33] INFO: Socat not enabled [23:34:34] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-06-19 23:34:34] info: z2m: Logging to console, file (filename: log.log) [2025-06-19 23:34:34] info: z2m: Starting Zigbee2MQTT version 2.4.0 (commit #unknown) [2025-06-19 23:34:34] info: z2m: Starting zigbee-herdsman (4.1.0) [2025-06-19 23:34:34] info: zh:zstack:znp: Opening TCP socket with 192.168.5.59:6638 [2025-06-19 23:34:35] error: zh:zstack:znp: Socket error Error: connect EHOSTUNREACH 192.168.5.59:6638 [2025-06-19 23:34:35] error: z2m: Error while starting zigbee-herdsman [2025-06-19 23:34:35] error: z2m: Failed to start zigbee-herdsman [2025-06-19 23:34:35] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-06-19 23:34:35] error: z2m: Exiting... [2025-06-19 23:34:35] error: z2m: Error: Error while opening socket at Socket. (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:160:24) at Socket.emit (node:events:530:35) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:90:21) [2025-06-19 23:34:35] info: zh:zstack:znp: Port closed [23:34:35] INFO: Preparing to start... [23:34:35] INFO: Socat not enabled [23:34:36] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-06-19 23:34:36] info: z2m: Logging to console, file (filename: log.log) [2025-06-19 23:34:36] info: z2m: Starting Zigbee2MQTT version 2.4.0 (commit #unknown) [2025-06-19 23:34:36] info: z2m: Starting zigbee-herdsman (4.1.0) [2025-06-19 23:34:36] info: zh:zstack:znp: Opening TCP socket with 192.168.5.59:6638 [2025-06-19 23:34:40] error: zh:zstack:znp: Socket error Error: connect EHOSTUNREACH 192.168.5.59:6638 [2025-06-19 23:34:40] error: z2m: Error while starting zigbee-herdsman [2025-06-19 23:34:40] error: z2m: Failed to start zigbee-herdsman [2025-06-19 23:34:40] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-06-19 23:34:40] error: z2m: Exiting... [2025-06-19 23:34:40] error: z2m: Error: Error while opening socket at Socket. (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:160:24) at Socket.emit (node:events:530:35) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:90:21) [2025-06-19 23:34:40] info: zh:zstack:znp: Port closed [23:34:40] INFO: Preparing to start... [23:34:40] INFO: Socat not enabled [23:34:40] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-06-19 23:34:41] info: z2m: Logging to console, file (filename: log.log) [2025-06-19 23:34:41] info: z2m: Starting Zigbee2MQTT version 2.4.0 (commit #unknown) [2025-06-19 23:34:41] info: z2m: Starting zigbee-herdsman (4.1.0) [2025-06-19 23:34:41] info: zh:zstack:znp: Opening TCP socket with 192.168.5.59:6638 [2025-06-19 23:34:42] info: zh:zstack:znp: Socket connected [2025-06-19 23:34:42] info: zh:zstack:znp: Socket ready [2025-06-19 23:34:42] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload [2025-06-19 23:34:43] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352 [2025-06-19 23:34:44] error: zh:zstack:znp: Socket error Error: read ECONNRESET [2025-06-19 23:34:44] info: zh:zstack:znp: Port closed [2025-06-19 23:34:49] error: z2m: Error while starting zigbee-herdsman [2025-06-19 23:34:49] error: z2m: Failed to start zigbee-herdsman [2025-06-19 23:34:49] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-06-19 23:34:49] error: z2m: Exiting... [2025-06-19 23:34:49] error: z2m: Error: Failed to connect to the adapter (Error: Cannot request when znp has not been initialized yet) at ZStackAdapter.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/adapter/zStackAdapter.ts:114:27) at Controller.start (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/controller/controller.ts:133:29) at Zigbee.start (/app/lib/zigbee.ts:71:27) at Controller.start (/app/lib/controller.ts:102:13) at start (/app/index.js:149:5) [23:34:50] INFO: Preparing to start... [23:34:50] INFO: Socat not enabled [23:34:50] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-06-19 23:34:51] info: z2m: Logging to console, file (filename: log.log) [2025-06-19 23:34:51] info: z2m: Starting Zigbee2MQTT version 2.4.0 (commit #unknown) [2025-06-19 23:34:51] info: z2m: Starting zigbee-herdsman (4.1.0) [2025-06-19 23:34:51] info: zh:zstack:znp: Opening TCP socket with 192.168.5.59:6638 [2025-06-19 23:34:51] info: zh:zstack:znp: Socket connected [2025-06-19 23:34:51] info: zh:zstack:znp: Socket ready [2025-06-19 23:34:51] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload [2025-06-19 23:34:51] error: zh:zstack:znp: Socket error Error: read ECONNRESET [2025-06-19 23:34:51] error: z2m: Error while starting zigbee-herdsman [2025-06-19 23:34:51] error: z2m: Failed to start zigbee-herdsman [2025-06-19 23:34:51] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-06-19 23:34:51] error: z2m: Exiting... [2025-06-19 23:34:51] error: z2m: Error: Error while opening socket at Socket. (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:160:24) at Socket.emit (node:events:530:35) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:90:21) [2025-06-19 23:34:51] info: zh:zstack:znp: Port closed [23:34:52] INFO: Preparing to start... [23:34:52] INFO: Socat not enabled [23:34:52] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-06-19 23:34:52] info: z2m: Logging to console, file (filename: log.log) [2025-06-19 23:34:53] info: z2m: Starting Zigbee2MQTT version 2.4.0 (commit #unknown) [2025-06-19 23:34:53] info: z2m: Starting zigbee-herdsman (4.1.0) [2025-06-19 23:34:53] info: zh:zstack:znp: Opening TCP socket with 192.168.5.59:6638 [2025-06-19 23:34:53] info: zh:zstack:znp: Socket connected [2025-06-19 23:34:53] info: zh:zstack:znp: Socket ready [2025-06-19 23:34:53] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload [2025-06-19 23:34:53] error: zh:zstack:znp: Socket error Error: read ECONNRESET [2025-06-19 23:34:53] error: z2m: Error while starting zigbee-herdsman [2025-06-19 23:34:53] error: z2m: Failed to start zigbee-herdsman [2025-06-19 23:34:53] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-06-19 23:34:53] error: z2m: Exiting... [2025-06-19 23:34:53] error: z2m: Error: Error while opening socket at Socket. (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:160:24) at Socket.emit (node:events:530:35) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:90:21) [2025-06-19 23:34:53] info: zh:zstack:znp: Port closed [23:34:53] INFO: Preparing to start... [23:34:53] INFO: Socat not enabled [23:34:53] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-06-19 23:34:54] info: z2m: Logging to console, file (filename: log.log) [2025-06-19 23:34:54] info: z2m: Starting Zigbee2MQTT version 2.4.0 (commit #unknown) [2025-06-19 23:34:54] info: z2m: Starting zigbee-herdsman (4.1.0) [2025-06-19 23:34:54] info: zh:zstack:znp: Opening TCP socket with 192.168.5.59:6638 [2025-06-19 23:34:54] info: zh:zstack:znp: Socket connected [2025-06-19 23:34:54] info: zh:zstack:znp: Socket ready [2025-06-19 23:34:54] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload [2025-06-19 23:34:54] error: zh:zstack:znp: Socket error Error: read ECONNRESET [2025-06-19 23:34:54] error: z2m: Error while starting zigbee-herdsman [2025-06-19 23:34:54] error: z2m: Failed to start zigbee-herdsman [2025-06-19 23:34:54] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-06-19 23:34:54] error: z2m: Exiting... [2025-06-19 23:34:54] error: z2m: Error: Error while opening socket at Socket. (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:160:24) at Socket.emit (node:events:530:35) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:90:21) [2025-06-19 23:34:54] info: zh:zstack:znp: Port closed [23:34:55] INFO: Preparing to start... [23:34:55] INFO: Socat not enabled [23:34:55] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-06-19 23:34:55] info: z2m: Logging to console, file (filename: log.log) [2025-06-19 23:34:56] info: z2m: Starting Zigbee2MQTT version 2.4.0 (commit #unknown) [2025-06-19 23:34:56] info: z2m: Starting zigbee-herdsman (4.1.0) [2025-06-19 23:34:56] info: zh:zstack:znp: Opening TCP socket with 192.168.5.59:6638 [2025-06-19 23:34:56] info: zh:zstack:znp: Socket connected [2025-06-19 23:34:56] info: zh:zstack:znp: Socket ready [2025-06-19 23:34:56] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload [2025-06-19 23:34:56] error: zh:zstack:znp: Socket error Error: read ECONNRESET [2025-06-19 23:34:56] error: z2m: Error while starting zigbee-herdsman [2025-06-19 23:34:56] error: z2m: Failed to start zigbee-herdsman [2025-06-19 23:34:56] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-06-19 23:34:56] error: z2m: Exiting... [2025-06-19 23:34:56] error: z2m: Error: Error while opening socket at Socket. (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:160:24) at Socket.emit (node:events:530:35) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:90:21) [2025-06-19 23:34:56] info: zh:zstack:znp: Port closed [23:34:56] INFO: Preparing to start... [23:34:56] INFO: Socat not enabled [23:34:56] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-06-19 23:34:57] info: z2m: Logging to console, file (filename: log.log) [2025-06-19 23:34:57] info: z2m: Starting Zigbee2MQTT version 2.4.0 (commit #unknown) [2025-06-19 23:34:57] info: z2m: Starting zigbee-herdsman (4.1.0) [2025-06-19 23:34:57] info: zh:zstack:znp: Opening TCP socket with 192.168.5.59:6638 [2025-06-19 23:34:57] info: zh:zstack:znp: Socket connected [2025-06-19 23:34:57] info: zh:zstack:znp: Socket ready [2025-06-19 23:34:57] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload [2025-06-19 23:34:57] error: zh:zstack:znp: Socket error Error: read ECONNRESET [2025-06-19 23:34:57] error: z2m: Error while starting zigbee-herdsman [2025-06-19 23:34:57] error: z2m: Failed to start zigbee-herdsman [2025-06-19 23:34:57] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-06-19 23:34:57] error: z2m: Exiting... [2025-06-19 23:34:57] error: z2m: Error: Error while opening socket at Socket. (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:160:24) at Socket.emit (node:events:530:35) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:90:21) [2025-06-19 23:34:57] info: zh:zstack:znp: Port closed [23:34:58] INFO: Preparing to start... [23:34:58] INFO: Socat not enabled [23:34:58] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-06-19 23:34:58] info: z2m: Logging to console, file (filename: log.log) [2025-06-19 23:34:58] info: z2m: Starting Zigbee2MQTT version 2.4.0 (commit #unknown) [2025-06-19 23:34:58] info: z2m: Starting zigbee-herdsman (4.1.0) [2025-06-19 23:34:58] info: zh:zstack:znp: Opening TCP socket with 192.168.5.59:6638 [2025-06-19 23:34:58] info: zh:zstack:znp: Socket connected [2025-06-19 23:34:58] info: zh:zstack:znp: Socket ready [2025-06-19 23:34:58] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload [2025-06-19 23:34:59] error: zh:zstack:znp: Socket error Error: read ECONNRESET [2025-06-19 23:34:59] error: z2m: Error while starting zigbee-herdsman [2025-06-19 23:34:59] error: z2m: Failed to start zigbee-herdsman [2025-06-19 23:34:59] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-06-19 23:34:59] error: z2m: Exiting... [2025-06-19 23:34:59] error: z2m: Error: Error while opening socket at Socket. (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:160:24) at Socket.emit (node:events:530:35) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:90:21) [2025-06-19 23:34:59] info: zh:zstack:znp: Port closed [23:34:59] INFO: Preparing to start... [23:34:59] INFO: Socat not enabled [23:34:59] INFO: Starting Zigbee2MQTT... Starting Zigbee2MQTT without watchdog. [2025-06-19 23:35:00] info: z2m: Logging to console, file (filename: log.log) [2025-06-19 23:35:00] info: z2m: Starting Zigbee2MQTT version 2.4.0 (commit #unknown) [2025-06-19 23:35:00] info: z2m: Starting zigbee-herdsman (4.1.0) [2025-06-19 23:35:00] info: zh:zstack:znp: Opening TCP socket with 192.168.5.59:6638 [2025-06-19 23:35:00] info: zh:zstack:znp: Socket connected [2025-06-19 23:35:00] info: zh:zstack:znp: Socket ready [2025-06-19 23:35:00] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload [2025-06-19 23:35:00] error: zh:zstack:znp: Socket error Error: read ECONNRESET [2025-06-19 23:35:00] error: z2m: Error while starting zigbee-herdsman [2025-06-19 23:35:00] error: z2m: Failed to start zigbee-herdsman [2025-06-19 23:35:00] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start_crashes-runtime.html for possible solutions [2025-06-19 23:35:00] error: z2m: Exiting... [2025-06-19 23:35:00] error: z2m: Error: Error while opening socket at Socket. (/app/node_modules/.pnpm/[email protected]/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:160:24) at Socket.emit (node:events:530:35) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:90:21) [2025-06-19 23:35:00] info: zh:zstack:znp: Port closed

SLZB-06 log(clock goes 1h ahead):

[00:34:44] taskZB | Client limit has been reached! [00:34:44] EventSender | [_handleNewClient] new client: 192.168.5.110 [00:34:51] taskZB | Client limit has been reached! [00:34:53] taskZB | Client limit has been reached! [00:34:54] taskZB | Client limit has been reached! [00:34:56] taskZB | Client limit has been reached! [00:34:57] taskZB | Client limit has been reached! [00:34:59] taskZB | Client limit has been reached! [00:35:00] taskZB | Client limit has been reached! [00:52:02] taskZB | Client disconnected, id: 0 [02:45:12] EventSender | [_handleNewClient] new client: 192.168.5.110 [03:30:03] EventSender | [_handleNewClient] new client: 192.168.5.110 [08:03:34] EventSender | [_handleNewClient] new client: 192.168.0.10 [08:05:32] taskZB | New client: 192.168.5.110 id: 0 [08:15:10] EventSender | [_handleNewClient] new client: 192.168.0.10

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

2.4.0

Adapter firmware version

20221226

Adapter

SLZB-06

Setup

Add-on on Home Assistant OS on Proxmox VM on Intel N100

Debug log

45df7312_zigbee2mqtt_2025-06-21T06-41-25.363Z.log

hesst avatar Jun 20 '25 05:06 hesst

From all the socket errors, looks like either the network is problematic, or the adapter is (the core part). Did you try downgrading the core firmware?

Nerivec avatar Jun 20 '25 16:06 Nerivec

I just experienced this too. Downgraded to Core v2.8.7 on the SLZB and it seems to be working again now.

derekoharrow avatar Jun 20 '25 21:06 derekoharrow

I have attached a log file with debuginfo above and now trying it with V2.8.7 on the SLZBI have attached a log file with debuginfo above and am now trying it with V2.8.7 on the SLZB

hesst avatar Jun 21 '25 06:06 hesst

It seems the SLZB is not stable, this is not something that can be fixed from Z2M, please create an issue in their tracker instead.

Koenkk avatar Jun 21 '25 17:06 Koenkk