for the last few weeks HA crashes a few times a week which is not good.
I finally found a log file home-assistant.log.1
end it ends like this.
2021-09-20 19:06:35 WARNING (SyncWorker_3) [homeassistant.components.rpi_power.binary_sensor] Under-voltage was detected. Consider getting a uninterruptible power supply for your Raspberry Pi.
2021-09-20 19:07:35 WARNING (SyncWorker_4) [homeassistant.components.rpi_power.binary_sensor] Under-voltage was detected. Consider getting a uninterruptible power supply for your Raspberry Pi.
2021-09-20 19:12:35 WARNING (SyncWorker_1) [homeassistant.components.rpi_power.binary_sensor] Under-voltage was detected. Consider getting a uninterruptible power supply for your Raspberry Pi.
2021-09-20 19:13:14 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [1746431136] Client unable to keep up with pending messages. Stayed over 512 for 5 seconds
2021-09-20 19:13:20 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [1746431136] Client unable to keep up with pending messages. Stayed over 512 for 5 seconds
2021-09-20 19:16:21 DEBUG (Thread-3) [arris_dcx960.arrisdcx960] Disconnected from mqtt client: 1
2021-09-20 19:17:23 WARNING (Thread-4) [homeassistant.components.mqtt] Disconnected from MQTT server core-mosquitto:1883 (1)
after this there is nothing, but HA becomes totally unresponsive.
the undervoltage messages are normal and shouldn’t be an issue.
I have the feeling the issue arised when I configured duckdns and opened port 8123.
But I’m not fully sure about this.
this message stands out in the error, but can’t figure what those messages should be
Client unable to keep up with pending messages. Stayed over 512 for 5 seconds
Is there some way I can find where those pending messages come from or what they mean?
or another solution of course is also welcome.
since then I have far less of these messages, but I still have.
what powersupply should I use for an Rpi3?
would the official one suffice?
or are there better once?
I installed a new adapter and now the undervoltage messages are gone.
I don’t have any issues with this at all.
I also applied a heatsink.
but what I do notice is a sudden temperature spike and the system becoming slow or unavailable
the log shows some time outs
2021-09-24 19:22:53 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /core/stats request
2021-09-24 19:22:53 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /core/stats -
2021-09-24 19:22:53 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/stats request
2021-09-24 19:22:53 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /supervisor/stats -
2021-09-24 19:25:53 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/stats request
2021-09-24 19:25:53 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /supervisor/stats -
2021-09-24 19:25:53 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /core/stats request
2021-09-24 19:25:53 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /core/stats -
but only for the requests which did come through.
It seems like the system is really busy doing something, But I don’t have a clue what it is.
Is there some way I can find what causes those issues?
the top command didn’t work.
So I tried glances and portainer,
but that made the issue some what worse.
it seems like a memory issue after all.
so I changed gpu_mem=16
in config.txt
which gave me 48mb extra.
and I followed this instruction to increase the swap file