Issue caused by PiHole, i had a static IP adrress given to my HA through my router, but then i get the same DNS, so it created a loophole.
For more info and resolution look at:
https://www.reddit.com/r/homeassistant/comments/aghbp7/hassio_on_pi_suddenly_unable_to_get_out_to/
I reinstalled my Hass after getting errors on my previous first installation. I am new (coming from Domoticz) so i tested a few things. Everything was working well, but after a couple of days i noticed that i did not receive any data anymore from several sensors. This where all sensors with outside api connection. Every connection to the outside failed.
So i decided to started fresh, maybe i did some misconfiguration with my first setup. So i installed hassio completely from scratch. Configured a few devices (Smart Meter, Youless, Uhoo air, luchtmeetnet). Also installed some addons which i will be planning to use. (PiHole, Grafana, InfluxDB). Everything working fine for a couple of hours.
After 2 or 3 hours i noticed i did not receive data anymore from outside api connection. Exactly the same issue as before, only this time i used different apiś, which i did not use in previous installation.
Connection to the outside is working, i can check version and install additional plugins. But the api fails.
I disabled the api’s for now to sort some stuff out. Cleared logfiles and rebooted. Still having issue. For example when i want to send a voice command to my google home (which works perfectly before), i get.
HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x6cff0bb0>: Failed to establish a new connection: [Errno -3] Try again'))
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/urllib3/connection.py”, line 159, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File “/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py”, line 57, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/local/lib/python3.7/socket.py”, line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 343, in _make_request
self._validate_conn(conn)
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 839, in _validate_conn
conn.connect()
File “/usr/local/lib/python3.7/site-packages/urllib3/connection.py”, line 301, in connect
conn = self._new_conn()
File “/usr/local/lib/python3.7/site-packages/urllib3/connection.py”, line 168, in _new_conn
self, “Failed to establish a new connection: %s” % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x6cff0bb0>: Failed to establish a new connection: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/requests/adapters.py”, line 449, in send
timeout=timeout
File “/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py”, line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py”, line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘translate.google.com’, port=443): Max retries exceeded with url: / (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x6cff0bb0>: Failed to establish a new connection: [Errno -3] Try again’))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/websocket_api/commands.py”, line 121, in handle_call_service
connection.context(msg))
File “/usr/local/lib/python3.7/site-packages/homeassistant/core.py”, line 1141, in async_call
self._execute_service(handler, service_call))
File “/usr/local/lib/python3.7/site-packages/homeassistant/core.py”, line 1163, in _execute_service
await handler.func(service_call)
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/tts/init.py”, line 143, in async_say_handle
options=options
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/tts/init.py”, line 312, in async_get_url
engine, key, message, use_cache, language, options)
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/tts/init.py”, line 324, in async_get_tts_audio
message, language, options)
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/google_translate/tts.py”, line 76, in async_get_tts_audio
token.calculate_token, part)
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.7/site-packages/gtts_token/gtts_token.py”, line 28, in calculate_token
seed = self._get_token_key()
File “/usr/local/lib/python3.7/site-packages/gtts_token/gtts_token.py”, line 55, in _get_token_key
response = requests.get(“https://translate.google.com/”)
File “/usr/local/lib/python3.7/site-packages/requests/api.py”, line 75, in get
return request(‘get’, url, params=params, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/api.py”, line 60, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 533, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 646, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/adapters.py”, line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘translate.google.com’, port=443): Max retries exceeded with url: / (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x6cff0bb0>: Failed to establish a new connection: [Errno -3] Try again’))
The first line:
TTPSConnectionPool(host=‘translate.google.com’, port=443): Max retries exceeded with url: / (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x6cff0bb0>: Failed to establish a new connection: [Errno -3] Try again’))
Is the same other devices with api calls to the internet gave.
Has anyone having the same issue? I am using:
Home Assistant 0.93.2
HassOS 2.12
I see important improvements to switch from domoticz to HA, but if this issue is still occuring i cannot use it.
Hope someone has any solution or can help me troubleshooting.
Just noticed that my PiHole is not working correctly either, no blacklisted domains, so i update gravity and see this in the logfiles
**[i] Target: raw.githubusercontent.com (hosts)
[i] Status: Pending…
[✗] Status: Connection Refused
[✗] List download failed: no cached list available
[i] Target: mirror1.malwaredomains.com (justdomains)
[i] Status: Pending…
[✗] Status: Connection Refused
[✗] List download failed: no cached list available
[i] Target: sysctl.org (hosts)
[i] Status: Pending…
[✗] Status: Connection Refused
[✗] List download failed: no cached list available**
So here also no connection to outside?