@dtx and @beauwilliams Yes, the fix is to delete your database as I mentioned previously (in the combination of threads you posted in about this). If you have Samba access you can simply go to the HA Config UI > Server Controls > Server Management > Stop. Then using Samba find the database file (home-assistant_v2.db) and delete it. I generally then use SSH to restart HA, or you could power cycle the server, whatever you need (I’m not familiar with the procedure for a VM)
Without Samba (and in Beau’s case, no GUI) you can achieve all this using the CLI too:
ha core stop
rm home-assistant_v2.db
ha core start
HA will restart and automatically create a new database file.
Yes that should be fine though, as its a warning not a breaking issue.
I have managed to delete the db now by getting a shell using login command
Then deleted the DB, it fixed my high CPU issue
I will consider the issues with the config now then (as I still have no web UI). But again, the errors are not breaking errors as I have already verified the config and it says OK (partially) as in “its fine, but you should fixed these issues up ASAP”
I have found the issue now. I appears to be related to SSL. The config was fine there we just a few deprecated things.
As soon as I turn SSL off, and use HTTP, I can access the web panel
It does say error, but those are indeed warnings in my particular situation. Mainly its to do with the base_url under http. its not going to break installation, but display that there is a error/warning
Frankly deleting the database is a shameful disgrace of a solution (not your fault of course). Any software that regularly corrupts its database needs to do some work on stabilising its database.
This I think is one of HA’s biggest problems. Databases should not corrupt themselves for no apparent reason.
Agreed. I’ve had to delete my database a few times in recent months. At first I thought it was just too big (a few Gb) so changed the recorder settings to track a lot less activity, however it still happened again with my last HA update.