Closed samayo closed 4 years ago
We saw that, too after we ran into https://github.com/docker-library/mariadb/issues/262 Also see https://stackoverflow.com/questions/58542447
Cannot read first page of './ibdata1' I/O error
this is the parent error
Issues with that exact phrase: https://github.com/docker-library/mysql/issues/370#issuecomment-456266929
Either corrupt or your drive is going bad (which is usually when I start to see IO errors like that).
https://github.com/goharbor/harbor/issues/4100#issuecomment-360861557
I was able to fix this by running
mysql_upgrade
on the database running in a helper container
I can't run mysql_upgrade
because I can access mysql in the first place
Then I would recommend asking the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum
Going to close since this isn't an issue with the image
Edit (by @grooverdan):
I'm removing this "answer"/"solution" because far too many people have lost data due to removing ib_logfile0. New versions won't start with it missing. Its unclear what the original problem was, but people jumping to this solution will just end up with users loosing data where it may have been recoverable.
The important take away is " unknown/unsupported storage engine: InnoDB" is a very broad range of things that could cause it, most are recoverable if you look at the previous information provided in the log file. If you don't see a mapping, per the previous comment, do ask.
I have a docker-compose file where I run mariadb, nginx, php. But Mariadb keeps restarting every second for some reason:
If I check the logs, I see this error:
and here is my docker-compose file related to mariadb