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

GeoLite2-ASN Geolocation not working #16162

Closed
jurvi opened this issue Jun 30, 2020 · 3 comments · Fixed by #16163
Closed

GeoLite2-ASN Geolocation not working #16162

jurvi opened this issue Jun 30, 2020 · 3 comments · Fixed by #16163
Assignees

Comments

@jurvi
Copy link

jurvi commented Jun 30, 2020

I have downloaded GeoLite2-ASN.mmdb from MaxMind site, and put it in the /var/www/html/misc as instructed. For some reason though, Mamoto does not seem recognize it. DBIP / GeoIP 2 (Php) just keeps saying "Not installed".

If I change the filename to GeoIP2-City.mmdb, Mamoto tries to load up the file with warnings, and DBIP / GeoIP 2 (Php) says "Broken", as more or less expected, so the folder seems to be correct and file permissions fine, just for some reason Mamoto seems to ignore the file when it's named GeoLite2-ASN.mmdb, even though according to documentation it should work.

@sgiehl
Copy link
Member

sgiehl commented Jun 30, 2020

Hi @jurvi. Thanks for creating this issue. It currently seems to be necessary to provide a location database file to be able to use the location provider. That actually shouldn't be the case. I'll have a quick look if it's easy to fix.

@sgiehl sgiehl self-assigned this Jun 30, 2020
@sgiehl
Copy link
Member

sgiehl commented Jun 30, 2020

@jurvi I've provided a possible fix here: #16163
If you want you can try to apply the changes manually.

@sgiehl sgiehl linked a pull request Jun 30, 2020 that will close this issue
@jurvi
Copy link
Author

jurvi commented Jun 30, 2020

Yes, it works great with the manually applied fix! Thanks, amazing job. :)

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

Successfully merging a pull request may close this issue.

2 participants