A lot of "Adapter disconnected, stopping" error after update 1.35
What happened?
When I launch an OTA update, I can see a lot of "Adapter disconnected, stopping" error followed by a "Zigbee2Mqtt has been restarted!"
Here attached a log file.
What did you expect to happen?
No response
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.35.3
Adapter firmware version
7.4.0.0 Build 0
Adapter
EZSP v12 SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2
Setup
HAOS
Debug log
Same thing happens to me now.
Zigbee2MQTT version 1.35.3
SonOff Dongle-E 7.3.1.0 firmware
I'm getting lots of errors now and devices not responding well since upgrading to 1.35.3 and latest-dev.
Reverting back to 1.35.2 seems to have fixed it for now
Zigbee2MQTT:warn 07-02-2024 20:11:11: Failed to ping 'Lauren's lamp' (attempt 2/2, Read 0x000b57fffe4061c1/1 genBasic(["zclVersion"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms))
Zigbee2MQTT:error 07-02-2024 20:11:17: Publish 'set' 'state' to 'Lounge Floor Lamp' failed: 'Error: Command 0x588e81fffeca296f/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms)'
Zigbee2MQTT:warn 07-02-2024 20:11:23: Failed to ping 'Lounge table lamp' (attempt 1/2, Read 0x14b457fffe3738cc/1 genBasic(["zclVersion"], {"timeout":10000,"disableResponse":false,"disableRecovery":true,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms))
Zigbee2MQTT:error 07-02-2024 20:11:29: Publish 'set' 'state' to 'Lounge Floor Lamp' failed: 'Error: Command 0x588e81fffeca296f/1 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms)'
Zigbee2MQTT:warn 07-02-2024 20:11:35: Failed to ping 'Lounge table lamp' (attempt 2/2, Read 0x14b457fffe3738cc/1 genBasic(["zclVersion"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms))
Zigbee2MQTT:warn 07-02-2024 20:11:46: Failed to ping 'Landing lamp' (attempt 1/2, Read 0x001788010206628c/11 genBasic(["zclVersion"], {"timeout":10000,"disableResponse":false,"disableRecovery":true,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms))
Zigbee2MQTT:warn 07-02-2024 20:11:55: Failed to ping 'Landing lamp' (attempt 2/2, Read 0x001788010206628c/11 genBasic(["zclVersion"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms))
Zigbee2MQTT:warn 07-02-2024 20:12:06: Failed to ping 'Snug lamp' (attempt 1/2, Read 0xccccccfffed6bd92/1 genBasic(["zclVersion"], {"timeout":10000,"disableResponse":false,"disableRecovery":true,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms))
Zigbee2MQTT:warn 07-02-2024 20:12:15: Failed to ping 'Snug lamp' (attempt 2/2, Read 0xccccccfffed6bd92/1 genBasic(["zclVersion"], {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms))
Zigbee2MQTT:warn 07-02-2024 20:12:26: Failed to ping 'Snug TV lamp' (attempt 1/2, Read 0xec1bbdfffe3985fe/1 genBasic(["zclVersion"], {"timeout":10000,"disableResponse":false,"disableRecovery":true,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms))
I am having the same issues with a Conbee II adapter. All zigbee communication between the network and HA is broken. Reverting to 1.35.2 fixed the issues.
After update 1.35.2 to 1.35.3 ZigBee2MQTT (Addon HASS) Started and next 15-30 second Stopped :((( EZSP v7 firmware 6.6.5.0 build 204
In Log:
/app/node_modules/winston-transport/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-transport/node_modules/readable-stream/lib/_stream_writable.js:264:12) at File.Writable.write (/app/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:300:21) at DerivedLogger.ondata (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:629:20) at DerivedLogger.emit (node:events:517:28) at DerivedLogger.Readable.read (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:451:26) at flow (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:858:34) at File.pipeOnDrainFunctionResult (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_readable.js:690:7) at File.emit (node:events:517:28) at onwriteDrain (/app/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:453:12) at afterWrite (/app/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:441:18)
I am having the same issues with a Conbee II adapter. All zigbee communication between the network and HA is broken. Reverting to 1.35.2 fixed the issues.
How can I go back to 1.35.2 without importing a backup? Thank You.
I am having the same issues with a Conbee II adapter. All zigbee communication between the network and HA is broken. Reverting to 1.35.2 fixed the issues.
How can I go back to 1.35.2 without importing a backup? Thank You.
If you do not have a partial backup from any of your previous updates of zigbee2mqtt (even older than 1.35.2) then there is no officially supported way of doing it. However, there is a potential workaround to rollback the docker container version of the add-on to a previous version. However it is not recommended to do it that way as it can break your system so do it at your own risk.
I am having the same issues with a Conbee II adapter. All zigbee communication between the network and HA is broken. Reverting to 1.35.2 fixed the issues.
How can I go back to 1.35.2 without importing a backup? Thank You.
If you do not have a partial backup from any of your previous updates of zigbee2mqtt (even older than 1.35.2) then there is no officially supported way of doing it. However, there is a potential workaround to rollback the docker container version of the add-on to a previous version. However it is not recommended to do it that way as it can break your system so do it at your own risk.
Thank you very much, thought you could just jump back. I have backed up HA in Proxmox as a VM. That is not a problem. Many thanks for the quick feedback.
Downgraded to 1.35.2, but the problem persists...
Downgraded to 1.35.2, but the problem persists...
I have the same problem with 1.35.2.
Hello, I am back to version 1.35.1 which works without any problems. Version 1.35.2 and 1.35.3 do not work, here the addon restarts every 3-4 minutes.
On 1.35.3, while my network works fine, OTA updates crash Z2M around the 40% mark, and OTA update state goes into eternal spinner mode requiring hand editing of state.json.
seeing this recently with a tubezb on latest zigbee2mqtt when launching OTA
Zigbee2MQTT:error 2024-02-14 03:07:53: Adapter disconnected, stopping
Zigbee2MQTT:debug 2024-02-14 03:07:53: Saving state to file /data/state.json
Zigbee2MQTT:info 2024-02-14 03:07:53: MQTT publish: topic 'zigbee2mqtt-upstairs/bridge/state', payload 'offline'
Zigbee2MQTT:info 2024-02-14 03:07:53: Disconnecting from MQTT server
Zigbee2MQTT:info 2024-02-14 03:07:53: Stopping zigbee-herdsman...
Zigbee2MQTT:error 2024-02-14 03:07:54: Failed to stop Zigbee2MQTT
I also have problems after updating to 1.35.3-1 zigbemqtt addon keeps restarting. The log ends with something like this and then restart:
/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.
I had to restore the backup to version 1.32.2-1 I don't know if other versions above this one cause this error. I only tried 1.35.3-1.
It seems to me that the problem started when I wanted to add one of the IKEA TRADFRI bulb E27 WS globe 1055lm bulbs, but it may be a coincidence.
@kerowog can you check what is the latest working version?
I first noticed with version 1.35.3 that it restarted during an OTA update. Rolled back to 1.35.2 and the update has succeeded. It was a week ago.
I few days ago I tried to add a new end device and when the device tried to join the network the addon has restarted every time. Rolled back to 1.35.0 and now everything works well.
I'll check it this week. But my problem is more or less the same as @djereg . I was able to upgrade to 1.35.3, added some devices, made a backup in this state. I tried to do an OTA update and it caused reboots. Another time when I wanted to add a device that was not visible in the list of devices but was once on my network, it resulted in a lot of messages saying that the device had left the network. And then the restart loop. Returning to the backup made for 1.35.3 did not help. I had to find the version I wrote about earlier. Last time, even if I didn't change anything in the devices, the update itself caused restart loops.
Seems the same problem I found in issue https://github.com/Koenkk/zigbee2mqtt/issues/21454
After that, I installed edge version (commit Feb 22): the device has paired, but I'm unable to end OTA update with BTicino devices and had restarts.
@kerowog can you check what is the latest working version?
Unfortunately, apart from version 1.32.2, I only have a snapshot with version 1.34.0. I checked both. I manage to go back to both versions. In both versions, IKEA bulbs are unsupported (TRADFRI bulb E27 WS globe 1055lm). I managed to determine that I need to remove these unsupported devices before upgrading to 1.35.3. Otherwise version 1.35.3 ends with a restart loop. I have 1.35.3 installed, but when I add missing devices that were previously on the network, I get an avalanche of messages that the device has left the network. Sometimes restarts start at this point and sometimes when I enable devices to be connected. Additionally, I checked once and it seems to me that the problem also concerns adding an old device (supported for a long time) that was also once on the network. I made many tests. I'm wondering whether to change the channel and add all the devices again because I have no idea how to add them now.
It might be that what @kerowog wrote is related to the topic: https://github.com/Koenkk/zigbee2mqtt/issues/21118 In my last https://github.com/Koenkk/zigbee2mqtt/issues/21118#issuecomment-1962813336 I had something very similar. In my tests after 1....10 trials it finally works ...
Yes, my situation was the same with the device mentioned earlier. First I added it successfully in the room at my PC, but after when I tried to re join it on it's final place (in other room), Z2M started displaying a lot messages that the device has left the network and has stopped right after.