Frontend unresponsive

Hi,
I am running HASS 6.6 core 2021.11.5 on a raspberry pi 4 with 1gb of ram. Sometimes the frontend stops working (always happens at night time), when trying to load in browser by ip address https://192.168.0.150:8123/ will throw ERR_CONNECTION_REFUSED and hass mobile app doesn’t load either. (I also have a duckdns domain but for debugging purposes I am working directly with the local network IP)

A reboot at this point, fixes the issue, everything goes back to normal but it’s annoying because it happens every couple of days apart although sometimes goes a full week with no issues. I would like to track down the problem and try to fix it because the system otherwise runs nicely.

While the frontend is dead, the system responds to ping just fine and SSH works.

Running htop, shows about 50% of physical memory used and minimal CPU load.

these are the contents of /config/homeassistant.log, the system became unresponsive sometime after 2021-12-01 19:33:06

2021-12-01 12:24:41 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration scheduler which has not been tested by Home Assistant. This component might cause stability >
2021-12-01 12:24:41 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability probl>
2021-12-01 12:25:17 WARNING (MainThread) [homeassistant.components.generic_thermostat.climate] The climate mode is OFF, but the switch device is ON. Turning off device switch.thermostat
2021-12-01 12:31:00 ERROR (MainThread) [frontend.js.latest.202111090] https://myduckdns.duckdns.org:8123/lovelace/default_view:0:0 Uncaught
2021-12-01 13:24:17 ERROR (MainThread) [frontend.js.latest.202111090] https://myduckdns.duckdns.org:8123/lovelace/default_view:0:0 Uncaught
2021-12-01 13:25:35 ERROR (MainThread) [frontend.js.latest.202111090] https://myduckdns.duckdns.org:8123/lovelace/default_view:0:0 Uncaught
2021-12-01 19:10:16 ERROR (MainThread) [frontend.js.latest.202111090] https://myduckdns.duckdns.org:8123/lovelace/default_view:0:0 Uncaught
2021-12-01 19:10:54 ERROR (MainThread) [frontend.js.latest.202111090] https://myduckdns.duckdns.org:8123/lovelace/default_view:0:0 Uncaught
2021-12-01 19:26:06 WARNING (MainThread) [homeassistant.components.automation.fan] Fan: Already running
2021-12-01 19:26:12 WARNING (MainThread) [homeassistant.components.automation.fan] Fan: Already running
2021-12-01 19:26:17 WARNING (MainThread) [homeassistant.components.automation.fan] Fan: Already running
2021-12-01 19:26:21 WARNING (MainThread) [homeassistant.components.automation.fan] Fan: Already running
2021-12-01 19:33:06 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548166926496] Client unable to keep up with pending messages. Stayed over 512 for 5 seconds
2021-12-01 20:00:21 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548154095312] Client unable to keep up with pending messages. Stayed over 512 for 5 seconds
2021-12-01 20:48:06 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548126263568] Client unable to keep up with pending messages. Stayed over 512 for 5 seconds
2021-12-02 00:53:21 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_mosquitto/stats request
2021-12-02 00:53:21 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_duckdns/stats request
2021-12-02 00:53:21 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_nodered/stats request
2021-12-02 00:53:21 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_wireguard/stats request
2021-12-02 00:53:21 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_influxdb/stats request
2021-12-02 00:53:21 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_ssh/stats request
2021-12-02 00:53:21 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_grafana/stats request
2021-12-02 00:53:21 WARNING (MainThread) [homeassistant.components.hassio] Can't read Supervisor data:

Any idea of what might be the problem here? Or maybe what else I could check?

Thanks!

Those seems to indicate you have a problem with some automations running too often / eating too much resource.
It might or might not be the origin of HA becoming unresponsive…

That fan automation has just been added and I was actually sending some manual overrides for that relay at 19:26. System was fully responsive at that time and these problems I’ve been having go back about 2 months ever since I’ve setup this instance.

For the 3 ERRORS at 19:33, 20:00 and 20:48 what is the source of those messages or what can I do to investigate this further?

Is there something else I could check right now when the frontend is not loading? Something that would point to the problem?

Not a direct solution to your problem, but this might be of interest:

At least it shows that you are not alone here, and maybe you will find a hint to a solution for your case?

1 Like

Yeah, seems to still be an issue for many (including me) but it has been closed without much explanation why (as is often the case…)