Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geoip:update decompress download file incorrectly #189

Open
TFnight opened this issue Sep 17, 2020 · 1 comment
Open

geoip:update decompress download file incorrectly #189

TFnight opened this issue Sep 17, 2020 · 1 comment

Comments

@TFnight
Copy link

TFnight commented Sep 17, 2020

Hello sir,

Sorry for my poor English.

I met an error geoip.ERROR: MaxMind\Db\Reader\InvalidDatabaseException: The MaxMind DB file's search tree is corrupt after I run php artisan geoip:update.

Setting in config/geoip:
'update_url' => sprintf('https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=%s&suffix=tar.gz', env('MAXMIND_LICENSE_KEY')),

geoip:update will start downloading a file with .tar.gz extension from update url and then use gzopen to extract file.

I think the extracting method caused The MaxMind DB file's search tree is corrupt because I test other updating solution like the article.

Finally, it works!

Could you please help verify this problem?

@Tchekda
Copy link

Tchekda commented Oct 18, 2020

Same problem here !
https://github.com/cydrobolt/polr is impacted by this bug !

Temp solution :

wget "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=LICENCE_KEY&suffix=tar.gz" -O GeoLite2-City.tar.gz
tar -xvf GeoLite2-City.tar.gz
cp GeoLite2-City_*/GeoLite2-City.mmdb storage/app/geoip.mmdb

Hope will get fixed soon ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants