-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
adapter randomly disconnects/doesn't reconnect #435
Comments
Please set to debug ansd check log then. I can only say that "several dozens of instances of the adapter" sounds very strange and I have NO IDEA if and how eq-3 sees this when that many conn ections comes from a single IP ... WHy you need that many instances? |
Will do. Its not a single IP, its several as well. |
Also too many for the same "Cloud Account" might be problematic ... eq-3 assumes one AP and "a temporary opened App" ... so 1,x connections at the same time :-) |
Hmmm, that is certainly true and I think in this case something else is triggering the disconnect of the adapter. I set log level to debug and let you know :-) |
I also had one case where the automatic reconnect did not worked somehow once whre I still wanted to look into, but did not had time. With a debug log I would see if you experience the same. It also happened as I had an internet reconnect. Maybe the library used for MQTT is not handling special timeout cases correctly and then hangs ... but I need to look into this as said - but would potentially match to your case |
Ok, I've now the first case with logs, but there is nothing special I guess. This morning ALL of my adapters disconnected with this message: A couple seconds later basically all BUT ONE reconnected with message: And there is nothing in the log file regarding hmip.1 (the one that didn't reconnect) afterwards. Also the 24h disconnect from the ISP was 2 hours later, so it has nothing to do with that. From my opinion, homematic disconnects deliberately connections and usually the adapter reconnects again and fails every once in a while to do so. That is also why I am experience this just every couple of weeks, but then usually its more than one adapter that is failing to reconnect. Anything I can do about it or help to solve it? Thanks |
I also had that effect once ... I need to look into it and maybe implement an additional reconnection mechanism or check ho to maybe betteer provide timeouts |
Just wanted to confirm the issue again.
This time 7 couldn't reconnect. |
Joining here as I see this issue from time to time (ca. once in a month). Most recent occurrence was last night (internet connection has been stable during this time): |
Could you share your script? Facing a lot of reconnect issues lately... I tried to find a solution and from my point of view its in this line: These log-entries never showed up: this.log.error( From my basic programming knowledge, you wanted to prevent a reconnect when we already tried 6 times or the reason for the termination is "ECONNREFUSED". I would change the line to:
I'll make the changes locally and keep you updated. EDIT:
I have a lot of instances running so I guess within a couple of weeks I'm able to determine if the changes are working properly. EDIT2: Unfortunately my code is not correct, but I'm getting there. I should have debugged the whole thing with the next disconnect... |
Hi,
I use several dozens of instances of the adapter and about every couple of days some instances (usually about 3-5, but sometime 15-20) wont reconnect/stay disconnected to the AP.
The AP works fine, I can connect throughout via app, but need to restart the adapter manually every time.
I can’t reproduce the behavior and it’s usually not the same instance that has this issue.
All APs are on connections with 24h reconnect scheme, so every 24h the router of the network the AP is in reconnects to the internet and usually get a new IP address assigned.
But I can't see a pattern here. For example I have 2 AP in the same building (same router/internet access) and just one of the has the issue, the other works fine. And the disconnected of of the adapter usually doesn't happen when the reconnected to the ISP is going on. So i assume is has nothing do to with the reconnect of the AP.
In the log file is not a single entry relating to the issue (currently working with info-level).
Using version 1.20.
Would be great if you could help to determine the problem or a way how to narrow it down.
Best regards
The text was updated successfully, but these errors were encountered: