Hass.io Homeassistant Core restarts sometimes

Hi,

I am running the latest version (15.2) of Hass.io on an MSI Cubi N4000. For about two weeks now, I’ve been experiencing an issue where the Home Assistant Core sometimes crashes, and Home Assistant (2025.6.1) becomes unreachable. All other add-ons continue to work just fine.

I’ve already tried reinstalling it on a new SSD, but the issue still persists.
I haven’t changed anything in my setup (except the SSD) in the past month.

I will attach a log file then I have it.

What could be causing this?

Thanks.

Read the homeassistant.log.1 file in the config folder.
It is the log file from the previous run.

I know but I have restarted it two times…

Then you have to wait.

It restarted again :roll_eyes:

Here is the log:

Summary
2025-06-22 12:31:53.682 WARNING (MainThread) [homeassistant.components.switch] Updating adguard switch took longer than the scheduled update interval 0:00:10
2025-06-22 12:31:53.683 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.adguard_home_schutz is taking over 10 seconds
2025-06-22 12:31:53.683 WARNING (MainThread) [homeassistant.components.media_player] Updating dlna_dmr media_player took longer than the scheduled update interval 0:00:10
2025-06-22 12:31:53.688 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=36 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=36, family=2, type=2, proto=0, laddr=('0.0.0.0', 59634)>
2025-06-22 12:31:53.689 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=61 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=61, family=2, type=2, proto=0, laddr=('0.0.0.0', 35750)>
2025-06-22 12:31:56.789 WARNING (MainThread) [aioesphomeapi.connection] irrigation @ 192.168.111.16: Connection error occurred: irrigation @ 192.168.111.16: EOF received
2025-06-22 12:31:56.842 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.cpu_speed is taking over 10 seconds
2025-06-22 12:31:56.842 WARNING (MainThread) [homeassistant.components.sensor] Updating cpuspeed sensor took longer than the scheduled update interval 0:00:30
2025-06-22 12:31:56.859 ERROR (MainThread) [homeassistant.components.matter] Unexpected exception: Connection failed.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/matter/__init__.py", line 176, in _client_listen
    await matter_client.start_listening(init_ready)
  File "/usr/local/lib/python3.13/site-packages/matter_server/client/client.py", line 644, in start_listening
    msg = await self.connection.receive_message_or_raise()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/matter_server/client/connection.py", line 125, in receive_message_or_raise
    raise ConnectionFailed
matter_server.client.exceptions.ConnectionFailed: Connection failed.
2025-06-22 12:31:56.867 WARNING (MainThread) [homeassistant.components.unifi] Exception on update Error requesting data from https://192.168.99.200:443/proxy/network/v2/api/site/default/trafficrules: Connection timeout to host https://192.168.99.200/proxy/network/v2/api/site/default/trafficrules
2025-06-22 12:31:56.868 WARNING (MainThread) [homeassistant.components.unifi] Exception on update Error requesting data from https://192.168.99.200:443/proxy/network/v2/api/site/default/trafficroutes: Connection timeout to host https://192.168.99.200/proxy/network/v2/api/site/default/trafficroutes
2025-06-22 12:31:56.871 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=61 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=61, family=2, type=2, proto=0, laddr=('0.0.0.0', 35750)>
2025-06-22 12:31:56.872 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=61 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=61, family=2, type=2, proto=0, laddr=('0.0.0.0', 35750)>
2025-06-22 12:31:56.872 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=61 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=61, family=2, type=2, proto=0, laddr=('0.0.0.0', 35750)>
2025-06-22 12:31:56.920 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry WLED for wled
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wled/__init__.py", line 46, in async_setup_entry
    await entry.runtime_data.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 309, in async_config_entry_first_refresh
    await self._async_refresh(
        log_failures=False, raise_on_auth_failed=True, raise_on_entry_error=True
    )
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 382, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wled/coordinator.py", line 113, in _async_update_data
    device = await self.wled.update()
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/wled/wled.py", line 252, in update
    if not (data := await self.request("/json")):
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/wled/wled.py", line 188, in request
    response = await self.session.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 768, in _request
    resp = await handler(req)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 723, in _connect_and_send_request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        req, traces=traces, timeout=real_timeout
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 622, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1189, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1530, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1248, in _wrap_create_connection
    sock = await aiohappyeyeballs.start_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 73, in start_connection
    sock = await _connect_sock(
           ^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock
    await loop.sock_connect(sock, address)
  File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError: Home Assistant is stopping
2025-06-22 12:31:56.941 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry WLED for wled
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wled/__init__.py", line 46, in async_setup_entry
    await entry.runtime_data.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 309, in async_config_entry_first_refresh
    await self._async_refresh(
        log_failures=False, raise_on_auth_failed=True, raise_on_entry_error=True
    )
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 382, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/wled/coordinator.py", line 113, in _async_update_data
    device = await self.wled.update()
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/wled/wled.py", line 252, in update
    if not (data := await self.request("/json")):
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/backoff/_async.py", line 151, in retry
    ret = await target(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/wled/wled.py", line 188, in request
    response = await self.session.request(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 768, in _request
    resp = await handler(req)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 723, in _connect_and_send_request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        req, traces=traces, timeout=real_timeout
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 622, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1189, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1530, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1248, in _wrap_create_connection
    sock = await aiohappyeyeballs.start_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 73, in start_connection
    sock = await _connect_sock(
           ^^^^^^^^^^^^^^^^^^^^
    ...<6 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock
    await loop.sock_connect(sock, address)
  File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError: Home Assistant is stopping
2025-06-22 12:31:56.958 WARNING (MainThread) [homeassistant.components.mqtt.client] No ACK from MQTT server in 10 seconds (mid: 5649)
2025-06-22 12:31:56.958 WARNING (MainThread) [homeassistant.components.mqtt.client] No ACK from MQTT server in 10 seconds (mid: 5650)

Could be matter or WLED the problem?
I will try to disable those two.

Looks like you are losing network connection, but the cause is probably prior to the log snippet you have provided.

But it makes no sense that my complete home-assistant core crashes???

Edit: I’ve see lots of disconnects in my Unifi Controller. I will replace the ethernet cable.


IOT is a Vlan.

Edit2:

ip -s link show enp6s0
2: enp6s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 00:d8:61:c8:ea:f9 brd ff:ff:ff:ff:ff:ff
    RX:   bytes  packets errors dropped  missed    mcast           
    23951906110 34889167      0   90259       0 15989712 
    TX:   bytes  packets errors dropped carrier  collsns           
    29007586936 29677244      0     110       0        0 

I think it could be a network issue.

You do not have control of you VLAN.
Check your network setup and know that HA is not made to handle multihomed setups.