# Missing enviromental variables in run time

**URL:** <https://forum.mautic.org/t/missing-enviromental-variables-in-run-time/33004>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [August 4, 2024, 7:55am UTC](https://forum.mautic.org/t/missing-enviromental-variables-in-run-time/33004 "2024-08-04T07:55:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grinono](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@grinono](https://forum.mautic.org/u/grinono)\
**Post date:** [August 4, 2024, 7:55am UTC](https://forum.mautic.org/t/missing-enviromental-variables-in-run-time/33004/1 "2024-08-04T07:55:54Z")

</div>

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 \>

```auto
�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?

---

<div class="post-metadata">

**Author:** ![towytowy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/towytowy/32/12783_2.png) [@towytowy](https://forum.mautic.org/u/towytowy)\
**Post date:** [October 6, 2024, 5:40pm UTC](https://forum.mautic.org/t/missing-enviromental-variables-in-run-time/33004/2 "2024-10-06T17:40:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![towytowy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/towytowy/32/12783_2.png) [@towytowy](https://forum.mautic.org/u/towytowy)\
**Post date:** [October 6, 2024, 6:19pm UTC](https://forum.mautic.org/t/missing-enviromental-variables-in-run-time/33004/3 "2024-10-06T18:19:40Z")

</div>

This solved my issue: [Mautic Error finding Mariadb socket · Issue #295 · mautic/docker-mautic · GitHub](https://github.com/mautic/docker-mautic/issues/295)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [October 8, 2024, 6:20am UTC](https://forum.mautic.org/t/missing-enviromental-variables-in-run-time/33004/4 "2024-10-08T06:20:00Z")

</div>

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