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 database will never be updated #14705

Closed
michel-kraemer opened this issue Jul 28, 2019 · 2 comments
Closed

GeoLite2 database will never be updated #14705

michel-kraemer opened this issue Jul 28, 2019 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@michel-kraemer
Copy link

AFAIK, the URL to the GeoLice2-City database is:
https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz

If I enter this in my settings and then run php /var/www/matomo/console scheduled-tasks:run --force, I get the following error:

GeoLite databases have been discontinued. Skipping download of https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz. Consider switching to GeoIP 2.

I think the problem is in this file:
https://github.com/matomo-org/matomo/blob/master/plugins/UserCountry/GeoIPAutoUpdater.php#L144-L147

The code only checks for GeoLite but not GeoLite2. As a consequence, the database will never be updated.

Is my observation correct or do I miss something?

@sgiehl
Copy link
Member

sgiehl commented Jul 28, 2019

It seems you configured the GeoIP2 database for GeoIP (Legacy), which can't work. You may need to enable the geoip2 plugin if it is not already active. You should then be able to configure GeoIp2 instead of GeoIp (Legacy).
If GeoIp2 plugin is not installed/available you may need to update Matomo first...

@sgiehl sgiehl closed this as completed Jul 28, 2019
@sgiehl sgiehl added the answered For when a question was asked and we referred to forum or answered it. label Jul 28, 2019
@michel-kraemer
Copy link
Author

Ah! I didn't know the plugin was inactive. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants