Docker Registry failing to correctly push manifests even when successful. #13295

Closed
opened 2025-11-02 10:37:43 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @DeprecatedLuke on GitHub (Jul 17, 2024).

Description

When pushing an image including amazoncorretto (or eclipse-temurin) docker registry will return very random errors such as: 404 not found, 501 internal server error, but the image is pushed successfully and is working with docker run.

Luckily this is very easy to replicate:

FROM maven:3.9.8-eclipse-temurin-11 AS builder

WORKDIR /app

COPY pom.xml .
RUN mvn dependency:go-offline

COPY src src
RUN mvn package

FROM eclipse-temurin:11

WORKDIR /app

COPY --from=builder /app/target/app.jar exec.jar
COPY resources resources
COPY templates templates

CMD ["java", "-XX:MaxRAMPercentage=95", "-jar", "exec.jar"]

The database errors are: UQE_package_version_s(resulting in 501) and missing entry(resulting in 404). All other layers upload successfully and it seems to be strictly related to pushing the final manifest information.

Gitea Version

4913edaa70

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

not applicable

Screenshots

not applicable

Git Version

official gitea docker image with custom dockerfile build.

Operating System

official docker container

How are you running Gitea?

docker container dev environment with postgresql.

Database

PostgreSQL

Originally created by @DeprecatedLuke on GitHub (Jul 17, 2024). ### Description When pushing an image including amazoncorretto (or eclipse-temurin) docker registry will return very random errors such as: 404 not found, 501 internal server error, but the image is pushed successfully and is working with docker run. Luckily this is very easy to replicate: ``` FROM maven:3.9.8-eclipse-temurin-11 AS builder WORKDIR /app COPY pom.xml . RUN mvn dependency:go-offline COPY src src RUN mvn package FROM eclipse-temurin:11 WORKDIR /app COPY --from=builder /app/target/app.jar exec.jar COPY resources resources COPY templates templates CMD ["java", "-XX:MaxRAMPercentage=95", "-jar", "exec.jar"] ``` The database errors are: UQE_package_version_s(resulting in 501) and missing entry(resulting in 404). All other layers upload successfully and it seems to be strictly related to pushing the final manifest information. ### Gitea Version 4913edaa70a48f7c5a524f680ca921ed515d6ec2 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist not applicable ### Screenshots not applicable ### Git Version official gitea docker image with custom dockerfile build. ### Operating System official docker container ### How are you running Gitea? docker container dev environment with postgresql. ### Database PostgreSQL
GiteaMirror added the topic/packagestype/bug labels 2025-11-02 10:37:43 -06:00
Author
Owner

@lunny commented on GitHub (Aug 18, 2024):

This should be fixed by #21862 but not. Hm, I found a deadlock here.

@lunny commented on GitHub (Aug 18, 2024): This should be fixed by #21862 but not. Hm, ~I found a deadlock here.~
Author
Owner

@DeprecatedLuke commented on GitHub (Oct 20, 2024):

This appears to be fixed.

@DeprecatedLuke commented on GitHub (Oct 20, 2024): This appears to be fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13295