image: panic on podman push
When executing podman push registry.mydomain.com/imagename, I get the following error:
Getting image source signatures
Copying blob 3a8defd3c960 [=======>------------------------------] 10.0MiB / 50.0MiB
Copying blob 002555c37f66 [=============>------------------------] 6.0MiB / 16.4MiB
Copying blob 831b66a484dc [=>------------------------------------] 7.3MiB / 113.7MiB
Copying blob 9cc9add37421 [>-------------------------------------] 7.3MiB / 475.4MiB
Copying blob ccf71bd6dffe skipped: already exists
Copying blob f256d8ec889c skipped: already exists
Copying blob e1ca698764a7 [--------------------------------------] 8b / 8.5MiB
Copying blob 6aad20fe678c [--------------------------------------] 8b / 2.2MiB
panic: d.nx != 0
goroutine 86 [running]:
crypto/sha256.(*digest).checkSum(0xc0007d8b40, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go-1.11/src/crypto/sha256/sha256.go:253 +0x1e9
crypto/sha256.(*digest).Sum(0xc0003fe980, 0x0, 0x0, 0x0, 0xc0007d8c68, 0xf98d1219, 0xb1cdc63ac2ffd3e2)
/usr/lib/go-1.11/src/crypto/sha256/sha256.go:229 +0x69
github.com/opencontainers/go-digest.NewDigest(0x191b791, 0x6, 0x1b7c4c0, 0xc0003fe980, 0x18, 0xc0007d8c60)
vendor/github.com/opencontainers/go-digest/digest.go:40 +0x46
github.com/opencontainers/go-digest.(*digester).Digest(0xc00056ca80, 0x1b6ccd8, 0xc0006feec0)
vendor/github.com/opencontainers/go-digest/digester.go:38 +0x49
github.com/containers/image/v5/docker.(*dockerImageDestination).PutBlob(0xc000274de0, 0x1b7a040, 0xc00003e138, 0x1b62680, 0xc00036a068, 0x0, 0x0, 0xffffffffffffffff, 0x0, 0x0, ...)
vendor/github.com/containers/image/v5/docker/docker_image_dest.go:169 +0x669
github.com/containers/image/v5/copy.(*copier).copyBlobFromStream(0xc0001048f0, 0x1b7a040, 0xc00003e138, 0x7fb12c201238, 0xc0003c89a0, 0xc0004be550, 0x47, 0x1068400, 0x0, 0x0, ...)
vendor/github.com/containers/image/v5/copy/copy.go:1167 +0x40b
github.com/containers/image/v5/copy.(*imageCopier).copyLayerFromStream(0xc000275260, 0x1b7a040, 0xc00003e138, 0x7fb12c201238, 0xc0003c89a0, 0xc0004be550, 0x47, 0x1068400, 0x0, 0x0, ...)
vendor/github.com/containers/image/v5/copy/copy.go:1030 +0x191
github.com/containers/image/v5/copy.(*imageCopier).copyLayer(0xc000275260, 0x1b7a040, 0xc00003e138, 0xc0004be550, 0x47, 0x1068400, 0x0, 0x0, 0x0, 0x0, ...)
vendor/github.com/containers/image/v5/copy/copy.go:975 +0x39f
github.com/containers/image/v5/copy.(*imageCopier).copyLayers.func1(0x2, 0xc0004be550, 0x47, 0x1068400, 0x0, 0x0, 0x0, 0x0, 0xc000386300, 0x26, ...)
vendor/github.com/containers/image/v5/copy/copy.go:755 +0x3ea
created by github.com/containers/image/v5/copy.(*imageCopier).copyLayers.func2
vendor/github.com/containers/image/v5/copy/copy.go:766 +0x1b5
Even though the error occurs in podman, I opened the issue here because the backtrace suggests that the issue occurs in the containers/image code.
The registry is a normal docker registry.
System Information
OS: Debian Buster
Podman Version: Occurs on both version 1.6.2 (installed via ubuntu PPA) and source build of podman (1.6.4-dev)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 27 (1 by maintainers)
From my point of view, it is fine if the push fails, but it should not crash.
The settings that I added were