HASS becomes unresponsive, logs inconclusive

So here I am with one of those stupid “it breaks but nothing in the logs” type of errors. So shortly, some 2-3 weeks back HASS started to hang, UI not available etc. A restart would fix it. I was convinced it was the HW, so I ordered a green and migrated to it yesterday. Unfortunatelly this morning the same happened again. I was convinced it was HW because there was nothing in the logs that looks like it would cause it. The only thing I could find was issues with KNX connection. I restarted the green today in the morning at ca. 9:00 am and I see a lot of these connection issues at ca. 5 am.

2025-03-04 05:01:06.273 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.274 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.274 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.274 WARNING (KNX Interface) [xknx.log] Heartbeat failed. No answer from tunnelling server.

2025-03-04 05:01:06.276 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.276 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.277 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.277 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.277 WARNING (KNX Interface) [xknx.log] Heartbeat failed. No answer from tunnelling server.

2025-03-04 05:01:06.278 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.279 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.279 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.279 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.279 WARNING (KNX Interface) [xknx.log] Heartbeat failed. No answer from tunnelling server.

2025-03-04 05:01:06.281 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.282 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.282 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.282 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.283 WARNING (KNX Interface) [xknx.log] Heartbeat failed. No answer from tunnelling server.

2025-03-04 05:01:06.283 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.283 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.284 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.284 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.284 WARNING (KNX Interface) [xknx.log] Heartbeat failed. No answer from tunnelling server.

2025-03-04 05:01:06.285 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

2025-03-04 05:01:06.285 WARNING (KNX Interface) [xknx.log] Sending request of type ‘ConnectionState’ failed: Transport not connected

I am rather advanced in HASS, but troubleshooting this is super hard. Any pointers of what could be going on and where should I even start to fix this?

Thanks!

Does the problem persist when you remove the KNX integration? If so, it is not the logs you see that cause your issues. Did you check the logs of all the other components (when you see the logs, at the right upper corner you can select logs of the different components in your installation).

I will try that. I looked at other logs but did not find anything interesting there. I have seen that there seems to be some issues with the database in the logs and tried to restore the database, however that failed so far. I will try to completely remove the database so that it is recreated and see whether that fixes the issues. I will also try with your knx suggestion.

It’s hard to debug this however as it runs well for a couple hours after a restart.