Docker: Aborded connection/SQLSTATE[HY000] [2006]

Hello @ll

I have a CentOS Linux release 7.7.1908 (Core) and want to install Passbolt via Docker.
I follow the instructions from
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]
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. :frowning:
Thank you very much!

Hi @Sebastian_SWP Any chance that you might be running low on RAM? Maybe as a result of multiple processes?

Hello garrett,
thank you for your answer. No, the RAM was not the origin of this problem. Last week, I saw later the MariaDB had no database and no users created. I had tested it on a Debian-VM, but there were the same problems. Today, I created a new CentOS-VM to insert the users manually and create the database manually too, but now the MariaDB container works fine :grimacing: So, I think it gave an update, which fixed this problem.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.