maxmind / geoipupdate-legacy

GeoIP update client code
GNU General Public License v2.0
258 stars 63 forks source link

Update fails with GeoLite2 Databases: Error - 21 #32

Closed elvispt closed 9 years ago

elvispt commented 9 years ago

Hi.

geoipupdate returns the following when attempting to update the dbs:

MD5 Digest of installed database is ea848ced394c49b704d56b8fe2ace9a3
Updating /usr/share/GeoIP/GeoLite2-City.mmdb
Received Error -21 (Sanity check database_info string failed) when attempting to update GeoIP Database
MD5 Digest of installed database is 5dbabefea1a4789adae4d94e0d9e0835
Updating /usr/share/GeoIP/GeoLite2-Country.mmdb
Received Error -21 (Sanity check database_info string failed) when attempting to update GeoIP Database
MD5 Digest of installed database is ae64717432abaae5545b915c262725f6
/usr/share/GeoIP/GeoLiteCountry.dat is up to date, no updates required
GeoIP Database up to date
MD5 Digest of installed database is 84bc1d643ffbb413df03a12a8e5cd321
/usr/share/GeoIP/GeoLiteASNum.dat is up to date, no updates required
GeoIP Database up to date
MD5 Digest of installed database is 546ed4fbcc42326f02f96fda8be1d8e8
/usr/share/GeoIP/GeoLiteCity.dat is up to date, no updates required
GeoIP Database up to date

Here is my /etc/GeoIP.conf file:

# The following UserId and LicenseKey are required placeholders:
UserId 999999
LicenseKey 000000000000

# Include one or more of the following ProductIds:
# * GeoLite2-City - GeoLite 2 City
# * GeoLite2-Country - GeoLite2 Country
# * 506 - GeoLite Legacy Country
# * 517 - GeoLite Legacy ASN
# * 533 - GeoLite Legacy City
ProductIds GeoLite2-City GeoLite2-Country 506 517 533
oschwald commented 9 years ago

What version of geoipupdate are you using? That error message looks like it is from the 1.x version, which does not support GeoIP2/GeoLite2. 2.x versions will tell you their version number using the -V flag.

elvispt commented 9 years ago

My bad. Looks like I have the wrong version.

I was under the impression it was more recent.

Thanks.