MaxMind pulling Geolite2 gets 401 Unauthorized

3.5k Views Asked by At

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?

2

There are 2 best solutions below

3
On BEST ANSWER

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.

0
On

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.