Zh:zstack:znp: Socket error

Hi guys. recently moved all my networking gear around and added a new router, since then ive not been able to get my zigbee coordinator to work as it did before at all. ive been having a lot of issues getting my SLZB-06p7 to communicate with mqtt or ZHA. ZHA can detect it as a device that can be automatically set up but i keep getting “socket error”. ive tried a lot of different forums online but no luck yet. any help would be greatly appreciated.

[18:55:41] INFO: Preparing to start...
[18:55:42] INFO: Socat not enabled
[18:55:44] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT without watchdog.
[2024-07-24 18:55:49] info: 	z2m: Logging to console, file (filename: log.log)
[2024-07-24 18:55:49] info: 	z2m: Starting Zigbee2MQTT version 1.39.0 (commit #unknown)
[2024-07-24 18:55:49] info: 	z2m: Starting zigbee-herdsman (0.50.1)
[2024-07-24 18:55:50] info: 	zh:zstack:znp: Opening TCP socket with 192.168.0.50:6638
[2024-07-24 18:56:04] info: 	zh:zstack:znp: Socket error
[2024-07-24 18:56:04] error: 	z2m: Error while starting zigbee-herdsman
[2024-07-24 18:56:04] error: 	z2m: Failed to start zigbee
[2024-07-24 18:56:04] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-07-24 18:56:04] error: 	z2m: Exiting...
[2024-07-24 18:56:04] error: 	z2m: Error: Error while opening socket
    at Socket.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:191:24)
    at Socket.emit (node:events:529:35)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264
  var er = new ERR_STREAM_WRITE_AFTER_END();
           ^
Error: write after end
    at writeAfterEnd (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264:12)
    at DerivedLogger.Writable.write (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:300:21)
    at DerivedLogger.log (/app/node_modules/winston/lib/winston/logger.js:231:12)
    at Logger.log (/app/lib/util/logger.ts:188:25)
    at Logger.info (/app/lib/util/logger.ts:201:14)
    at Znp.onPortClose (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:113:16)
    at Object.onceWrapper (node:events:632:26)
    at Socket.emit (node:events:517:28)
    at TCP.<anonymous> (node:net:350:12)

config

Can you ping

?

And

but the error and configuration is from Zigbee2MQTT ?


image

thanks for the reply, from my understanding you can use zigbee2mqtt or just the zigbee home automation integration to add the coordinator.

when i ping the ip it works as expected. when i enter the details into zigbee home automation i just get socket error.

You can only use one. If Zigbee2MQTT is trying to use the port, ZHA can’t. And vice-versa.

ohh okay, that makes sence. currently neither of them are able to communicate with it.

i have the SLZB06P7 powered through usb plugged directly into the rasberry pi and both devices are plugged into a switch board via ethernet as they were before i started having problems.