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

zstd: podman save: error writing blob: archive/tar: write too long #24283

Closed
edsantiago opened this issue Oct 15, 2024 · 4 comments
Closed

zstd: podman save: error writing blob: archive/tar: write too long #24283

edsantiago opened this issue Oct 15, 2024 · 4 comments

Comments

@edsantiago
Copy link
Member

podman save barfs when dealing with an image that has been saved with zstd:chunked:

$ bin/podman pull quay.io/libpod/testimage:20241010
Trying to pull quay.io/libpod/testimage:20241010...
Getting image source signatures
Copying blob a3ed95caeb02 skipped: already exists  
Copying blob d005489f1e59 done  5.2MiB / 5.2MiB (skipped: 659.0b = 0.01%)
Copying config 263622a183 done   | 
Writing manifest to image destination
263622a183c94c2433a43be5464a954b9c4e5b0a77cb177f6fe60dacfff66f80

$ bin/podman save -o /tmp/foo.tar quay.io/libpod/testimage:20241010
Copying blob fcaea6d86226 done   | 
Copying blob 5f70bf18a086 done   | 
Error: writing blob: archive/tar: write too long

See also #24280

It is possible that this is fixed by containers/storage#2130. I have not yet tested.

@mtrmac
Copy link
Collaborator

mtrmac commented Oct 15, 2024

Yes, this is probably containers/storage#2130 . I’ll test and confirm.

@edsantiago
Copy link
Member Author

I just tested on my laptop, and it looks like your PR fixes it. I'll repush my test-zstd PR and see.

@mtrmac
Copy link
Collaborator

mtrmac commented Oct 15, 2024

Confirming that in manual testing, containers/storage#2130 fixes this.

@edsantiago
Copy link
Member Author

Vendored into podman in #24326, and this particular bug no longer manifests.

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

No branches or pull requests

5 participants