# Setting DISCOURSE\_MAXMIND\_LICENSE\_KEY breaks docker image/container build

**URL:** <https://meta.discourse.org/t/setting-discourse-maxmind-license-key-breaks-docker-image-container-build/277564>\
**Category:** Self-hosting\
**Tags:** maxmind\
**Created:** [September 2, 2023, 1:37pm UTC](https://meta.discourse.org/t/setting-discourse-maxmind-license-key-breaks-docker-image-container-build/277564 "2023-09-02T13:37:59Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![DaVania](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@DaVania](https://meta.discourse.org/u/DaVania)\
**Post date:** [September 9, 2023, 3:41pm UTC](https://meta.discourse.org/t/setting-discourse-maxmind-license-key-breaks-docker-image-container-build/277564/7 "2023-09-09T15:41:31Z")

</div>

Since I have been having the same problem and can confirm that when clearing out the license key, my rebuild problems magically goes away.

I have even over a couple of days, tried my best to dig into the problem.

I think I have it right, but I might aswell be wrong.

During build, it seems like the mmdb files are missing, perhaps due to them not being present in the base image, or more likely, that they are being deleted and/or not even downloaded prior to them being loaded, hence the build fails..

Come to think of it, mmdb\_download being called points to code trying to download the file.

I’ve successfully downloaded the files manually (from the within the docker container) with wget, so the license is working as expected.

---

_[View the full topic](https://meta.discourse.org/t/setting-discourse-maxmind-license-key-breaks-docker-image-container-build/277564)._
