Hello, almost every day I notice that I cannot access the HA GUI. After a couple of hours, GUI is up again and I see these two error messages in logs:
The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
Ended unfinished session (id=XX from YYYY-MM-DD HH:MM:SS.XXXXXX)
Hardware:
- RPi 4b
- Original RPi power supply
- KINGSTON A400 480 GB 2.5" SSD
- Nedis SATA to USB adapter
- RPi 3-channel relay card
- SONOFF ZBDongle-E + 3 IKEA Inspelning smart plugs
- D1 mini P1 port reader
Software:
- Core 2026.8.2
- Supervisor 2026.07.5
- OS 18.2
- GUI 20260729.7
Some integrations I have:
- myuplink
- ESPHome
- Fronius & Solarman
- go-eCharger
- Tailscale
- Telegram
Additional info:
- I have tried two SSD’s. Switching the SSD and reinstalling a fresh HA solved the issue for 3-4 months.
- Reinstalling HA from a backup solved the issue for a week.
- The P1 reader gives data only 15 minutes or so, but I need data every 10 seconds. I found a quick and dirty solution to this is to enable debugging mode in ESPHome. But this causes the following warnings:
esp-p1reader: [W][component:232]: Component took a long time for an operation (196 ms).
esp-p1reader: [W][component:233]: Components should block for at most 30 ms.
- I have the following in my configuration.yaml:
recorder:
purge_keep_days: 7
auto_purge: true
commit_interval: 60
- Upgrading Core/OS can trigger HA crashing, but usually it happens at a completely random time.
- I do not have power outages that could explain the issue.
- Sometimes automations run despite the unability to access GUI, sometimes not.
- When GUI is down, HA is “offline” in Tailscale
- It’s a remote setup so I can’t check what RPi would show on an external display or via SSH.
I’m afraid you will say that my problems are caused by insufficient SSD power supply or running ESPHome in debugging mode, but one can always hope. I really do not want to reflash the P1 reader or buy additional hardware.
