Open rct opened 1 year ago
Update: Deleting the Gecko integration through the Home Assistant integration UI did solve the problem by preventing the gecko from trying to connect as it should. The only mention of gecko in the log is the custom integration warning. That's pretty much what I would expect.
Still I'm curious why with the Gecko integration disabled via the integration GUI why it was still trying to connect to the spa. Is that expected or is that a bug?
Version
0.1.9
Configuration
Describe the bug
My spa is shut down for the winter.
My home assistant ran out of available ports and could no longer resolve names (no ports available for DNS lookups, pings would fail). Home assistant was up for a few weeks without a restart. There were 28,000+ UDP sockets. There are only ~28,200 port numbers available in a default system configuration (debian buster) - https://access.redhat.com/solutions/2039103. So it will only take about 19.5 days to exhaust the available ports.
After some troubleshooting and process of elimination it seems that a UDP socket is being leaked once per minute. Timing seems to coincide with the logging of the error
Cannot get file, protocol retry count exceeded
To make matters worse, disabling the integration through the Hass GUI and restarting doesn't stop the problem. The error still occurs and the socket keeps leaking.
I tried to remove the integration through HACS to make this stop, but it says it is still configured.
However home assistant's /config/integrations shows it as disabled:
Next step is I'll delete the integration. and see if I can
Debug log
Using netstat to see leaked UDP sockets:
One more piece of evidence: I use Munin for some lightweight host monitoring. Here's a 1 year view of the count of the open file descriptors in the kernel's file table.
The number of entries was pretty stable throughout the year until I shut the spa down in late December. Where it drops back down is when I've restarted Home Assistant for updates or config changes. When things failed I hadn't restarted Home Assistant since I upgraded to 2023.2.3.