First of all, thanks in advance. I’m eager to deploy and test this project.
Multiple attempts to do so thus far have failed.
Started out editing the docker-compose YML and renaming several parts of the stack and tailoring it to my environment (ie “db” will be problematic on my production stack and thus “projectname-db” was made to work) … it worked just fine up to the same point I get with vanilla docker compose but for simplicity I reset to the existing default template for now.
Which version (from Admin/Changelog and versions/Changelog)?
master branch and 23.1 were attempted.
Installation type (package installation, archive installation, git or UCS)?
docker
Which module?
core modules as provided in example docker compose.
Does the error occur after an update/upgrade?
on installation
During which action does the error occur?
Is the error reproducible?
fully reproducible - will describe in more detail below - installation incomplete
Are there any references in the web server error log19?
yes, the problematic one is despite docker reference db hostname (default: “db”) being used in the various environment variables, header include and docker files, “localhost” appears:
“Can not connect to mysql database mysql on host localhost:3306 using user multipleattempts (ADOdb::PConnect(localhost:3306, root, $Password, mysql) failed.) (100)”
- the username “multipleattempts” was tried as a db existing/created user “egroupware” as well as “root”.
Which database is used (MySQL/MariaDB or PostgreSQL)?
mariadb:10.6
Which web server is used (Apache or nginx (19.1 docker: on the host the reverse proxy!)?
nginx:stable-alpine
=
Obviously, the problem is the “localhost” error as in this configuration it needs to refer to the database server.
Installation detects/connects to the database at an earlier point, even creates the database under some circumstances. But it never creates the tables.
Tried web interface (screenshot enclosed) as well as within the instance (docker exec -it egroupware bash):
./install-cli.php
or in the setup directory:
php setup-cli.php --setup-cmd-database sub_command=create_tables domain=default
That error is repeatable from a vanilla installation using docker with a header.inc configured to use the docker name, an .env file with db_host & EGW_DB_HOST defined and the same defined in docker-compose.yml. Instances, mounts, and volumes have been wiped and recreated multiple times.
Not sure where the issue resides.
Help?