# Rebuild is failing with a wrong MaxMindDB API key

**URL:** https://meta.discourse.org/t/rebuild-is-failing-with-a-wrong-maxminddb-api-key/258434
**Category:** Bug
**Tags:** maxmind
**Created:** [March 16, 2023, 10:54pm UTC](https://meta.discourse.org/t/rebuild-is-failing-with-a-wrong-maxminddb-api-key/258434 "2023-03-16T22:54:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 16, 2023, 10:54pm UTC](https://meta.discourse.org/t/rebuild-is-failing-with-a-wrong-maxminddb-api-key/258434/1 "2023-03-16T22:54:09Z")

</div>

We have a regression, probably cause by Ruby 3.2, where people who added a wrong MaxMindDB API key have failures on the rebuild.

> [@Discourse down after failed web update, rebuild & doctor not helping](https://meta.discourse.org/t/discourse-down-after-failed-web-update-rebuild-doctor-not-helping/258407):
>
> I ran a web update today of Discourse + all plugins, and midway in the update there was a message that the update failed. The forum also went down with a message saying something like “the software powering this forum” is having an issue. I tried git pull and rebuild, but it failed with the following message and left the forum completely offline: Done 'chunk.178.0c434e9ed79f6e7671b2-ef171b1612b472ed8d08fd8dc9f8a4e4b100b9e910c9285348e11a55846a9823.js' : 0.01 secs Done 'Done compressing all JS …

> [@Update from 3.0.0.beta16 to 3.1.0.beta2](https://meta.discourse.org/t/update-from-3-0-0-beta16-to-3-1-0-beta2/257663/14):
>
> Delete or comment out the line with DISCOURSE\_MAXMIND\_LICENSE\_KEY and rebuild.

> [@My Discourse is Down. Certificate Issue?](https://meta.discourse.org/t/my-discourse-is-down-certificate-issue/228347/27):
>
> Just to close this off, a little assist by PM revealed it was a maxmind issue and commenting that out allowed the bootstrap to complete successfully. +1

The variable name here is occluded or a typo

> <https://github.com/discourse/discourse/blob/main/lib/tasks/assets.rake#L288>

---

<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: [March 20, 2023, 5:30am UTC](https://meta.discourse.org/t/rebuild-is-failing-with-a-wrong-maxminddb-api-key/258434/3 "2023-03-20T05:30:26Z")

</div>

Let’s try this:

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

---

<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: [March 21, 2023, 9:45pm UTC](https://meta.discourse.org/t/rebuild-is-failing-with-a-wrong-maxminddb-api-key/258434/4 "2023-03-21T21:45:30Z")

</div>


