Network Crashing

Ok…in a follow up from this post, I don’t think that my Homeassitant is crashing but instead it is losing network connection.

Lost connection again this morning.
Could not ping HomeAssiistant.
I have also tried to configure the wifi on the homeassistant and I could see that it was available on the WIFI network but did nto haev an IP

I went and Unplugged the LAN cable to it and plugged ti back in and presto back online.

Belwo is the log data I was able to get from around the time it went offline

023-01-08 09:26:13.317 WARNING (Thread-6) [pychromecast.socket_client] [upstairs(192.168.0.120):8009] Heartbeat timeout, resetting connection
2023-01-08 09:26:41.374 ERROR (MainThread) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: Reading from 192.168.0.126:5555 timed out (9.0 seconds)
2023-01-08 09:26:41.962 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to 192.168.0.126:5555.  OSError: Network unreachable
2023-01-08 09:26:43.344 ERROR (Thread-6) [pychromecast.socket_client] [upstairs(192.168.0.120):8009] Failed to connect to service ServiceInfo(type='mdns', data='Cosmos-4d1d5e2f7d09a3095f9fde66ba9d946c._googlecast._tcp.local.'), retrying in 5.0s
2023-01-08 09:26:45.074 ERROR (MainThread) [homeassistant.components.ipp.coordinator] Error fetching ipp data: Invalid response from API: Error occurred while communicating with IPP server.
2023-01-08 09:26:49.444 WARNING (Thread-5) [pychromecast.socket_client] [Family room TV(192.168.0.118):8009] Heartbeat timeout, resetting connection
2023-01-08 09:26:49.450 ERROR (Thread-5) [pychromecast.socket_client] [Family room TV(192.168.0.121):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.0.121', 8009)), retrying in 5.0s
2023-01-08 09:26:51.658 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=22 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 42040)>
2023-01-08 09:26:51.671 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=22 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 42040)>
2023-01-08 09:26:52.221 ERROR (MainThread) [homeassistant.components.upnp] Error fetching 4G+ LTE Router data: Unable to communicate with IGD at: http://192.168.0.1:5500/rootDesc.xml
2023-01-08 09:26:56.411 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for energymonitor @ 192.168.0.196: Error connecting to ('192.168.0.196', 6053): [Errno 101] Network unreachable
2023-01-08 09:26:57.771 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=35 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 38895)>
2023-01-08 09:27:18.399 WARNING (MainThread) [zeroconf] Error with socket 19 (('192.168.0.110', 5353))): [Errno 101] Network unreachable
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 1054, in sendto
    self._sock.sendto(data, addr)
OSError: [Errno 101] Network unreachable
2023-01-08 09:27:24.080 ERROR (MainThread) [homeassistant.components.homeassistant_alerts] Error requesting homeassistant_alerts data: Cannot connect to host alerts.home-assistant.io:443 ssl:default [Try again]
2023-01-08 09:27:27.779 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=35 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 38895)>
2023-01-08 09:27:29.972 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to 192.168.0.116:5555.  OSError: Network unreachable
2023-01-08 09:27:57.785 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=35 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 38895)>
2023-01-08 09:27:58.483 ERROR (MainThread) [meteireann] http://metwdb-openaccess.ichec.ie/metno-wdb2ts/locationforecast?lat=51.67239989879772;long=-9.44894671396469;alt=70;from=2023-01-07T9:00 returned Cannot connect to host metwdb-openaccess.ichec.ie:80 ssl:default [Try again]
2023-01-08 09:28:27.791 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=35 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 38895)>
2023-01-08 09:28:50.297 WARNING (MainThread) [androidtv.adb_manager.adb_manager_async] Couldn't connect to 192.168.0.116:5555.  OSError: Network unreachable
2023-01-08 09:28:51.659 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=22 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 42040)>
2023-01-08 09:28:51.664 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=22 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 42040)>
2023-01-08 09:28:57.801 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=35 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 38895)>
2023-01-08 09:29:27.807 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=35 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 38895)>
2023-01-08 09:29:57.817 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=35 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 38895)>

Happendd again - anyone have any ideas of what these errors mean?

2023-01-09 09:58:53.489 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=22 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 42040)>
2023-01-09 09:58:53.497 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=22 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 42040)>
2023-01-09 09:58:56.076 ERROR (MainThread) [homeassistant.components.ipp.coordinator] Error fetching ipp data: Invalid response from API: Error occurred while communicating with IPP server.
2023-01-09 09:59:04.242 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=35 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 38895)>

Similar issue here:

I haven’t been able to track down the disconnect event in the logs yet… but I’m experiencing the same network issue on my RPi4 instance every day or two and I’ve just been restarting it to restore network connectivity. But the system itself is clearly still up and functional, since all my z-wave and zigbee stuff is still behaving normally.

You wont be able to track it down int eh logs if you are starting it everytime

My RPi is connect via Ehternet cable and when i unplug and plug back in the cable the connect restores so i am able to see the logs

A few days ago this problem started for me too. I’m running HA on an RPI4B 8GB. Has there not been a solution to this problem yet?