Installer Step 3 fails: "MySQL server has gone away" #5071
PiWebswiss
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Could you please update the Docker installation guide? It looks like it uses an older Docker version. When I run your commands, I get a lot of error messages, which is discouraging especially for a security application. It’s frustrating to have to “reverse engineer” the installation just to get it working.
Right now, I’m stuck on the following error:
Database connection failed with error: Unable to connect to MySQL server! Error: MySQL server has gone away.I’m using the official YAML file with a self-signed SSL certificate (this is only a lab environment that I need to finish). The folder is located next to the
.envfile and is calledssl. No SSL certificates are provided.To make this easy to reproduce, I’m attaching my
docker-compose.yml(and any related YAML files) in the appendix/annex so you can run the same setup.The TeamPass web installer’s Step 3 (
/install/install-steps/run.step3.php) is failing in the PHP code path loaded viainclude.phpandtp.functions.php, even though:So the issue is essentially:
Installer Step 3 fails with
MySQL server has gone awayeven when DB connectivity works and official files are unchanged.How to reproduce it
Use the official compose + env (from the TeamPass repo) with:
DB_NAME=teampass,DB_USER=teampass,DB_PASSWORD=rootINSTALL_MODE=manualVIRTUAL_HOST=teampass.labo.localStart the containers:
2.1. Quick Permission Fix Inside the Docker Container
docker exec teampass-app chown -R www-data:www-data /var/www/htmlIt forces all files in the TeamPass web directory to be owned by the web server user, so the app can write everywhere.
It’s a bit of a “bazooka” solution.
https://teampass.labo.local/var/www/html/skdb, DB name:teampass, login:teampass, password:root, port:3306, prefix:teampass_Even if I POST the same values manually:
…I still get the same error, even though DB connectivity works.
I also removed Let’s Encrypt / acme-companion and configured
nginx-proxyto use self-signed local certificates mounted from./ssl.Annex:
docker-compose.with-proxy.yml+.envDo you have any suggestions? This is a lab exam project that I need to build, and right now I can’t even get past the setup page.
docker-compose.with-proxy.yml
env.txt
Beta Was this translation helpful? Give feedback.
All reactions