New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error starting mariadb on every host reboot #201
Comments
Are you using existing data or starting from blank installation? |
Do you mean was I migrated from standalone mariadb to dockerized one? Yes, I'm using the data I had before I started to adopt docker. |
Did you use the exact same version of MariaDB in your standalone? |
I've disabled the standalone MariaDB once I migrated to docker and I don't remember what version it was (several updates occurred since then) but I suppose it must be the latest one as soon as I use ArchLinux. It works fine merely fails to start on the host machine reboot. |
From the logs, it looks to me like your instance isn't shutting down cleanly when your system does -- when the system shuts down, is it doing so cleanly? Is Docker getting the appropriate shutdown signal which it can propagate down to the containers so they can clean up before getting killed? It might help to add a "stop timeout" on your container to give it a little more time to shut down gracefully if it's going too slow (the default is 10 seconds, I believe, which often isn't enough for MariaDB to close out cleanly if you've got slow disks). |
Also, it looks like the latest in Arch is 10.1 (https://www.archlinux.org/packages/extra/x86_64/mariadb/), so you might need to run See https://mariadb.com/kb/en/library/upgrading-from-mariadb-101-to-mariadb-102/ and https://mariadb.com/kb/en/library/upgrading-from-mariadb-102-to-mariadb-103/ for more information on upgrades from 10.1 to 10.2 and 10.3. |
It might work fine but innodb versions are really different between 10.1 and 10.3 (innodb 5.6 and 5.7) so that might cause an unclean shutdown. My advice is either:
|
Thank you gents! |
It's possible that we're not allowing long enough time for mariadb to stop cleanly. MariaDB/mariadb-docker#201 indicates that adding a stop time might be useful. The default is 10, bump it to 60. Change-Id: Id7a815d1508fe6d8f79818c9109cbf89533bb2a6
* Update system-config from branch 'master' - Merge "Add a stop timeout to gitea docker-compose up" - Add a stop timeout to gitea docker-compose up It's possible that we're not allowing long enough time for mariadb to stop cleanly. MariaDB/mariadb-docker#201 indicates that adding a stop time might be useful. The default is 10, bump it to 60. Change-Id: Id7a815d1508fe6d8f79818c9109cbf89533bb2a6
Hi there!
I've got a wierd issue I don't know how to debug. Every single reboot I get mariadb unable to start with this error:
my docker-compose looks like this
After I remove tc.log the container starts immediately.
What could be wrong? Not set uid? Very annoying
The text was updated successfully, but these errors were encountered: