mautic / docker-mautic

Docker Image for Mautic
https://www.mautic.org
382 stars 281 forks source link

Mautic Error finding Mariadb socket #295

Open Ahson-Shaikh opened 2 months ago

Ahson-Shaikh commented 2 months ago

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:

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!

dixpix commented 2 months ago

Hi, your mauticweb 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

mautibot commented 1 month ago

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

Ahson-Shaikh commented 1 month ago

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

Bamstian commented 2 weeks ago

Hi, your mauticweb 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?