# MaxMindDB GeoLite2-City.mmdb Not Found Error in Logs

**URL:** https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685
**Category:** Support
**Created:** [March 18, 2025, 2:17am UTC](https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685 "2025-03-18T02:17:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![emonunix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emonunix/32/485652_2.png) [@emonunix](https://meta.discourse.org/u/emonunix)
#### Post date: [March 18, 2025, 2:17am UTC](https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685/1 "2025-03-18T02:17:11Z")

</div>

I’m encountering an issue in my Discourse instance where the following error appears in the logs:

```plaintext
MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-City.mmdb) could not be found: No such file or directory 2 rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-City.mmdb

```

![The image displays a line of code output with an error message indicating that a file named 'GeoLite2-City.mmdb' could not be found at the specified path in the '/var/www/discourse/vendor' directory. (Captioned by AI)](https://global.discourse-cdn.com/meta/optimized/4X/9/7/e/97ea89c2d8a2dbe9dbe94378f6ee88385a854083_2_690x22.png)

It seems like Discourse is unable to locate the GeoLite2-City database.

Has anyone else encountered this issue? What’s the best way to resolve it?  
Any guidance would be appreciated!

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 18, 2025, 2:27am UTC](https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685/3 "2025-03-18T02:27:01Z")

</div>

Have you set up Maxmind with a license key? [Configure MAXMIND for reverse IP lookups](https://meta.discourse.org/t/configure-maxmind-for-reverse-ip-lookups/173941)

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [March 18, 2025, 3:15am UTC](https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685/4 "2025-03-18T03:15:10Z")

</div>

And use two spaces before those lines in app.yml. Missing those doesn’t break YML, but makes exacly that.

---

<div class="post-metadata">

### Author: ![emonunix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emonunix/32/485652_2.png) [@emonunix](https://meta.discourse.org/u/emonunix)
#### Post date: [March 18, 2025, 6:55pm UTC](https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685/5 "2025-03-18T18:55:02Z")

</div>

Hi @Arkshine and @Jagster,

Thanks for your guidance so far!

I don’t currently have a MaxMind license key.  
Can you confirm whether MaxMind offers their license key for free, or is it a paid service?

Thanks again for your help! 😊

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 18, 2025, 7:27pm UTC](https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685/6 "2025-03-18T19:27:49Z")

</div>

Yes, you still can get the GeoLite2 free database. The guide is correct. 👍

---

<div class="post-metadata">

### Author: ![emonunix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emonunix/32/485652_2.png) [@emonunix](https://meta.discourse.org/u/emonunix)
#### Post date: [March 18, 2025, 9:59pm UTC](https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685/7 "2025-03-18T21:59:50Z")

</div>

Hi **@Arkshine** and **@Jagster** ,

Thank you so much for your guidance and suggestions in fixing the MaxMind error issue! 🙏 With your help, I successfully signed up for a MaxMind account, set up the GeoLite2 database for my forums, and resolved the issue. Everything is working perfectly now! 🎉

I really appreciate your time and expertise in helping me out. Thank you again! 😊

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 17, 2025, 10:00pm UTC](https://meta.discourse.org/t/maxminddb-geolite2-city-mmdb-not-found-error-in-logs/357685/8 "2025-04-17T22:00:24Z")

</div>

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