Moved VM, now no history

Hello, pretty now to HA, but loving it.

I shutdown HA, and moved the VM to a different drive letter on my Windows Server. Started okay. The Overview shows current values, but history display nothing for every single integration.
What did I break?

Likely your recorder.

Check the log for errors.

That’s the Logbook right? Nothing I can see. I tried to filter entity or device for recording and nothing matches.

No. Logbook is just a representation of your state history. System logs are what you want:

Settings → System → Logs → Core

Okay, this looks useful. Can I re-initilise the db?


Logger: homeassistant.components.recorder.util
Source: components/recorder/util.py:292

The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly

That shouldn’t stop it writing to or reading from the db unless it is corrupt from a hard shutdown.

Did you shutdown from within HA or did you just stop the VM?

Within HA.

There are no other log rows with a keyword of recorder.

What about “sqlite” or “database”?

None unfortunately.

Apologies, all history has returned. I’ve changed nothing and not restarted. I don’t understand what happened. Anyway, thanks for the assistance @tom_l

1 Like