ipfs / ipfs/kubo

unexpected EOF in .tar.gz file from get command

Open
#1,791 8 comments 0 reactions 0 assignees View on GitHub
need/community-input
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

I just tried to get a large file from ipfs using the get command using both the archive and compress options:

``` bash
$ ipfs get --archive --compress QmTKZgRNwDNZwHtJSjCp6r5FYefzpULfy37JvMt9DwvXse
Saving archive to QmTKZgRNwDNZwHtJSjCp6r5FYefzpULfy37JvMt9DwvXse.tar.gz
43.04 MB 3s
```

However when I try to unarchive it I get the following error:

``` bash
$ tar -xzvf QmTKZgRNwDNZwHtJSjCp6r5FYefzpULfy37JvMt9DwvXse.tar.gz
QmTKZgRNwDNZwHtJSjCp6r5FYefzpULfy37JvMt9DwvXse
QmTKZgRNwDNZwHtJSjCp6r5FYefzpULfy37JvMt9DwvXse/poster.jpg
QmTKZgRNwDNZwHtJSjCp6r5FYefzpULfy37JvMt9DwvXse/video.mp4
QmTKZgRNwDNZwHtJSjCp6r5FYefzpULfy37JvMt9DwvXse/video.webm

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
```

Also when trying to use python's tarfile capabilities I also get errors that look like: `IOError: CRC check failed 0x3b94367b != 0x1a9b23adL`, if that is any help.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.