-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Container registry fails with duplicate key (HTTP 500) #27640
Comments
Ok I did some research: The error occurs also on sqlite so the database is not the problem. Out of curiosity I built and push the same Docker image from an other machine running docker 20.10.21 and that works. Sooo I conclude that the source of my error is actually the way my docker client on macos (version 24.0.6) is pushing the images. I have some time to investigate further and I will post my findings here. |
It may also be helpfull if you could upload the log of all requests done by the docker client until the error happens. |
I found a way to reproduce the issue: |
I made some debugging on version v1.20.5 and the error occurs here. The data that can't be processed is this:
|
Well I am glad I finally found this post - I was about to abandon gitea and just use distribution and raw git. While provenance is important in my use case, it would be good in the short term if the container documentation includes the line --push --provenance=false so it is clear. It took ages to resolve whether the fault was in my HTTPS proxy, compose setup, gitea setup or file permissions issue. |
Faced similar issue described in #31215. Can confirm that it relates to MacOS docker client. |
This should be closed by #32022 |
Description
Hi!
I cannot push to the integrated docker registry anymore.
It's basically #21822 but I could not reopen that issue.
I use postgres as database and tried to fix the issue with the workaround provided in the ticket above. Without any success.
To be honest, I need to have a working solution and I will switch to something else. I just want to let you know that this issue still exists.If I can help you by providing the database dump, I can do that.
Gitea Version
1.20.5
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://gist.github.com/Chief-Detektor/7b26fc63faa5bd84b5ce942fe51b6d74
Screenshots
No response
Git Version
2.40.1
Operating System
linux
How are you running Gitea?
I use the official helm chart.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: