【问题标题】:Maxmind geoipupdate mmdb.gz is not a valid gzip fileMaxmind geoipupdate mmdb.gz 不是有效的 gzip 文件
【发布时间】:2017-02-01 08:06:07
【问题描述】:

我正在尝试使用 geoipupdater 更新我的 GeoIP 数据库。

使用以下 ProductIds

ProductIds GeoIP2-City GeoIP2-Connection-Type GeoIP2-Country GeoIP2-ISP

Geoipupdate 版本 2.3.1 已安装

geoipupdate -V
geoipupdate 2.3.1

当我运行 geoipupdate 时,CityCountry 数据库正在更新/下载。但是对于ISPConnection-Type 更新,我从更新程序中得到了以下输出。

url: https://updates.maxmind.com/app/update_secure?db_md5=00000000000000000000000000000000&challenge_md5=0926a7ab0bf38eafe43622a25fd6e7e2&user_id=*****&edition_id=GeoIP2-Connection-Type
/usr/share/GeoIP/GeoIP2-Connection-Type.mmdb.gz is not a valid gzip file

url: https://updates.maxmind.com/app/update_secure?db_md5=00000000000000000000000000000000&challenge_md5=0926a7ab0bf38eafe43622a25fd6e7e2&user_id=*****&edition_id=GeoIP2-ISP
/usr/share/GeoIP/GeoIP2-ISP.mmdb.gz is not a valid gzip file

为什么下载的.gz 文件无效?

提前致谢!

【问题讨论】:

  • 我建议您联系 support@maxmind.com

标签: geoip maxmind


【解决方案1】:

我遇到了同样的错误,但原因是订阅过期。

/my_path/data/GeoIP2-City.mmdb.gz is not a valid gzip file

我建议你调用geoipupdate生成的URL来查看“真正的错误”。

curl -i "https://updates.maxmind.com/app/update_secure?db_md5=00000000000000000000000000000000&challenge_md5=f2d60fa3afdaa26b18dd94457a999999&user_id=******&edition_id=GeoIP2-City"

HTTP/1.1 200 OK
Date: Tue, 21 Feb 2017 08:38:13 GMT
Content-Length: 59
Content-Type: text/plain; charset=utf-8

Invalid product ID or subscription expired for GeoIP2-City

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-01-13
    • 2023-04-07
    • 1970-01-01
    • 1970-01-01
    • 2010-09-21
    • 1970-01-01
    • 2014-03-02
    • 1970-01-01
    相关资源
    最近更新 更多