operating-system: OS 5.9: Raspberry pi 3 freezes, zram decompression failed

Hardware Environment

  • Raspberry Pi 3

Home Assistant OS release:

  • Updated from version 5.8
  • Additional information:
arch: armv7
channel: stable
docker: 19.03.13
features:
- reboot
- shutdown
- services
- network
- hostname
- hassos
hassos: "5.9"
homeassistant: 2020.12.1
hostname: hassio
logging: info
machine: raspberrypi3
operating_system: Home Assistant OS 5.9
supervisor: 2020.12.7
supported: true
supported_arch:
- armv7
- armhf
timezone: Europe/Berlin

Supervisor logs:

supervisor_log.txt

Kernel logs:

kernel_log.txt

Description of problem:

Occasionally, the Raspberry Pi freezes completely (even the numlock LED ceases to work on a local USB keyboard) and requires a power cycle. Also, with heavy use, processes occasionally terminate unexpectedly.

This problem has started either with Home Assistant OS Release-5 build 9 or build 8. The full freeze first occurred on build 9 for me, but the crash of a docker container’s process might have also happened before. I had been operating this setup with stable HA OS releases for more than a year now without any of these problems.

Error messages related to the zram appear in the kernel log and on the local console:

[ 1472.597586] zram: Decompression failed! err=-22, page=32663
[ 1472.597883] zram: Decompression failed! err=-22, page=32663
[ 1472.598047] Read-error on swap-device (254:0:261304)
[ 1590.459156] zram: Decompression failed! err=-22, page=10855
[ 1590.459375] zram: Decompression failed! err=-22, page=10855
[ 1590.459474] Read-error on swap-device (254:0:86840)
[ 1735.075095] zram: Decompression failed! err=-22, page=5410

Additional remarks: This problem might to be related to the current Linux kernel and could affect a number of arm devices. According to this email, disabling the CONFIG_ZSMALLOC_PGTABLE_MAPPING in the Linux kernel config may resolve the problem: https://www.spinics.net/lists/stable/msg428110.html

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 6
  • Comments: 18 (5 by maintainers)

Commits related to this issue

Most upvoted comments

I have experienced the same kind of issue, where the system is totally frozen within roughly 24 hours, since upgrading many of the components before Christmas. I have now moved it to my monitor so that I can see that Pi has become unresponsive in the console as well, which clearly indicates OS level issues. Now it has been up for 30 hours after disabling Hey Ada and AppDaemon 4. I’m not really using Ada and only running two simple scripts in AppDeamon to use Ikea remote controls, so nothing really intensive.

Will let things run for another day to see if things work and then enable Ada & AppDeamon one by one too see if things break.

Running Supervisor 2020.12.7 HA OS 5.9 on a Pi 4 4GB.

Following, having the exact same issue. Pi 3B+. I also receive messages that it runs out of memory and is killing tasks And this: systemd-coredump[313]: Failed to get COMM: No such process

After this it freezes indefinitely

Morning,

The raspi 3b has just freeze, so this patch seems to not be enough.

If you need any log just tell me.

Thanks.