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

Missing enviromental variables in run time

Open grinono opened this issue 1 year ago • 1 comments

I'm having an environmental vars issue.

I run the docker image in kubernetes with the envs like MYSQL_HOST configured. when in running in shell > echo $MYSQL_HOST is returns the right value but the logs of the machine show >

mysqladmin: connect to server at '' failed 2024-08-01T13:38:09.542655996Z error: 'Can't connect to server on 'localhost' (111)' 2024-08-01T13:38:09.542661436Z Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists!

i assume '' means the env's like MYSQL_HOST are not picked up. How to resolve this?

grinono avatar Aug 01 '24 13:08 grinono

Same problem :(

gabrielrufino avatar Aug 02 '24 15:08 gabrielrufino

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

Yes. Same problem using the version 5.2.4-fpm!

gabrielrufino avatar Apr 15 '25 22:04 gabrielrufino

Salve @gabrielrufino ,

There's a README issue that we'll clarify on the next days.

For the actual Mautic container, the correct envs are:

  • MAUTIC_DB_HOST
  • MAUTIC_DB_PORT
  • MAUTIC_DB_DATABASE
  • MAUTIC_DB_USER
  • MAUTIC_DB_PASSWORD

Can you please verify that with these envs the container can start?

Cheers, Renato

cibero42 avatar Apr 17 '25 13:04 cibero42

oops

cibero42 avatar Apr 25 '25 08:04 cibero42

Hello @gabrielrufino @grinono ?

Could you please validate that my suggested changes worked? Thanks!

cibero42 avatar Apr 27 '25 15:04 cibero42

Hello @gabrielrufino @grinono ?

Could you please validate that my suggested changes worked? Thanks!

Yes! Now it's works. Thanks!

gabrielrufino avatar May 01 '25 11:05 gabrielrufino

Perfect!

I'll keep this issue open to do a quick merge until the end of the week.

Thanks everyone!

cibero42 avatar May 01 '25 13:05 cibero42

Hello,

I've opened PR #354 to clarify this confusion in our documentation

cibero42 avatar May 02 '25 09:05 cibero42