@Xairoo opened this Issue on April 9th 2019

The URL for the GeoLiteCity DB is wrong.

Current version is located at plugins/UserCountry/LocationProvider/GeoIp.php:
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

But it should be:
https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz

The working link can be found on this site:
https://dev.maxmind.com/geoip/geoip2/geolite2/

Looks like MaxMind has changed the DB format or just the naming too.

@Findus23 commented on April 9th 2019 Member

Hi,

This code is only there for legacy reasons.
The new GeoIp2 plugin supports the new database type and uses the URL you are mentioning:

https://github.com/matomo-org/matomo/blob/ff1c579f1faa003e461db2534f2606bd4ac4ddaa/plugins/GeoIp2/LocationProvider/GeoIp2.php#L23

If you want to migrate to GeoIP2, make a backup and enable the GeoIp2 plugin which will do the database migration, that might take a while.

@fdellwing commented on April 10th 2019 Contributor
@nerdoc commented on November 1st 2019

@Findus23 - ok, but maybe you should remove the code from Matomo instructing users do download the old DB. even when you find the download link and copy the database (.mmdb format) into misc, Matomo won't recognize it. These instructions should be removed.

@tsteur commented on November 1st 2019 Member

@nerdoc make sure you're on the latest Matomo version and that you have enabled the GeoIP2 DB. Then the URL should be correct.

This Issue was closed on April 9th 2019
Powered by GitHub Issue Mirror