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?

I’m having this exact issue when upgrading my Docker compose installation from V4 to V5. What did you do to resolve it? Thanks.

This solved my issue: Mautic Error finding Mariadb socket · Issue #295 · mautic/docker-mautic · GitHub

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.