I am getting corruption on the states table it seems
2023-11-02 11:29:19 21 [ERROR] InnoDB: File './homeassistant/states.ibd' is corrupted
When I do a check table manually however, everything seems to be okay:
mysqlcheck -c --all-databases
homeassistant.event_data OK
homeassistant.event_types OK
homeassistant.events OK
homeassistant.recorder_runs OK
homeassistant.schema_changes OK
homeassistant.state_attributes OK
homeassistant.states OK
homeassistant.states_meta OK
homeassistant.statistics OK
homeassistant.statistics_meta OK
homeassistant.statistics_runs OK
homeassistant.statistics_short_term OK
There is always a ib_logfile0 in the folder
-rw-rw---- 1 root root 48.0M Nov 2 11:59 ib_logfile0
I delete it and restart it is okay for a while before the error pops up again the next day.
Also tried repair
bash-5.1# mysqlcheck --auto-repair homeassistant
homeassistant.event_data OK
homeassistant.event_types OK
homeassistant.events OK
homeassistant.recorder_runs OK
homeassistant.schema_changes OK
homeassistant.state_attributes OK
homeassistant.states OK
homeassistant.states_meta OK
homeassistant.statistics OK
homeassistant.statistics_meta OK
homeassistant.statistics_runs OK
homeassistant.statistics_short_term OK
I did try to optimise the table but doesnt really help. I am able to fully dump the database, but I am not sure how the procedure will be to restore it since this is running as a container on HASSOS
Pointers would be welcomed