I seem to have some connectivity issues and I don’t know how to troubleshoot this in HA.
I have running multiple docker containers and also running Home Assistant as container, but I am struggling with reliability of the connections which connect to the internet (cloud). On every integration which needs the cloud I am having problems at random times. From within the Ha docker container I sometimes can’t resolve a hostname for a random period of time. These are my errors:
Rdw:
socket.gaierror: [Errno -3] Try again
Spotify:
socket.gaierror: [Errno -3] Try again
Wunderground (custom):
gaierror(-3, ‘Try again’))
Afvalwijzer (custom):
Failed to establish a new connection: [Errno -3] Try again’))")),)
CO2 Signal:
Failed to establish a new connection: [Errno -3] Try again’)); Retrying in background
SpeedTest:
Config entry ‘SpeedTest’ for speedtestdotnet integration not ready yet: <urlopen error [Errno -3] Try again>; Retrying in background
Growatt:
Failed to establish a new connection: [Errno -3] Try again
Etc. Etc.
Al internal connections on IP are really stable. The gai error stands for getaddrinfo(). So it has something to do with DNS. My docker container is running in host mode. My firewall is not blocking anything.
I have no other networking issues. Any ideas how to troubleshoot or resolve this? What I have tried so far:
- I have tried many different DNS servers from Google, Cloudfare, internal etc. But all of this is not resolving this problem.
- I have tried to connect to the internet through a Wifi hotspot on my mobile. This results in the same behavior. So I am concluding that it has nothing to do with the internet connection.
Does this have something to do with the HA docker instance? Is there a way to increase DNS retries?
1 post - 1 participant