containers / skopeo

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

skopeo copy #1639

Closed arvindraju closed 2 years ago

arvindraju commented 2 years ago

Hi,

When trying to copy an image from one registry to another, i get the below error .

Screenshot 2022-05-06 at 1 09 45 PM

LM0002358:~ xxxxxx$ skopeo copy docker://nexus.xyz.com:5550/svc:20220418.2 docker://nexus.rjil.ril.com:5500/svc:20220418.2 --registries-conf ~/.docker/registries.conf Getting image source signatures Copying blob 121319d3ac51 skipped: already exists
Copying blob cd32ce0efa70 skipped: already exists
Copying blob 0c6b8ff8c37e skipped: already exists
Copying blob 412caad352a3 skipped: already exists
Copying blob 82233e85f8fb skipped: already exists
Copying blob e6d3e61f7a50 skipped: already exists
FATA[0036] trying to reuse blob sha256:e00faeb297c57cc28ff7b00c43717a90eb26ab725c577b02c2bfdb6c3ffe2eee at destination: failed to read from destination repository svc: 500 (Internal Server Error)

Instead of reusing this blob - "trying to reuse blob sha256:e00faeb297c57cc28ff7b00c43717a90eb26ab725c577b02c2bfdb6c3ffe2eee " can we forcefully push it . This blob seems to be missing in the destination registry.

Thanks

vrothberg commented 2 years ago

Thank you for reaching out, @arvindraju.

Instead of reusing this blob - "trying to reuse blob sha256:e00faeb297c57cc28ff7b00c43717a90eb26ab725c577b02c2bfdb6c3ffe2eee " can we forcefully push it . This blob seems to be missing in the destination registry.

Any chance you can access the logs of the registry? It ultimately looks like an error of the registry.

@mtrmac WDYT?

mtrmac commented 2 years ago

Yes, “internal server error” pretty much has to be diagnosed server-side.

And no, there is no way to avoid the reuse code. (If the user just didn’t have the necessary permissions to read/reuse in the destination, the reuse code is expected to run, see a failure, and fall back to a full copy; but a 500 internal server error is not an expected “unauthorized” error, and causes a complete failure.)

github-actions[bot] commented 2 years ago

A friendly reminder that this issue had no activity for 30 days.

mtrmac commented 2 years ago

Closing; please reopen if more information becomes available.