Corrupt .db file (db.shm & db.wal

I’ve had this a couple of times in the past when rebooting Home Assistant.
Usually stopping HAS and deleting them works… but curious if we can debug further why this happens and/or if we can stop it?

They are perfectly normal temporary files the database uses. Leave them be.

1 Like

I thought this, but this happens on a restart.
If I Stop > Start - it doesn’t resolve the issue.

I usually have two solutions

  1. Stop HAS > Delete temp files > Start HAS
  2. If the above fails… Stop HAS > Delete all v2.db* files > Start HAS