I’m running Home Assistant Container on a Raspberry Pi 4. I updated to core-2021.5.3 a few days ago when that was the latest version. I didn’t see anything on this topic in the release notes for the .4 and .5 versions.
When running a backup of my config folder just now I noticed that the home-assistant_v2.db-wal had almost reached the size of the database itself, over 400MB. It appears no ‘commit’ is ever issued by the recorder.
The commit interval set to 20 seconds and that worked flawlessly in the past, here a snippet from configuration.yaml:
recorder:
commit_interval: 20
When I stopped the HA docker container a commit must have been issued, home-assistant_v2.db-wal disappeared as expected. Since I re-started the container the WAL has been re-created and has started growing again.
I joined the problem because it’s the same for me. home-assistant_v2.db-wal is almost the same size as the db and will never be removed. I’ve noticed this in the last two versions of the core.
Where to insert: PRAGMA wal_checkpoint (TRUNCATE);
thanks