Corrupted database

Hi,

For 2 days, HomeAssistant has been displaying “Defective system - data_filesystem_check_error”. I tried a repair from the console, without success.

I have little on my HomeAssistant, so I would like to suppress everything I have done and start from a blank instance.

How can I do it ?

Wipe your system & reinstall HA from scratch.

Some info on the error

Thank you.
I’m still surprised: the main cause is a power outage.
However, my NAS is protected by an inverter and I have not had any electrical problems in recent weeks. I don’t understand how a file is corrupted.
I thought I could delete the data without having to reinstall everything. I have a backup dating back 3 days before the appearance of the error message, but isn’t it running the risk of restoring a potential bug to come?

Not in this case if you ask me. If the backup is corrupted, you cant restore. If it inst corrupt, you fixed file system will handle it fine

Sudden power outages will do that to you. You probably had a warning saying something along the lines of “could not verify that the database was shut down cleanly”

If you still can, download your backup to a different device & do a full reboot (not restart) from the More Options menu like the doc says.

Hopefully that should be enough, otherwise you’re gonna have to start over & restore from backup.

Thank you very much! It worked!
I no longer have an error message.
However, I hesitate because I arrived in this situation without a problem of power outage or problem with my NAS.
Can this be due to an unstable HACS module? Should I, in case of doubt, delete all formatting modules, which are not essential?

To narrow down the problem. Leave it running for a week or 2 and if there’s no problem then you know it’s power outage that caused the corruption and not the HACS modules.

Always a good idea to remove anything you don’t think you’ll be using in the near future, especially custom integrations.

Just make sure you have a backup in case you remove something which you’re actually using by mistake.

Thanks everyone for your help!
I changed my backup destination (to my NAS, outside the VM).
I’ll see how my “repaired” configuration holds up over time.