maxmind / geoipupdate

GeoIP update client code
Apache License 2.0
716 stars 143 forks source link

CSV-files can not be updated using geoipupdate #80

Closed kludikovsky closed 4 years ago

kludikovsky commented 4 years ago

It is not possible to use geoipupdate.exe for updating the CSV-files.

When entering the ID's for CSV-files in the config-file the execution of geoipupdate finishes with an error:

error retrieving updates: error retrieving filename: unexpected HTTP status code: 404 Not Found: Database edition not found

Below the execution of geoipupdate for the databases

PS D:\Eigene Dateien\_Downloads\Internet\Analyse\GeoIP\geoipupdate> .\geoipupdate.exe -v -f .\GeoIP.conf
Using config file .\GeoIP.conf
Using database directory ..\DATADIR
Performing get filename request to https://updates.maxmind.com/app/update_getfilename?product_id=GeoLite2-ASN-CSV
error retrieving updates: error retrieving filename: unexpected HTTP status code: 404 Not Found: Database edition not found
PS D:\Eigene Dateien\_Downloads\Internet\Analyse\GeoIP\geoipupdate>

using this GeoIP.conf file

# GeoIP.conf file for `geoipupdate` program, for versions >= 3.1.1.
# Used to update GeoIP databases from https://www.maxmind.com.
# For more information about this config file, visit the docs at
# https://dev.maxmind.com/geoip/geoipupdate/.

# `AccountID` is from your MaxMind account.
AccountID myPersonalID

# `LicenseKey` is from your MaxMind account
LicenseKey myLicenceKey

# `EditionIDs` is from your MaxMind account.
#EditionIDs GeoLite2-ASN GeoLite2-City GeoLite2-Country
EditionIDs GeoLite2-ASN-CSV GeoLite2-City-CSV GeoLite2-Country-CSV
# EditionIDs GeoLite2-ASN-CSV GeoLite2-City-CSV GeoLite2-Country-CSV

# Database Directory
DatabaseDirectory ..\DATADIR

# Preserver modification times of files
PreserveFileTimes 1

Then the same for the CSV-files

PS D:\Eigene Dateien\_Downloads\Internet\Analyse\GeoIP\geoipupdate> .\geoipupdate.exe -v -f .\GeoIP.conf
Using config file .\GeoIP.conf
Using database directory ..\DATADIR
Performing get filename request to https://updates.maxmind.com/app/update_getfilename?product_id=GeoLite2-ASN
Acquired lock file lock (..\DATADIR\.geoipupdate.lock)
Calculated MD5 sum for ..\DATADIR\GeoLite2-ASN.mmdb: 8b19690ec6c8091c9f7ae0bc3b739aa1
Performing update request to https://updates.maxmind.com/geoip/databases/GeoLite2-ASN/update?db_md5=8b19690ec6c8091c9f7ae0bc3b739aa1
No new updates available for GeoLite2-ASN
Performing get filename request to https://updates.maxmind.com/app/update_getfilename?product_id=GeoLite2-City
Acquired lock file lock (..\DATADIR\.geoipupdate.lock)
Calculated MD5 sum for ..\DATADIR\GeoLite2-City.mmdb: b8065014eaa7cc763da5cbf5c66a276b
Performing update request to https://updates.maxmind.com/geoip/databases/GeoLite2-City/update?db_md5=b8065014eaa7cc763da5cbf5c66a276b
No new updates available for GeoLite2-City
Performing get filename request to https://updates.maxmind.com/app/update_getfilename?product_id=GeoLite2-Country
Acquired lock file lock (..\DATADIR\.geoipupdate.lock)
Calculated MD5 sum for ..\DATADIR\GeoLite2-Country.mmdb: 99a0e26a26a11f29c90111702964f04f
Performing update request to https://updates.maxmind.com/geoip/databases/GeoLite2-Country/update?db_md5=99a0e26a26a11f29c90111702964f04f
No new updates available for GeoLite2-Country
PS D:\Eigene Dateien\_Downloads\Internet\Analyse\GeoIP\geoipupdate>

with this GeoIP.conf file

# GeoIP.conf file for `geoipupdate` program, for versions >= 3.1.1.
# Used to update GeoIP databases from https://www.maxmind.com.
# For more information about this config file, visit the docs at
# https://dev.maxmind.com/geoip/geoipupdate/.

# `AccountID` is from your MaxMind account.
AccountID myPersonalID

# `LicenseKey` is from your MaxMind account
LicenseKey myLicenceKey

# `EditionIDs` is from your MaxMind account.
EditionIDs GeoLite2-ASN GeoLite2-City GeoLite2-Country
#EditionIDs GeoLite2-ASN-CSV GeoLite2-City-CSV GeoLite2-Country-CSV
# EditionIDs GeoLite2-ASN-CSV GeoLite2-City-CSV GeoLite2-Country-CSV

# Database Directory
DatabaseDirectory ..\DATADIR

# Preserver modification times of files
PreserveFileTimes 1

NOTE: It's ok that there is no retrieval of data as I have executed the procedure during testing already several times!

nchelluri commented 4 years ago

Hi, please see https://github.com/maxmind/geoipupdate/issues/65#issuecomment-570579347 - per

https://github.com/maxmind/geoipupdate/blob/master/README.md#L6 -

CSV databases are not supported.