Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MaxMind pulling Geolite2 gets 401 Unauthorized

Geolite2 access changed on 12/30.

Today I registered for a Maxmind account, registered a license key (both one that "Will this key be used for GeoIP Update?" and one that will not) .. and now each time I enter I get a 401:

smachine:~# wget "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&token=n3fU000000000000&suffix=zip"
--2020-01-13 00:37:23--  https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&token=n3fU000000000000&suffix=zip
Resolving download.maxmind.com (download.maxmind.com)... 104.16.37.47, 104.16.38.47, 2606:4700::6810:252f, ...
Connecting to download.maxmind.com (download.maxmind.com)|104.16.37.47|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized

Username/Password Authentication Failed.
smachine:~#

Any ideas what I'm doing wrong here?

like image 294
jg3 Avatar asked Mar 03 '23 22:03

jg3


2 Answers

Figured it out ... I failed to heed the instruction on https://dev.maxmind.com/geoip/geoipupdate/#Direct_Downloads where it said that you need to change token= to license_key= ... once I did that it worked as expected.

like image 194
jg3 Avatar answered May 06 '23 18:05

jg3


If you are using wget or curl from a shell script, please be sure to quote the URL.

By the way, if you're not root user, use sudo before the commands.

like image 33
Alberto Belon Avatar answered May 06 '23 18:05

Alberto Belon