docker-mautic icon indicating copy to clipboard operation
docker-mautic copied to clipboard

Mautic Error finding Mariadb socket

Open Ahson-Shaikh opened this issue 1 year ago • 2 comments

Hi, I have been trying to setup Mautic with docker-compose, and it is giving me this error and am unable to resolve that. Any help would be greatly appreciated.

`version: '3.7'

services: mautic_web: image: mautic/mautic:5.1-apache container_name: mautic_web ports: - "8080:80" environment: MYSQL_HOST: db MYSQL_PORT: 3306 MYSQL_DATABASE: mautic MYSQL_USER: mautic MYSQL_PASSWORD: mautic_password MYSQL_ROOT_PASSWORD: root_password volumes: - mautic-config:/var/www/html/config - mautic-media:/var/www/html/media - mautic-logs:/var/www/html/var/logs depends_on: - db

db: image: mysql:5.7 container_name: mautic_db environment: MYSQL_DATABASE: mautic MYSQL_USER: mautic MYSQL_PASSWORD: mautic_password MYSQL_ROOT_PASSWORD: root_password volumes: - mautic-db:/var/lib/mysql

volumes: mautic-config: mautic-media: mautic-logs: mautic-db: `

Error: 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!

Ahson-Shaikh avatar Sep 12 '24 00:09 Ahson-Shaikh

Hi, your mautic_web environment variables should be names with MAUTIC_ prefix, not MYSQL_: MAUTIC_DB_HOST: db MAUTIC_DB_PORT: 3306 MAUTIC_DB_DATABASE: mautic MAUTIC_DB_USER: mautic MAUTIC_DB_PASSWORD: mautic_password

dixpix avatar Sep 18 '24 13:09 dixpix

This issue has been mentioned on Mautic Forums. There might be relevant details there:

https://forum.mautic.org/t/missing-enviromental-variables-in-run-time/33004/3

mautibot avatar Oct 06 '24 18:10 mautibot

Hi Guys - Well, Easypanel resolved the issue for me. Just a one-click deploy.

Ahson-Shaikh avatar Oct 25 '24 08:10 Ahson-Shaikh

Hi, your mautic_web environment variables should be names with MAUTIC_ prefix, not MYSQL_: MAUTIC_DB_HOST: db MAUTIC_DB_PORT: 3306 MAUTIC_DB_DATABASE: mautic MAUTIC_DB_USER: mautic MAUTIC_DB_PASSWORD: mautic_password

So the examples in the examples folder are completely useless then? What a shame that nobody is fixing theese wrong Variables.

Also this forum here seems to not be maintained. Is Mautic discontinued or is there simly noone who is willing to fix the wrong Files here?

Bamstian avatar Nov 11 '24 13:11 Bamstian

Hey there! I'm helping the new maintainers of this repository. It was neglected for some time but that changes now! Could you please re-test if you are still getting this issue so we could focus our limited time on the issues that are still relevant? If there will be no response we'll close this issue in 1 week. It can always be re-opened later on.

IonutOjicaDE avatar Apr 15 '25 16:04 IonutOjicaDE

This issue relates to #290.

I'll be closing this one to avoid duplicates.

cibero42 avatar Apr 23 '25 16:04 cibero42