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

Attempt to decompress latest Maxmind GeoLite archive causes the error #279

Open
gugu opened this issue May 14, 2023 · 1 comment
Open

Attempt to decompress latest Maxmind GeoLite archive causes the error #279

gugu opened this issue May 14, 2023 · 1 comment

Comments

@gugu
Copy link

gugu commented May 14, 2023

The error is:

node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: unexpected end of file
    at Zlib.zlibOnError [as onerror] (node:zlib:189:17) {
  errno: -5,
  code: 'Z_BUF_ERROR'
}

standand zip tool handles this correctly:

kostenko@Ubuntu-2204-jammy-amd64-base ~/tmp> zip -T g.zip
test of g.zip OK

and

kostenko@Ubuntu-2204-jammy-amd64-base ~/tmp> unzip g.zip
Archive:  g.zip
replace GeoLite2-City-CSV_20230512/GeoLite2-City-Locations-de.csv? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
  inflating: GeoLite2-City-CSV_20230512/GeoLite2-City-Locations-de.csv
  inflating: GeoLite2-City-CSV_20230512/LICENSE.txt
  inflating: GeoLite2-City-CSV_20230512/GeoLite2-City-Locations-en.csv
  inflating: GeoLite2-City-CSV_20230512/GeoLite2-City-Locations-pt-BR.csv
  inflating: GeoLite2-City-CSV_20230512/GeoLite2-City-Locations-zh-CN.csv
  inflating: GeoLite2-City-CSV_20230512/GeoLite2-City-Blocks-IPv6.csv
  inflating: GeoLite2-City-CSV_20230512/COPYRIGHT.txt
  inflating: GeoLite2-City-CSV_20230512/GeoLite2-City-Locations-es.csv
  inflating: GeoLite2-City-CSV_20230512/GeoLite2-City-Locations-ru.csv
  inflating: GeoLite2-City-CSV_20230512/GeoLite2-City-Locations-ja.csv
  inflating: GeoLite2-City-CSV_20230512/GeoLite2-City-Locations-fr.csv
  inflating: GeoLite2-City-CSV_20230512/GeoLite2-City-Blocks-IPv4.csv

I can send this file (50Mb) somewhere for investigation

@ZJONSSON
Copy link
Owner

ZJONSSON commented Jun 8, 2024

You can send me the zip file via email (ziggy.jonsson.nyc@gmail)
Also would be helpful to see the source code on how you are extracting, i.e. are you using the open methods or piping the entire zip file?

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