Missing enviromental variables in run time
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?
Same problem :(
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.
Yes. Same problem using the version 5.2.4-fpm!
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
oops
Hello @gabrielrufino @grinono ?
Could you please validate that my suggested changes worked? Thanks!
Hello @gabrielrufino @grinono ?
Could you please validate that my suggested changes worked? Thanks!
Yes! Now it's works. Thanks!
Perfect!
I'll keep this issue open to do a quick merge until the end of the week.
Thanks everyone!
Hello,
I've opened PR #354 to clarify this confusion in our documentation