containers / skopeo

Work with remote images registries - retrieving information, images, signing content
Apache License 2.0
8.3k stars 783 forks source link

FATA[0000] initializing source ... connect: manifest unknown #2455

Open oscni opened 1 week ago

oscni commented 1 week ago

Don't know if this is a problem with the registry or a problem with skopeo. Using skopeo alpine package version 1.15.1

This works as expected skopeo copy docker://docker.redpanda.com/redpandadata/console:v2.7.2 docker://

This gives an error skopeo copy docker://docker.redpanda.com/redpandadata/connect:4.39 docker:// FATA[0000] initializing source docker://docker.redpanda.com/redpandadata/connect:4.39: reading manifest 4.39 in docker.redpanda.com/redpandadata/connect: manifest unknown

work-around is to use docker pull, docker tag, docker push but it seems mysterious to why it works with docker cli command and not skopeo. We're using skopeo for lots of other jobs and it has never failed, this is the first time I've seen something like this. Anyone knows what this might be or how to troubleshoot it further?

Thanks for a great project! :smiley: :tada:

mtrmac commented 6 days ago

Thanks for reaching out.

I see

% skopeo … copy --all docker://docker.redpanda.com/redpandadata/connect:4.39 dir:t
Getting image list signatures
Copying 4 images generated from 4 images in list
Copying image sha256:678d71a1c67d45b2306ed35fec4ac1e8964873b880744f7c5ab232fdb8bfda89 (1/4)
FATA[0001] copying image 1/4 from manifest list: determining manifest MIME type for docker://docker.redpanda.com/redpandadata/connect:4.39: reading manifest sha256:678d71a1c67d45b2306ed35fec4ac1e8964873b880744f7c5ab232fdb8bfda89 in docker.redpanda.com/redpandadata/connect: received unexpected HTTP status: 500 Internal Server Error 

and which entry fails varies from run to run (although I have always seen a 500 status).

An “internal server error” must, pretty much by definition, be diagnosed server-side.

oscni commented 4 days ago

yeah 500 is server side error but it of course depends on the input the server receives. How can docker pull work but not skopeo?

mtrmac commented 4 days ago

I don’t know. The server knows. This can be investigated server-side; without that, we are restricted to guessing things that might make a difference.