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

Update will throw an UnexpectedValueException #86

Open
arhonik opened this issue Apr 12, 2022 · 1 comment
Open

Update will throw an UnexpectedValueException #86

arhonik opened this issue Apr 12, 2022 · 1 comment
Labels

Comments

@arhonik
Copy link

arhonik commented Apr 12, 2022

3.4.47 Symfony version
Update will throw an UnexpectedValueException In MaxMindDownloader.php line 88:
Cannot decompress zip-based archives with whole-archive compression
Config:

gpslab_geoip:
    license: 'xxx'
    locales: [ 'en' ]
    default_database: 'city'
    databases:
        asn:
            edition: 'GeoLite2-ASN'
            url: 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&license_key=xxx&suffix=zip'
            path: '%kernel.project_dir%/var/GeoLite2-ASN.mmdb'
        city:
            edition: 'GeoLite2-City'
            url: 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&license_key=xxx&suffix=zip'
            path: '%kernel.project_dir%/var/GeoLite2-City.mmdb'
        country:
            edition: 'GeoLite2-Country'
            url: 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=xxx&suffix=zip'
            path: '%kernel.project_dir%/var/GeoLite2-Country.mmdb'

Command:
php bin/console geoip2:update asn -vvv

zlib:

ZLib Support => enabled
Stream Wrapper => compress.zlib://
Stream Filter => zlib.inflate, zlib.deflate
Compiled Version => 1.2.11
Linked Version => 1.2.11

Phar:

Phar: PHP Archive support => enabled
Phar API version => 1.1.1
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => disabled (install ext/bz2)
Native OpenSSL support => enabled
@peter-gribanov
Copy link
Member

Please try use suffix tar.gz

gpslab_geoip:
    databases:
        asn:
            edition: 'GeoLite2-ASN'
            url: 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-ASN-CSV&license_key=xxx&suffix=tar.gz'
            path: '%kernel.project_dir%/var/GeoLite2-ASN.mmdb'

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

No branches or pull requests

2 participants