Description
Description
Related Issues/PRs:
- Error 500 when pushing a docker multiarch image #33010
- [ContainerRegistry] Internal server error on
docker push <image_name>
#31215 - Error 1062 (23000): Duplicate entry when using 'docker buildx imagetools create' in Actions #29563
- Manifest push fails when using Gitea container registry with Docker BuildKit caching #28973
- Optimize docker registry response code #33053
- Fix container parallel upload bugs #32022
@wxiaoguang thanks for your fix here: #33010 (comment)
But apparently I can not test it as I already am on "nightly", which is basically "1.24-nightly" and therefore newer than "1.23-nightly".
Here some info about my situation:
- I use the current nightly build
1.24.0+dev-179-gf6dbf0e7b3
- I use Debian Testing as Host
This is my docker-build command: (censored)
docker buildx build -f Dockerfile --pull --push --provenance=false \
\
--build-arg ALPINE_TAG="$TAG" \
--platform linux/amd64/v1,linux/amd64/v2,linux/amd64/v3,linux/arm64/v8 \
-t sub.domain.tld/repo/image:v${VERSION} \
-t sub.domain.tld/repo/image \
.
This is the error I get:
> exporting to image:
3.174 error: failed commit on ref "layer-sha256:bba02a3b73b4653e6165c781254a34247ad12dcebc38e638a8b7606ddb719fab": unexpected status from PUT request to https://sub.domain.tld/v2/repo/image/blobs/uploads/n5iojjlsxfxsnobkf5g9gaae3?digest=sha256%3Abba02a3b73b4653e6165c781254a34247ad12dcebc38e638a8b7606ddb719fab: 500 Internal Server Error
3.174 retrying in 1s
5.005 error: failed commit on ref "layer-sha256:bba02a3b73b4653e6165c781254a34247ad12dcebc38e638a8b7606ddb719fab": unexpected status from PUT request to https://sub.domain.tld/v2/repo/image/blobs/uploads/b5xta9fiofskiwdd0yy2nalna?digest=sha256%3Abba02a3b73b4653e6165c781254a34247ad12dcebc38e638a8b7606ddb719fab: 500 Internal Server Error
5.005 retrying in 2s
7.815 error: failed commit on ref "layer-sha256:bba02a3b73b4653e6165c781254a34247ad12dcebc38e638a8b7606ddb719fab": unexpected status from PUT request to https://sub.domain.tld/v2/repo/image/blobs/uploads/fvt2wi7tsrbtbpsmtv3dohkjn?digest=sha256%3Abba02a3b73b4653e6165c781254a34247ad12dcebc38e638a8b7606ddb719fab: 500 Internal Server Error
7.815 retrying in 4s
12.61 error: failed commit on ref "layer-sha256:bba02a3b73b4653e6165c781254a34247ad12dcebc38e638a8b7606ddb719fab": unexpected status from PUT request to https://sub.domain.tld/v2/repo/image/blobs/uploads/6emxck8jbooxwgju3vvatlruo?digest=sha256%3Abba02a3b73b4653e6165c781254a34247ad12dcebc38e638a8b7606ddb719fab: 500 Internal Server Error
First when I got this error, I navigated to https://sub.domain.tld/-/admin/packages
and deleted the unreferenced packages. Then the upload worked again. I have to do this all 4-5 times I PUSH to the repo and this is very annoying, but since I use Gitea for my own, this is not the biggest problem.
Genenrally speaking Gitea is the coolest, cleanest, resource-saving Repo-Manager, with at the same time, the worst Docker-Image Repo I have ever tested. Since I set it up about half a year ago I just had trouble with it and the Docker-Image Repo was not working stable out of the box.
I would appreciate a fix for
Gitea Version
1.24.0+dev-179-gf6dbf0e7b3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Debian Testing (12.9)
How are you running Gitea?
I run Gitea in a selfhosted docker-container.
Database
PostgreSQL