whosonfirst / go-whosonfirst-dist

Go package for working with Who's On First distributions
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Decompression Error for most recent whosonfirst-data-latest.db.bz2 file #12

Closed stepps00 closed 5 years ago

stepps00 commented 5 years ago

Per @TariqAHassan:

Attempts to unpack the latest whosonfirst-data-latest.db.bz2 file fail.

On Ubuntu, this can be replicated by running:

wget https://dist.whosonfirst.org/sqlite/whosonfirst-data-latest.db.bz2 \
 && bzip2 -dk whosonfirst-data-latest.db.bz2

The full error is the following:

bzip2: Data integrity error when decompressing.
        Input file = /path/goes/here, output file = /path/goes/here

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

bzip2: Deleting output file /path/goes/here, if it exists.

See: https://github.com/whosonfirst-data/whosonfirst-data/issues/1604

TariqAHassan commented 5 years ago

@stepps00

The unzip operation now works against latest whosonfirst-data-latest.db.bz2 file.

stepps00 commented 5 years ago

Great, thanks for the note! I'll close this issue, but please let us know if you experience the issue again.