Support Questions
Find answers, ask questions, and share your expertise

Maxmind Geolite unknown host when trying to start metron enrichment

Highlighted

Maxmind Geolite unknown host when trying to start metron enrichment

New Contributor

All services work and are enabled except for the metron enrichment service which is trying to curl from geolite.maxmind in order to pull and build the databases. geolite.maxmind changed how to obtain these files and you must now create an account in order to create a key to put into the curl html in order to authenticate but nothing has been setup in the github project to fix this problem. Is there anyway someone could assist me in order to change the curl website information because it is trying to execute /usr/metron/0.7.2/bin/maxmind_enrichment_load.sh which is all variables and not sure where those are tied to. Any help would be much appreciated.

 

3 REPLIES 3
Highlighted

Re: Maxmind Geolite unknown host when trying to start metron enrichment

New Contributor


2020-04-20 23:29:21,637 - Execute['/usr/metron/0.7.2/bin/maxmind_enrichment_load.sh -g http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz -a http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz -r /apps/metron/geo/default/ -ra /apps/metron/asn/default/ -z node1:2181'] {'logoutput': True, 'tries': 1, 'user': 'metron'}
Retrieving GeoLite2 archive
Downloading http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz to /tmp/GeoLite2-City.tar.gz
Warning: Unable to copy remote GeoIP database to local file, attempt 0: java.net.UnknownHostException: geolite.maxmind.com
java.net.UnknownHostException: geolite.maxmind.com

 

Is the exact error that I am getting

Highlighted

Re: Maxmind Geolite unknown host when trying to start metron enrichment

New Contributor

I have also manually added the .tar.gz into the /tmp/ directory but just gives an error that is already there locally and cannot be deleted and tells me to delete it and retry.

Re: Maxmind Geolite unknown host when trying to start metron enrichment

Long story, but in short:

Maxmind Databases were removed from public license, so now you need an account and download them "for free".
I downloaded the latest with public license (links attached) and located them in the server were Metron is installed.

Then, change this values in metron config:

1. ASN Load Datafile URL: `file:///{maxmindDBs_location_path}/GeoLite2-ASN.tar.gz`
2. GEOIP Load Datafile URL: `file:///{maxmindDBs_location_path}/GeoLite2-City.tar.gz`

 

Lastest release with public license links can be found in this post:

https://forum.matomo.org/t/maxmind-is-changing-access-to-free-geolite2-databases/35439/2

Don't have an account?