mautic / docker-mautic

Docker Image for Mautic
https://www.mautic.org
378 stars 278 forks source link

Docker Mautic 5.1-apache does not start #294

Open grinono opened 2 months ago

grinono commented 2 months ago

i configured Mautic docker to connect to a mysql database. When starting i see nothing else then

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.1.210. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.1.210. Set the 'ServerName' directive globally to suppress this message
[Fri Aug 30 19:42:04.532320 2024] [mpm_prefork:notice] [pid 13] AH00163: Apache/2.4.59 (Debian) PHP/8.1.29 configured -- resuming normal operations
[Fri Aug 30 19:42:04.532391 2024] [core:notice] [pid 13] AH00094: Command line: 'apache2 -D FOREGROUND'

Based on these logs i have no idea where to look to fix it. All seems ok. If i misconfigure db credentials, the logs do start to complain. Any suggestion on where to look to fix this?

Ahson-Shaikh commented 2 months ago

If you are using docker-compose, try passing this in a command directive "'apache2 -D FOREGROUND". Also please share the docker-compose if you have that. I have been trying to start Mautic, but I have got another error, and am unable to fix that.

mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists!

grinono commented 2 months ago

Running Mautic with apache2 -D FOREGROUND command gives me "the qualified domain name" notification. I think this can be ignored. Service does not start.

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.112.251. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.112.251. Set the 'ServerName' directive globally to suppress this message
[Thu Sep 12 07:01:13.220467 2024] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.59 (Debian) PHP/8.1.29 configured -- resuming normal operations
[Thu Sep 12 07:01:13.220551 2024] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

i run this in a kubernetes depleyment. not in docker compose. Should not matter i guess.

dixpix commented 1 month ago

Hi, Same issue ('Can't connect to server on 'localhost' (99)') resolved in my case by forcing mautic_web and db to work on the same network. But I'm using Coolify which takes care of all the Traefik configuration. So i take the network name created by traefik and put all services on it. Hope it helps.