9seconds / topographer

Self-hosted lenient geoip service
MIT License
28 stars 4 forks source link

can not open zip archive, not a valid zip file.. #8

Closed pepya2 closed 3 years ago

pepya2 commented 5 years ago

Was this expected.. or is normal..

time="2019-01-16T10:09:32Z" level=warning msg="Cannot update provider" attempt=0 error="Cannot open zip archive: zip: not a valid zip file" provider=ip2location
time="2019-01-16T10:09:32Z" level=warning msg="Cannot update provider" attempt=0 error="Cannot get download URL: Cannot extract download URL" provider=dbip
time="2019-01-16T10:10:32Z" level=warning msg="Cannot update provider" attempt=1 error="Cannot open zip archive: zip: not a valid zip file" provider=ip2location
time="2019-01-16T10:10:32Z" level=warning msg="Cannot update provider" attempt=1 error="Cannot get download URL: Cannot extract download URL" provider=dbip
time="2019-01-16T10:12:25Z" level=warning msg="Provider is not available for resolving." provider=ip2location
time="2019-01-16T10:12:25Z" level=warning msg="Provider is not available for resolving." provider=dbip
time="2019-01-16T10:12:25Z" level=warning msg="Provider is not available for resolving." provider=ip2location
time="2019-01-16T10:12:25Z" level=warning msg="Provider is not available for resolving." provider=dbip
time="2019-01-16T10:12:26Z" level=warning msg="Provider is not available for resolving." provider=ip2location
time="2019-01-16T10:12:26Z" level=warning msg="Provider is not available for resolving." provider=dbip
time="2019-01-16T10:12:26Z" level=warning msg="Provider is not available for resolving." provider=dbip
time="2019-01-16T10:12:26Z" level=warning msg="Provider is not available for resolving." provider=ip2location
time="2019-01-16T10:12:32Z" level=warning msg="Cannot update provider" attempt=2 error="Cannot open zip archive: zip: not a valid zip file" provider=ip2location
time="2019-01-16T10:12:32Z" level=warning msg="Cannot update provider" attempt=2 error="Cannot get download URL: Cannot extract download URL" provider=dbip

Thank you.

pepya2 commented 5 years ago

i don't know, hopefully links from this site may help.. https://geoip.site/download/

nesc58 commented 5 years ago

DBIP is working with country and city database on my machine.

INFO[0000] Update provider.                              attempt=0 provider=dbip
DEBU[0000] Access URL.                                   url="https://download.db-ip.com/free/dbip-city-lite-2019-01.csv.gz"
DEBU[0000] Got response.                                 body_size=40763390 code=200 url="https://download.db-ip.com/free/dbip-city-lite-2019-01.csv.gz"
DEBU[0010] Finish downloading.                           url="https://download.db-ip.com/free/dbip-city-lite-2019-01.csv.gz"
INFO[0010] Update database.                              current_checksum=5ff20d5f1ec6a338b98b8f49fcc47392acdca615 new_checksum=a1e9495280de552b75ae32b983c77802431d7ea3 path="\tmp\dbip"
INFO[0010] Reopening database                            attempt=0 provider=dbip
<tons of debug messages>

I cannot test IP2Location, because I do not have a valid token.

pepya2 commented 5 years ago

removed container and started again.. for dbip i am still getting time="2019-01-16T11:06:27Z" level=warning msg="Cannot update provider" attempt=0 error="Cannot get download URL: Cannot extract download URL" provider=dbip i don't know.. i am running this on private server.. not local machine.. Thanks for this anyway..

nesc58 commented 5 years ago

The docker image is 9 months old. Maybe this issue is already fixed but not pushed to dockerhub @9seconds can you build a new docker image?