Apps using MySQL are not working
-
The
mysqladdon fails to start sometimes and this results in mysql based apps not working.First check the status of the mysql addon using
docker logs -f mysql. If it saysWaiting for MySQL to come up, then that is the root the problem.docker exec -ti mysql /bin/bash root@f483661487a5:/# mysqld --datadir="${MYSQL_DATA_DIR}" --user=mysql mysqld: error while loading shared libraries: libaio.so.1: cannot stat shared object: Permission deniedThis appears to be something related to docker. There are some existing bug reports/pages for this:
- https://stackoverflow.com/questions/22473830/docker-and-mysql-libz-so-1-cannot-open-shared-object-file-permission-denied
- https://github.com/moby/moby/issues/7512
- https://github.com/moby/moby/issues/5430
Not sure what caused the problem but simply recreating the addon infrastructure fixed it (this essentially recreates the docker containers). This can done by:
- Bump up the patch version in
/home/yellowtent/platformdata/INFRA_VERSION. This has to be done very carefully. Please do not do this without a complete backup. systemctl restart cloudron.target
-
In another server instance hit by https://forum.cloudron.io/topic/1382/error-for-multiple-apps/12, recreating docker containers did not help. I even disabled apparmor altogether using
sudo systemctl stop apparmorandsudo systemctl disable apparmor. We tried server restart as well and that didn't help either.After disabling apparmor, I saw that mysqld would just quit without showing any error message or log output
As a final thing, I just ended up moving platformdata/mysql to mysql-old and recreated containers again. That made mysql come up and then we restored all the apps.Still a bit crazy/worrying that we hit this bug atleast twice now and there is no clear resolution.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login