Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Invalid MMDB Error on Production Database #133

Open
teratipallysaitej opened this issue Mar 5, 2024 · 4 comments
Open

Issues with Invalid MMDB Error on Production Database #133

teratipallysaitej opened this issue Mar 5, 2024 · 4 comments

Comments

@teratipallysaitej
Copy link

I'm currently encountering an issue with the MaxMind DB reader. When I use it with a test MMDB, everything works as expected. However, when I switch to a production MMDB during runtime, I'm faced with an "invalid MMDB" error. Here's what I've already tried to troubleshoot the problem:

Updated the maxminddb Reader Library: Ensured I'm using the latest version of the reader library.
Checked File Paths: Double-checked the file paths to ensure the production MMDB is correctly located and accessible.

Despite these checks, the issue persists. I'm looking for any insights or suggestions on what might be going wrong. Could there be compatibility issues with the production MMDB version, or am I missing something in my environment setup? Any advice or similar experiences shared would be greatly appreciated.

@oschwald
Copy link
Owner

oschwald commented Mar 5, 2024

It sounds like your MMDB is corrupt. What is the source of this file?

@teratipallysaitej
Copy link
Author

we are pulling from official maxminddb of download.maxminddb.com and providing the licensekey

@oschwald
Copy link
Owner

oschwald commented Mar 5, 2024

The official MaxMind databases are verified using this reader. It seems unlikely that it would not be able to read them. It sounds like your database was corrupted at some point or is otherwise invalid (e.g., maybe the file needs to be decompressed?). I would compare the sha256 against the ones MaxMind published.

@teratipallysaitej
Copy link
Author

i will compare the sha256 then, thanks for the information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants