I recently began having issues with HomeAssistant crashing every few days or so. But after a quick power reset everything works perfectly again.
The system is set up on a Raspberry Pi 3 Model B via the recommended installation instructions.
Everything should be up to date:
arch armv7l
chassis embedded
dev false
docker true
docker_version 19.03.8
hassio true
host_os HassOS 4.11
installation_type Home Assistant OS
os_name Linux
os_version 4.19.127-v7
python_version 3.8.3
supervisor 229
timezone Europe/Berlin
version 0.113.3
virtualenv false
After connecting a display to my Raspberry Pi, I waited for the next time the crash occurred and the following Console-Log was visible:
Every 120 Seconds it repeats:
INFO: task kworker/2:3:31414 blocked for more than 120 seconds.
Tainted: G C 4.19.127-v7 #1
"echo 0 > proc/sys/kernel/hung_task_timeout_secs" disables this message.
kworker/2:3 D 31414 2 0x00000020
Workqueue: events_freezable mmc_rescan
(<80988abc>] (schedule) from [<80989244>] (schedule+0x50/0xa8)
[<80989244>] (schedule) from [<8074ee38>] _nc_cat in_host+0xe4/0x238)
[<8074ee38>] (__mmc_claim_host) from [<8074efc4>](mc_get_card+0x38/0x3c)
[<8074efc4>] (mmc_get_card) from [<80758020>] (Anc_sd_detect+0x24/0x7c)
[<80758020>] (mmc_sd_detect) from [<80751474>] (mmc_rescan+0xe8/0x3f8)
[<80751474>] (mmc_rescan) from [<8013c49c>] (process_one_work+0x200/8x4c0)
[<8013c49c>] (process_one_work) from [<80130568>] (worker_thread+@x4c/0x568)
[<8013a568>] (uorker_thread) from [<8014305c>] (kthread +0x140/0x17O)
[<8014305c>] (kthread) from [<801010ac>] (ret_from_fork+0x14/0x28)
Exception stack(Ox90eddfb0 to Ox90eddff8)
dfa: 00000000 00000000 00000000 00000000
dfco: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
dfeo: 00000000 00000000 00000000 00000000 00000013 00000000
(I copied this log from the picture via Google Lens, so this text may not be 100% accurate)
I read online that the “Tainted” part means that the superblock may be bad. I personally couldn’t fix it via “mke2fs” and “e2fsck”.
The SD card is only about half a year old, and is quite top of the line. And I have an external database, so there should be less strain on the SD card in general.
Is the SD card faulty?
HomeAssistant starts and works fine when i power cycle.
Has anybody ever had this problem before?
Thanks!