Websocket reconnecting Zigbee2mqtt not starting after migration to new Rpi4 #32132
Replies: 12 comments 7 replies
-
|
Bit disappointing no one is responding on my help request. I saw some older posts where the problem with "Could not init sd_notify: Could not locate the bindings file" was discussed. So this might be the same problem here as well? Has to do with pnpm somehow I think? Not sure how to fix hat. What are the options to get it working again?
|
Beta Was this translation helpful? Give feedback.
-
|
Were data/database.db and data/coordinator_backup.json copied from the old installation? |
Beta Was this translation helpful? Give feedback.
-
|
Use a USB 2.0 extension cable (2+ meters) to move your Zigbee dongle away from the Pi’s body. Helpful if you also share your config yaml. |
Beta Was this translation helpful? Give feedback.
-
|
@habitats-tech config is the link above zigbee2mqtt_configuration_29mei2026.yaml. I can try with extension cable but have been using the stick for many years without any power issues. But sure will give it a try see if it matters. |
Beta Was this translation helpful? Give feedback.
-
If you want help, you can start by doing what you're being asked to do, instead of wasting other people's time! |
Beta Was this translation helpful? Give feedback.
-
|
missing from configuration.yaml Additionally I suggest for readability and organisational purposes you move all devices to devices.yaml file and replace devices in configuration.yaml as follows: devices: devices.yaml You can do the same in configuration.yaml for: groups: groups.yaml and in groups.yaml just have one line: I also suggest you use the USB cable to move your zigbee away from Pi. One last suggestion you add the following in configuration.yaml: |
Beta Was this translation helpful? Give feedback.
-
|
Great :) Ok I have those id's generated. Still getting an error and not starting. Will see if a cable bring improvement. |
Beta Was this translation helpful? Give feedback.
-
|
Tried that. Now it complains that the part of the coordinator backup from the old rpi this what the system give as error: So why is it not using my pan_id "which is 1a62" according the coordinator_backup.json. and it is inserted without ' ' |
Beta Was this translation helpful? Give feedback.
-
|
Ok, made some progress. Thanks to Google AI I found out that, the configuration is(was) missing a valid pan_id. You can either set it to a specific 4-digit hexadecimal number (e.g., 0x1a62) and that is almost the same as my old 1a62 ... So using 0x1a62 made it working again. All my devices back and working. Only thing is that I still get this error and the system crashes after some minutes. So still something wrong here :)
For now zigbee2mqtt is in a loop (I think because of watchdog restarting it again). Not sure why. |
Beta Was this translation helpful? Give feedback.
-
|
logfile attached. Any idea why zigbee2mqtt stops working? |
Beta Was this translation helpful? Give feedback.
-
|
this is the part that pops up in the logs, over and over again. |
Beta Was this translation helpful? Give feedback.
-
|
With a little help from google AI I have it working completely: /opt/zigbee2mqtt $ sudo rm -rf node_modules .pnpm-store sudo systemctl daemon-reload |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I started my problem in an other topic #27391 but did not get any feedback so start a new topic here.
Main problem is I moved to a new rpi4 and installed zigbee2mqtt. taking the usb-controler from the previous (same version) rpi3 zigbee2mqtt and added it to the rpi4.
Adapted and used some of the config files from the rpi3 version. And gave it a go. The good news is I get the dashboard and see all the old devices listed. Only thing is that they do not work and the message "Websocket Reconnecting" is shown. Also I see that ping the devices is not succeeding.
Some info about my system (more at the other topic):

So after few days of searching and trying how to get this going I would be happy to get some advise how to solve this. Thanks.
zigbee2mqtt_configuration_29mei2026.yaml
reading the log I do not see a reason why it would not work? Or is the Coordinator firmware outdated?
`[2026-05-29 16:52:22] info: z2m: Starting Zigbee2MQTT version 2.10.1 (commit #16fd422c)
[2026-05-29 16:52:22] info: z2m: Starting zigbee-herdsman (10.0.7)
[2026-05-29 16:52:22] info: zh:zstack:znp: Opening SerialPort with {"path":"/dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_23>
[2026-05-29 16:52:22] info: zh:zstack:znp: Serialport opened
[2026-05-29 16:52:22] info: zh:zstack:znp: Writing CC2530/CC2531 skip bootloader payload
[2026-05-29 16:52:23] info: zh:zstack:znp: Skip bootloader for CC2652/CC1352
[2026-05-29 16:52:33] info: z2m: zigbee-herdsman started (resumed)
[2026-05-29 16:52:33] info: z2m: Coordinator firmware version: '{"meta":{"maintrel":1,"majorrel":2,"minorrel":7,"product":1,"revision":20211217,"transportrev":2},"type":>
error: z2m: Could not init sd_notify: Could not locate the bindings file. Tried:
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/build/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/build/Debug/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/build/Release/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/out/Debug/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/Debug/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/out/Release/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/Release/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/build/default/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/compiled/24.15.0/linux/arm64/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/addon-build/release/install-root/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/addon-build/debug/install-root/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/addon-build/default/install-root/unix_dgram.node
→ /opt/zigbee2mqtt/node_modules/.pnpm/unix-dgram@2.0.7/node_modules/unix-dgram/lib/binding/node-v137-linux-arm64/unix_dgram.node
[2026-05-29 16:52:37] warning: z2m: Failed to ping '0x00158d00035659ed' (attempt 1/1, ZCL command 0x00158d00035659ed/1 genBasic.read(["zclVersion"], {"timeout":10000,"disab>
`
Beta Was this translation helpful? Give feedback.
All reactions