-
Notifications
You must be signed in to change notification settings - Fork 1
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
Websocket fails about every 30 days #49
Comments
Hello! Which version are you running? We've done some more recent work to refresh the login credentials regularly (reauthenticate) in the background. There's some new work being done to have a simplified node for Protect websocket - #48 - which may need a bit of work to log back in after UDM restarts, but otherwise is working well last I checked my setup. My next goal with the devs is to work on knowing when to run a new login... @marcus-j-davies we talked about a ping/pong setup, any comments on that? It could help us know when to refresh the connection. I haven't noticed a complete drop-off like you are seeing since a long time. |
Correct! @crxporter I will be adding a ping/pong to the shared socket. if we don't get a pong - then a scheduled re-auth will be arranged. |
I was using 0.7.2 but switched to 0.8.0 now. The ping/pong sounds good, I’ll wait for that. I guess I also have a edge use case, I rarely update unifios/network since ”something always fails”. So I update maybe twice a year under supervision. That leads to uptimes up to 180 days. If you use auto update, I guess theres so many updates that you don’t ever go 30+ days (which roughly seem to be the tipping point for this error to occur) without a reboot or docker image pull. |
I don't think you're an edge case - there aren't many of "us" that take wifi uptime lightly. Mine is only 20 days uptime right now because I was doing some tests on the newest beta #48 - but usually I only reboot for big feature or important security updates. We'll keep this issue open for a while, watch for if we have any new information. And please do come back in a few weeks (around Christmas?) to report on version 0.8.0 uptime! |
My 2nd to latest commit introduced hopefully robust recovery mechanisms. |
@marcus-j-davies Are those changes released yet? It failed me again after 29 days: From UDM-PRO:
From Node-red: |
Hi @Appelg There is a BETA version available to install if you wanted to beta test..
But to benefit, you will need to use the new protect node that ships with v0.9.0 |
Note: |
Should be fixed |
Thanks! |
To benefit, you need to use the new protect node |
Hello!
The module works perfect. But about every 30 days, it stops receiving data from the websocket.
It can still connect to the websocket, but no data arrives.
The only way to get data again is to either restart the UDM-Pro or restart the "unifi-os" docker container on the UDM Pro.
This seem to be some sort of bug of the Unifi-OS.
Does anyone else experience this behaviour?
Edit:
This is the only errormessage I can find (from /var/log/messages on the UDM Pro).
It stops showing up after the reboot when everything works again:
The text was updated successfully, but these errors were encountered: