我尝试使用geoipupdater更新我的GeoIP数据库。
使用以下ProductIds
ProductIds GeoIP2-City GeoIP2-Connection-Type GeoIP2-Country GeoIP2-ISP
已安装Geoipupdate版本2.3.1
geoipupdate -V
geoipupdate 2.3.1
当我运行geoipupdate时,City
和Country
数据库正在更新/下载。但是对于ISP
和Connection-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
文件无效?
提前感谢!
答案 0 :(得分:0)
我收到了同样的错误,但原因是订阅已过期。
/my_path/data/GeoIP2-City.mmdb.gz is not a valid gzip file
我建议你调用geoipupdate
生成的网址来查看“真正的错误”。
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