Hello @ll
I have a CentOS Linux release 7.7.1908 (Core) and want to install Passbolt via Docker.
I follow the instructions from https://help.passbolt.com/hosting/install/ce/docker.html
The following command works fine:
docker run -d --name mariadb --net passbolt_network --mount source=mariadb_passbolt_data,target=/var/lib/mysql -e MYSQL_ROOT_PASSWORD="XXXXX" -e MYSQL_DATABASE=mariadatenbank -e MYSQL_USER=XXXXX -e MYSQL_PASSWORD="XXXXX" mariadb
Mariadb have no problems. But if I will do the next step:
docker run --name passbolt --net passbolt_network -p 443:443 -p 80:80 -e DATASOURCES_DEFAULT_HOST=mariadb -e DATASOURCES_DEFAULT_PASSWORD="XXXXX" -e DATASOURCES_DEFAULT_USERNAME=XXXXX -e DATASOURCES_DEFAULT_DATABASE=mariadatenbank -e APP_FULL_BASE_URL=https://localhost passbolt/passbolt:latest
Passbolt calls:
Running baseline checks, please wait... Exception: SQLSTATE[HY000] [2006] MySQL server has gone away in [/var/www/passbolt/vendor/cakephp/cakephp/src/Database/Driver.php, line 92]
and:
Exception: There was a problem connecting to the database: SQLSTATE[HY000] [2006] MySQL server has gone away in [/var/www/passbolt/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/MysqlAdapter.php, line 127]
If I look into docker logs mariadb, I can see:
2020-03-25 13:22:47 8 [Warning] Aborted connection 8 to db: 'unconnected' user: 'unauthenticated' host: 'XXXXX [IP-Adress removed]' (This connection closed normally without authentication)
I have see an other post, with a similar problem, but the solution don’t help me.
https://community.passbolt.com/t/problem-connecting-to-database-azure-mysql-with-ssl/2368
Thank you very much!