Cannot sync/push with skopeo-sync

Summary

When using skopeo to sync some images from a remote image registry (quay.io) i get the error:

time="2021-09-09T14:40:42Z" level=debug msg="Upload of layer sha256:92a68d8706b6d030cac9727d677cbb41c95ebb604fd7d3bf45756d859032c91f complete"
time="2021-09-09T14:40:42Z" level=debug msg="Upload of layer sha256:0c6eb46451f5f4bf72edc5afde405569e433986e7b4c13e3997a7fa33377465c complete"
time="2021-09-09T14:40:42Z" level=fatal msg="Error copying ref \"docker://quay.io/ulrichschreiner/vscode-go-remote:latest\": Error trying to reuse blob sha256:19485df71f2adacd667a48488f8d87da989b6c733a59ba8be0fc81232687a3c4 at destination: Requesting bear token: invalid status code from registry 422 (Unprocessable Entity)"

We have a custom gitlab installation with a private registry storing images in ceph based S3. When i tried to sync some images from quay.io to the private registry with skopeo the job crashed. As the Gitlab is currently 14.0 i stumbled also with #215715 (closed) but after testing it with a 14.2 version i now get this error

Steps to reproduce

The same happens on "gitlab.com", here is my test-project:

https://gitlab.com/ulrichSchreiner/synctest

and the failed jobs:

https://gitlab.com/ulrichSchreiner/synctest/-/jobs

I use one of my images which is ubuntu-based and installed skopeo with apt-get install skopeo.

My first consideration was that we have problems with ceph-S3; but as the same happens on gitlab.com i think this is another problem.

Edited by 🤖 GitLab Bot 🤖