Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106743

Virtual Box Home Assistant OS keeps crashing and using 100% cpu on host

$
0
0

Hello,
My home assistant setup started crashing about 2 weeks ago. Any help that anyone has to troubleshoot this would be appreciated.

Hardware: Mini PC (intel n100 cpu, 12GB ram, 256GB SSD)

Configuration: Windows > Oracle Virtual Box > Home Assistant OS (.vdi image)

VM Resources: 4GB ram, 4cpu processors, 100% execution cap, 32GB storage

Devices and Services within HAOS: August Lock integration, Bond bridge integration, HACS, Homekit integration (export of devices to homekit), Litter Robot, SmartThinQ LGE, System Monitor, Z-Wave JS UI, ZHA

Behavior on Host PC: CPU usage will be pegged at 100% until I open the Virtual Machine and then it will drop to 30-50%, sometimes this alone will fix the issue. Everything else seems nominal. If HAOS does not recover by opening the VM through VirtualBox, I will shut down the VM and restart it within VirtualBox (I run the VM in headless most of the time).

I sometimes see errors on the VM CLI, the screenshot below is an example, but I dont know much about the error or how to troubleshoot it…

Behavior within HAOS: Home assistant will stop responding, no automations will run and the web-UI is unreachable.

I also see errors on the HAOS logs page sometimes but I’m unable to correlate them to a specific device or plug-in. I do not have a screenshot of these as I thought the logs would be saved within HAOS but I cant find them after a reboot…
I recall seeing runner.py errors and ncp-ezsp error that may be relevant. the python errors I see regularly after recovering from a crash, the ncp ezsp error I’ve only seen once.

What I’ve tried to resolve this: I’ve disabled a few of the integrations that I thought were causing issues, primarily ring camera integration as I was getting ffmpeg errors with the integration running but those seem to have gone away without fixing the crashing.

I installed system monitor hoping to see something there but the CPU and memory usage within home assistant seem fine. it is weird to me that the cpu usage on the Windows is much higher than what HAOS indicates it is using.



I will try to capture the logs within HAOS next time it crashes to see if there is valuable information there…

I have tried looking for patterns in when and how it crashes, but it seems to be at random and not following any particular schedule or pattern. Sometimes it’ll crash after 1-2 hours, sometimes it’ll go a 4-5 days without crashing. I’ve logged about a dozen crashes since June 16th and cannot find a pattern. It does not have to do with the Host PC updating/restarting as I’m logging reboot date/time and it doesnt match with the crashes (The VM successfully restarts upon host boot-up every time).

Any help troubleshooting this further would be greatly appreciated.
Thanks everyone!

13 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 106743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>