MaxMindDB GeoLite2-City.mmdb Not Found Error in Logs

AI-generated summary

A user, emonunix, reports a MaxMindDB error in their Discourse logs, indicating the GeoLite2-City.mmdb file is missing. Arkshine clarifies that the free GeoLite2 database is available and provides a guide, while Jagster notes that proper formatting in app.yml is crucial. emonunix confirms the free database can be used and later reports resolving the issue after setting up a MaxMind account and correctly configuring the database, thanking both contributors for their help 1, 2, 3, 4.

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

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)

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!

Have you set up Maxmind with a license key? Configure MAXMIND for reverse IP lookups

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

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! :blush:

Yes, you still can get the GeoLite2 free database. The guide is correct. :+1:

Hi @Arkshine and @Jagster,

Thank you so much for your guidance and suggestions in fixing the MaxMind error issue! :folded_hands: 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! :tada:

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