Connection lost. reconnecting

Hi, not sure what has changed, but I keep getting connection lost, reconnecting but never reconnects. I have to reboot the PC or restart home assistant from ssh terminal. It connects when I do this but it goes down about 20 seconds later. How can I troubleshoot this? I am running this on ubuntu 20.04

Thanks in advance.

Same problem here.
I’m running HomeAssistant on VirtualBox, and the last 6 months i have had problems whit the core shutting down and the UI says Connection lost, Reconnecting.
At the moment I have these versions:

  • core-2021.10.2
  • supervisor-2021.10.0
  • Home Assistant OS 6.5

I have disabled all integrations and most addons, except:

  • Visual Studio Code
  • Terminal & SSH
  • Samba share

Still the core keeps shutting down…

[finish] process exit code 256
[finish] process received signal 7
[finish] process exit code 256
[finish] process received signal 15
[cont-finish.d] executing container finish scripts…
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.

Any help figuring this out would be appreciated.


I have restore the system to core-2021.9.7 and everything works like it should. As soon as I update again the the latest version core-2021.10.4 it breaks again. Not sure exactly what is causing it.

Ok, so I tried downgrading the core to 2021.9.7 but core still crashed.

2021-10-16 01:43:29 ERROR (MainThread) [root] Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/src/homeassistant/homeassistant/", line 322, in <module>
  File "/usr/src/homeassistant/homeassistant/", line 314, in main
    exit_code =
  File "/usr/src/homeassistant/homeassistant/", line 108, in run
  File "/usr/local/lib/python3.9/asyncio/", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.9/asyncio/", line 629, in run_until_complete
  File "/usr/local/lib/python3.9/asyncio/", line 596, in run_forever
  File "/usr/local/lib/python3.9/asyncio/", line 1854, in _run_once
    event_list =
  File "/usr/local/lib/python3.9/", line 469, in select
    fd_event_list = self._selector.poll(timeout, max_ev)
OverflowError: timestamp too large to convert to C _PyTime_t
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

I can always connect to the home assistant by SSH, read the core log and start the core again.


Any update to this issue. I am also stuck at Any update starting with core-2021.10xxx causes “connection lost, reconnecting” error

Have you made sure that no other devices on your network get assigned the same IP addresses? That is another possible cause of losing connectivity. I had a wifi pir sensor that connected only for a few seconds to the network and it was getting the same IP address of my HA host pc. Just saying…

1 Like