-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error of 'Adapter disconnected, stopping' every two hours. #20148
Comments
I have the same issue. Z2M running on an Alpine container on Proxmox. I have also tried running on an Ubuntu container and as Home Assistant Add-on. All show the same pattern, disconnect after 2 hours. I have tried both with LAN and Wifi, with same result. As a part of my debugging process, I tried to open a TCP connection towards the UZG-01 using telnet. After 2 hours, the connection is dropped by the UZG-01 with message "Connection closed by foreign host.". For me the the problem seems to be on the UZG-01 side, with either the ESP32 firmware or the Z-Stack firmware. |
I have the same issue. Z2M and Mosquito running on Home Assistant using the SLZB-06 via ethernet. My logfile: |
I have the same problem. ZigStar lan every 2 hours disconnected. Z2M Current version: 1.34.0-1, ESP 0.6.10, Zigbee |
Same here with a tube-zb-gw-cc2652p2-v2 over ethernet. |
I changing DHCP lease time for IP adresses on my PfSense router, it was 7200 sec, and problem is gone. But i dont know why DHCP lease time influences on static IP adress my LAN ZigStar. 4 hours ZigStar not disconnect |
Oh, really? Interesting. I use PFSense as well (though, that part is probably unrelated). Let me give that a try. |
Try this method. May be it work for you too |
Yeah, I was just setting a static dhcp mapping in pfsense, as I do for most everything. I set dhcp off on the device now, and put the address in and it is restarting now. I will keep an eye on it the next 2 hours and see how it goes. 👍 |
I have also changed to static IP now. Let's see if that changes anything 🤞 |
On my clock 23:55, last disconnest was 14:46. Problem is gone |
Yeah, so far I am at nearly 3 hours now, and I don't think it once ever made it past 1:59:00 before. On my end, all I did was change from DHCP to static on the coordinator. I didn't adjust anything on the firewall side. That is quite curious that having DHCP set on the device would cause the container to restart, but I guess it is what it is, lol. Maybe a container restart is automatic if the connection to the adapter is lost? |
Indeed, it worked! Finally a stable solution! 🥳 So it seems that the ESP32 part has a poorly implemented DHCP client or something and drops all connections when it's renewing the IP lease. |
I am a few moments shy of the 24 hour mark and things have been just fine now. 👍 Indeed, thanks @comazone |
I also use pfsense and static mapping in DHCP for the SLZB-06. Setting a static IP address solved the issue. Thanks a lot @comazone! |
As for me with Hamgeek LAN coordinator built with RF-BM-2652P2 and MJ-Ethernet01 from ColtSmart, setting static IP didn't help. |
Guys please open a issue here: https://github.com/mercenaruss/uzg-firmware |
While static IP works around this issue, should zigbee2mqtt be resiliant to disconnects, specially when an immediate reconnection within a small window of time works? That should help a lot with stability. Sockets drop, this should not be a fatal error |
Anyone else is having this problem even with static ip set? I have had a run of 1 month without issues but then I ve had like 3 disconnections over a week where only device restart helped (uzg-01 with p7 chip). |
Yeah, I thought I was losing my bananas. Ever since I made my last post, things have been working great up to this last month. I am not sure if you are using HomeAssistant, and this could be purely coincidental, but it feels this started when/soon after I installed 2024.3.x. |
this is related to p7 chip firmware. |
@marcusaram can you explain a little bit more? Is this something that might be fixed in the future? If so where - z2m or uzg firmware? |
I, too, am very much interested in any additional details about that, it was a rather vague statement. Is there something we can do on our end to help with this? Ex: a firmware update or something? |
Hi, you should probably mention someone else. I did long time ago some small contributions to this project but actually not using zigbee2mqtt anymore. Besides that I've really no idea what is causing this issue 😅 |
I am sure he didn't notice and thought he mentioned the name above his. I didn't realize it was wrong either until just now, lol. |
@MostHated @marcusaram Of course I did mean @mercenaruss... Sorry about confusion, very close nicknames :) 🤦 |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days |
What happened?
I am using a UZG-01 device via PoE. Tthe Z2M docker gives the following error after 1h 59m 55s and does this repeatedly after that amount of time over and over:
I did a continuous port check every 500ms to the UZG-01 on the port Z2M is connecting to, as well as the web interface, my home assistant box, etc, and didn't see the UZG-01's zigbee port go down, nor any of the others I was checking. While the connections were still reporting as up, the following error still occurred and when this happens, often a handful of devices will fall offline.
Zigbee2MQTT version
1.34.0-1
Adapter firmware version
20230507
Adapter
ZigStar UZG-01 PoE (https://uzg.zig-star.com/product/)
Debug log
No response
The text was updated successfully, but these errors were encountered: