# 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:** 24

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [May 16, 2024, 12:41am UTC](https://meta.discourse.org/t/setting-discourse-maxmind-license-key-breaks-docker-image-container-build/277564/24 "2024-05-16T00:41:32Z")

</div>

> [@mentalstring](#):
>
> ```plaintext
> /var/www/discourse/lib/discourse_ip_info.rb:48:in `mmdb_download': undefined method `path' for nil:NilClass (NoMethodError)
> 
> filename = File.basename(gz_file.path)
> 
> ```

> [@mentalstring](#):
>
> but including the DISCOURSE\_MAXMIND\_ACCOUNT\_ID made no difference for me as the rebuild still doesn’t finish (with latest stable)

I can’t reproduce this now and I wonder if this is because MaxMind was down?

 ![Screenshot 2024-05-16 at 6.11.02 AM](https://global.discourse-cdn.com/meta/original/4X/4/5/6/4563a321ccadd5f2d95ce10ad9c783262cd05884.png)

We will need to add better safe guards for when MaxMind fails to download.

> [@jomaxro](#):
>
> Edit: It appears that while the _rebuild_ was successful, MaxMind is not functional.

This has been fixed in

[https://github.com/discourse/discourse/pull/27043](https://github.com/discourse/discourse/pull/27043)

---

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