HA forcing shutdown on VirtualBox

I’ve been using HA for a while now and am constantly adding more automations. There is one annoying issue that occurs every ~30-40 days which I can only assume is an installation issue … and for which i’d need troubleshooting assistance from this community. Every ~30-40 days the HA VM shuts down.

My set up

  • VirtualBox VM with 2 vCPUs, 4 Gig of mem, 100 Gig of storage - running on a mini PC running Win10
  • HA - currently on core 2023.7.3, sup 2023.8.1, but has plagued me with many versions in the past
  • Running mostly HA native integrations, node red, Grafana

Note: had a look at the system usage, and from the few times I tried I am well below the cpu and memory limits - but there might be spikes I have not seen.

My problem - according to virtualbox logs
127:19:55.290254 GUI: UICommon: Commit data request…
127:19:55.393982 GUI: UICommon: Handling aboutToQuit request…
127:19:55.783346 Console::powerDown(): A request to power off the VM has been issued (mMachineState=Running, InUninit=1)
127:19:55.784759 Console: Machine state changed to ‘Stopping’
127:19:55.788242 Changing the VM state from ‘RUNNING’ to ‘POWERING_OFF’

The HA logs are huge - and I can’t find the cause (timestamps not helping for some reason - I don’t see gaps - are HA logs timestamps aligned to HA configured timezone ?)

Could someone give me guidance on how to troubleshoot this issue ?

Thanks!

1 Like

The HA log from last time it ran is /config/home-assistant.log.1 and there is also /config/home-assistant.log.fault to look at.

The timestamps should be in your localtime. check by looking at the last few entries

tail /config/home-assistant.log

@nckrout I have the logs, they are huge, but haven’t found any line that point to a forced shutdown and I haven’t found how to upload them to this community post.

Well obviously it is going to be towards the end of the log.

Obviously indeed ;-). Or almost, if the VM is stopped, the logs are not retrievable, and once I re-start the VM, HA populates the logs again, and I did not jump on the logs immediately after reboot. But anyway, I could not find anything in the logs that points clearly to why we had a VM shutdown

Next time I see the crash, I’ll immediately get the logs and hope to have more details.

IceKream

You clearly haven’t read my post.

Are you sure that it is HA that request a shutdown and not your HostOS?

The title of the thread assumes so. But assumption is the mother of f*** ups.