You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ever since I upgraded to gitea 1.23.0-rc0, I am not able to push to the docker registry multi-arch images, with simple image also randomly failing to push.
Everything was working fine before I upgraded the docker image when the gitea instance suddenly started giving me "package version already exists" errors.
I have joined logs of me running the command on demo.gitea.com and my own server. Let me know if you need more infos.
FROM public.ecr.aws/docker/library/node:22-alpine3.21
RUN apk add --no-cache bash git curl jq
# Vulnerability fixes
RUN npm install -g npm@latest
ENTRYPOINT ["/bin/bash"]
$ docker build . -t <serverurl>/skydust/multiarchtest:latest --platform linux/amd64,linux/arm64 --push
...
ERROR: failed commit on ref "manifest-sha256:1201f32e3f851ed5eb8e8f9e8df297e7c6b6aa64c849fe4de75a2f95872fcc34": unexpected status from PUT request to https://<serverurl>//v2/skydust/multiarchtest/manifests/latest: 500 Internal Server Error
...
2024/12/27 20:49:47 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD /v2/skydust/multiarchtest/blobs/sha256:ea542b86a0afcd40ccb12aa90fce8a8cf7d8b9798e8ae5ec545087bb
fa70600a for 10.0.0.118:48888, 200 OK in 113.4ms @ container/container.go:501(container.HeadBlob)
2024/12/27 20:49:47 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD /v2/skydust/multiarchtest/blobs/sha256:274663461bd74df9f025b6e29c963c0583cb98dbb8641dd609119431
fe17d4a4 for [fd00::46]:35924, 200 OK in 125.7ms @ container/container.go:501(container.HeadBlob)
2024/12/27 20:49:47 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD /v2/skydust/multiarchtest/blobs/sha256:796da77e13076b9cd79d52eb61ff3b36816a68ed04bc7f701702679d
c2909442 for 10.0.0.118:48878, 200 OK in 122.9ms @ container/container.go:501(container.HeadBlob)
2024/12/27 20:49:47 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD /v2/skydust/multiarchtest/manifests/latest for [fd00::46]:35996, 200 OK in 6.2ms @ container/co
ntainer.go:639(container.HeadManifest)
2024/12/27 20:49:47 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD /v2/skydust/multiarchtest/manifests/latest for [fd00::46]:36008, 200 OK in 6.5ms @ container/co
ntainer.go:639(container.HeadManifest)
2024/12/27 20:49:47 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD /v2/skydust/multiarchtest/manifests/latest for 10.0.0.118:48916, 200 OK in 27.2ms @ container/c
ontainer.go:639(container.HeadManifest)
2024/12/27 20:49:47 ...eb/routing/logger.go:102:func1() [I] router: completed HEAD /v2/skydust/multiarchtest/manifests/latest for 10.0.0.118:48920, 200 OK in 40.5ms @ container/c
ontainer.go:639(container.HeadManifest)
2024/12/27 20:49:48 ...ontainer/manifest.go:364:createPackageAndVersion() [E] Error inserting package: package version already exists
2024/12/27 20:49:48 ...ontainer/manifest.go:364:createPackageAndVersion() [E] Error inserting package: package version already exists
2024/12/27 20:49:48 ...ontainer/manifest.go:364:createPackageAndVersion() [E] Error inserting package: package version already exists
2024/12/27 20:49:48 ...ntainer/container.go:92:apiError() [E] package version already exists
2024/12/27 20:49:48 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/skydust/multiarchtest/manifests/latest for [fd00::46]:36024, 500 Internal Server Error in 52
.7ms @ container/container.go:554(container.UploadManifest)
2024/12/27 20:49:48 ...ntainer/container.go:92:apiError() [E] package version already exists
2024/12/27 20:49:48 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/skydust/multiarchtest/manifests/latest for 10.0.0.118:48928, 500 Internal Server Error in 76
.4ms @ container/container.go:554(container.UploadManifest)
2024/12/27 20:49:48 ...ntainer/container.go:92:apiError() [E] package version already exists
2024/12/27 20:49:48 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/skydust/multiarchtest/manifests/latest for 10.0.0.118:48930, 500 Internal Server Error in 41
.3ms @ container/container.go:554(container.UploadManifest)
2024/12/27 20:49:48 ...eb/routing/logger.go:102:func1() [I] router: completed PUT /v2/skydust/multiarchtest/manifests/latest for [fd00::46]:36010, 201 Created in 90.0ms @ contain
er/container.go:554(container.UploadManifest)
Git Version
2.45.2
Operating System
Docker
How are you running Gitea?
I'm running gitea inside kubernetes using the official gitea/gitea:1.23.0-rc0 container.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered:
I recommend you use docker buildx to build multi-architecture images
I should have mentioned, I'm using docker-desktop on a mac and it's using buildkit by default. My CI has the same errors and directly uses docker buildx build.
Description
Ever since I upgraded to gitea 1.23.0-rc0, I am not able to push to the docker registry multi-arch images, with simple image also randomly failing to push.
Everything was working fine before I upgraded the docker image when the gitea instance suddenly started giving me "package version already exists" errors.
I have joined logs of me running the command on demo.gitea.com and my own server. Let me know if you need more infos.
Gitea Version
1.23.0-rc0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://gist.github.com/Skydust2B/cb365129eec75cac93b1d927d26e5ff4
Git Version
2.45.2
Operating System
Docker
How are you running Gitea?
I'm running gitea inside kubernetes using the official gitea/gitea:1.23.0-rc0 container.
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: