maxmind / geoipupdate-legacy

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

Question About .dat File #92

Closed fxfitz closed 6 years ago

fxfitz commented 6 years ago

Just a quick question about the .dat files that the updater downloaded...

Output:

MD5 Digest of installed database is 1e43a1a5c531cc8e11fb4f83a1c0ec7a
/usr/share/GeoIP/GeoLiteCountry.dat is up to date, no updates required
GeoIP Database up to date
MD5 Digest of installed database is 0637ec47d9b4d8107d32e94c35f7f311
/usr/share/GeoIP/GeoLiteCity.dat is up to date, no updates required
GeoIP Database up to date

The .dat file that was downloaded/updated... is that the same format as the "mmdb" file?

oschwald commented 6 years ago

No, the dat format is the legacy database format.

fxfitz commented 6 years ago

@oschwald Ah, ok. So does the geoipupdate utility fetch the mmdb format at all?

oschwald commented 6 years ago

Yes, it does. What edition IDs are specified in your GeoIP.conf file?

fxfitz commented 6 years ago

ProductIds GeoIP2-Country

oschwald commented 6 years ago

Based on the output above, it sounds like another GeoIP.conf file is being used. I'd suggest going to our website and starting a live chat. They should be able to help you figure out what is going on.

fxfitz commented 6 years ago

Hah! Yup! That was totally it.

Thanks for answering that question! I'm looking into why this is failing now, but I'll probably just ping support about it tomorrow.

$ sudo geoipupdate
/usr/share/GeoIP/GeoIP2-Country.mmdb can't be opened, proceeding to download database
Updating /usr/share/GeoIP/GeoIP2-Country.mmdb
Received Error -21 (Sanity check database_info string failed) when attempting to update GeoIP Database
oschwald commented 6 years ago

That error is from a 1.x version of geoipupdate, which doesn't support GeoIP2 databases. You will need to upgrade to a 2.x version.

fxfitz commented 6 years ago

Perfect! Thanks for the info!

On Mon, Jan 29, 2018 at 4:49 PM Gregory Oschwald notifications@github.com wrote:

That error is from a 1.x version of geoipupdate, which doesn't support GeoIP2 databases. You will need to upgrade to a 2.x version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/maxmind/geoipupdate/issues/92#issuecomment-361414175, or mute the thread https://github.com/notifications/unsubscribe-auth/AGD7co-1O-SNJqjqiFa4tXwr48IGhHwoks5tPkr1gaJpZM4RxVAc .