# Rebuild failing due to MaxMind DB

**URL:** <https://meta.discourse.org/t/rebuild-failing-due-to-maxmind-db/119942>\
**Category:** Bug\
**Tags:** maxmind\
**Created:** [10 juni 2019 om 17:56 UTC](https://meta.discourse.org/t/rebuild-failing-due-to-maxmind-db/119942 "2019-06-10T17:56:02Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [11 juni 2019 om 06:31 UTC](https://meta.discourse.org/t/rebuild-failing-due-to-maxmind-db/119942/7 "2019-06-11T06:31:13Z")

</div>

You can already do this today:

> <https://github.com/discourse/discourse/blob/7b17eb06da6f83350f6ed8e6c523e77022cdc970/config/discourse_defaults.conf#L237-L237>

Set `DISCOURSE_REFRESH_MAXMIND_DB_DURING_PRECOMPILE_DAYS` to taste.

Set to 0 for… just don’t do anything during precompile, rely on base image for maxmind db.

Set to 100 for… I don’t care this can be pretty old, but not SUPER old.

* * *

The open discussion here is:

1. Should we add an `I don't care if maxmind update fails during precompile` option?

2. Should we add a “scheduled job” that updates maxmind DB if it is N days old?

I am **against** 1, cause it leads to “inconsistent state post rebuild”. We are used to having a very consistent state after rebuilds and this adds a wild card.

I am not strongly against (2) but one issue here for our own hosting is that we could not even use (2) cause we would likely get us banned off maxmind.

So I am not sure what more to do here.

If self hosters were complaining a lot about “rebuilds” failing due to maxmind I would be open to changing the default for `DISCOURSE_REFRESH_MAXMIND_DB_DURING_PRECOMPILE_DAYS` to 0.

---

_[View the full topic](https://meta.discourse.org/t/rebuild-failing-due-to-maxmind-db/119942)._
