operating-system: Host crashes and goes offline at random times

Hardware Environment

  • Raspberry Pi [1/2/3/4] (Raspberry Pi 4 model B, 4GB RAM)
  • ODROID [C2/C4/N2(+)/XU4]
  • ASUS Tinker [S]
  • Generic x86-64 (like Intel NUC)
  • OVA (Open Virtualization Applicance, on Intel NUC or any other hardware, please add the Hypervisor you are using)

Home Assistant OS release:

  • Fresh installation of release x.y
  • Updated from version x.y
  • Additional information (if accessible):

System Health

version core-2021.4.6
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.8.7
os_name Linux
os_version 5.4.83-v8
arch aarch64
timezone Europe/Madrid
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 5.13
update_channel stable
supervisor_version supervisor-2021.04.0
docker_version 19.03.15
disk_total 57.8 GB
disk_used 10.1 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.1.0), Duck DNS (1.12.5), NGINX Home Assistant SSL proxy (3.0.1), Mosquitto broker (5.1.1), Hello world (5), File editor (5.2.0)
Lovelace
dashboards 10
resources 5
views 10
mode yaml

Supervisor logs:

Journal logs:

Here are the journal logs from what seems to be the start of the crash, I didn’t want to clutter this post with 500 lines worth of logs (if that’s not an issue please tell me and I’ll edit this!).

Kernel logs:

Description of problem:

My Raspberry Pi with Home Assistant OS seems to crash randomly. It goes completely dead (can’t ping). Seems to be the same situation as homeassistant/core#43155, #1119 and #1232.

Is the problem reproducible?

Not really; so far, I’ve only seen it happen at random times. Mostly at night, but I often tinker with the installation during the day, so it gets restarted frequently.

Has this been working before (is this a regression?)

Sadly I didn’t pay much attention before early March, which was when I started having automations that ran at night, since the system seemed to crash before the automations ran (and therefore they wouldn’t trigger). Many users having similar problems have said downgrading to OS 5.4 has fixed the issue for them.

Has there been attempt to rule out hardware issues? (different SD card etc.)

Yes. I replaced the SD card with a 64GB Application Class 2 one, since I thought my old SD was dying.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 62 (6 by maintainers)

Most upvoted comments

I did not take it that you were blaming anyone. Some days frustration hits in very simple things.

@agners I will try the downgrade!

Downgrading from 6.1 to 5.13 to 5.3 using the CLI also works again 😃 Thanks for fixing that, @agners

However, you can downgrade by downloading the raucb file from the Github release page and store it on a USB flash drive with the name CONFIG. Upon import it will downgrade to that particular version. See: https://github.com/home-assistant/operating-system/blob/rel-6/Documentation/configuration.md

@agners I see, thank you for your help!

@rousveiga from your comment above it seems that you tried release 6. but it did not show an improvement?

I’m currently testing it on my spare Pi (the setup is exactly the same as with my “main” Pi). So far it’s looking good, it’s been running for two days without issues; my intention is to leave it up for a couple more weeks, just in case.

The reason why I asked about the downgrade is because I wanted to test that I could downgrade to a stable version before I upgraded my main installation.

What would be interesting is using OS release 5.5+ while still using the old firmware. To try out a different firmware, simply replace start4.elf and fixup4.dat on the first FAT partition of the SD card with the downloaded files from this link.

I will try this as well!

Go to hear. I could use 5.2, 5.3 and 5.4 with no issues. Nothing has worked for me after this. I also have issues with the Debian March version crashing in several hours with HA as supervisor. The RPI OS and HA as supervisor seems to work for me also.