Navigation Menu

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

Wrong GeoLiteCity DB URL #14330

Closed
xairoo opened this issue Apr 9, 2019 · 4 comments
Closed

Wrong GeoLiteCity DB URL #14330

xairoo opened this issue Apr 9, 2019 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@xairoo
Copy link

xairoo commented Apr 9, 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
Copy link
Member

Findus23 commented Apr 9, 2019

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:

const GEO_LITE_URL = 'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz';

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.

@Findus23 Findus23 closed this as completed Apr 9, 2019
@Findus23 Findus23 added the answered For when a question was asked and we referred to forum or answered it. label Apr 9, 2019
@fdellwing
Copy link
Contributor

@nerdoc
Copy link

nerdoc commented Nov 1, 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
Copy link
Member

tsteur commented Nov 1, 2019

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

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

5 participants