Hello
I tried to search for this issue but seems I cant get a valid fix/solution or a suggestion on how to avoid this.
I’m using HA OS from about 2 years now, but I always noticed that every a couple of months the old hystorical data from the sensors got lost. At first it wasnt so important because I never needed them, but now yes I need the hystorical energy data.
So i discoverd that everytime as the .db2 file got at about 2.6Gigabyte in space, there is a message in the log that says
Unrecoverable sqlite3 database corruption detected: (sqlite3.DatabaseError) database disk image is malformed
and then
The system will rename the corrupt database file //config/home-assistant_v2.db to //config/home-assistant_v2.db.corrupt.2024-07-25T02:12:22.791177+00:00 in order to allow startup to proceed
So the database starts fresh.
There is a suggestion on how to avoid that or fix it?
Seems that this happens due to the space that the db took on the disk, but I have more that 100GB free on that disk (and Infact I just noticed that there are more than 5 old corrupeted db files, each one about 2.5 / 2.6 GB but also one at justt 400 MB )
Thanks for any help