HA not available via Web Gui, SSH and Samba (then restart, and after ~12h same problems again) - Router/UPC Connectbox issue?

Hey there,

I’m close to give up on HA because of continuous downtimes. Every 12-24 hours I’m not able to reach HA. I tried everything: Web Gui, Samba, SSH. In these cases only cutting the power and turning HA on again helps, but only for the next 12 hours.

Today it happened again and I tried a different way to solve the problem: Restarting my router (UPC Connectbox). And that helped - HA became quickly available again and I was able to read the logs. Find them (just an excerpt) here:

2020-08-19 10:36:57 WARNING (SyncWorker_20) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=False, redirect=None, status=3)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98ab1ee0>: Failed to establish a new connection: [Errno -3] Try again')': /v1/me/player
2020-08-19 10:37:02 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.spotify_XXXXX is taking over 10 seconds
2020-08-19 10:37:02 WARNING (SyncWorker_20) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=False, redirect=None, status=3)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f988e4ee0>: Failed to establish a new connection: [Errno -3] Try again')': /v1/me/player
2020-08-19 10:37:08 WARNING (SyncWorker_20) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=False, redirect=None, status=3)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3bd8220>: Failed to establish a new connection: [Errno -3] Try again')': /v1/me/player
2020-08-19 10:37:14 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.spotify_XXXXXX fails
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 61, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/lib/python3.8/socket.py", line 918, 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.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97d935b0>: Failed to establish a new connection: [Errno -3] Try again

The logs continue like this and after a long time I get a message like this:

2020-08-19 12:41:29 WARNING (MainThread) [pyps4_2ndscreen.ddp] Error received at DDP Transport
2020-08-19 12:41:39 WARNING (MainThread) [pyps4_2ndscreen.ddp] Error received at DDP Transport
2020-08-19 12:41:49 WARNING (MainThread) [pyps4_2ndscreen.ddp] Error received at DDP Transport
2020-08-19 12:41:59 WARNING (MainThread) [pyps4_2ndscreen.ddp] Error received at DDP Transport
2020-08-19 12:42:09 WARNING (MainThread) [pyps4_2ndscreen.ddp] Error received at DDP Transport
2020-08-19 12:42:19 WARNING (MainThread) [pyps4_2ndscreen.ddp] Error received at DDP Transport
2020-08-19 12:42:29 WARNING (MainThread) [pyps4_2ndscreen.ddp] Error received at DDP Transport

Since I read a lot about connection problems in the logs, the problem is most probable related with my router. The problem occurs randomly - sometimes when there are internet outages. But that’s not always the case. It also happens when I am able to access the internet with other devices.

I have a UPC Connectbox and assigned a static IP in the DHCP settings. But I haven’t done anything more (no external access, no VPN, …).

Does anyone know what I’m doing wrong? I LOVE Home Assistant, but it is a pitty that it’s not reliable.

Thanks a lot in advance!

Greetings from Germany! :slight_smile: