gitea icon indicating copy to clipboard operation
gitea copied to clipboard

Docker Registry failing to correctly push manifests even when successful.

Open DeprecatedLuke opened this issue 7 months ago • 1 comments

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

DeprecatedLuke avatar Jul 17 '24 01:07 DeprecatedLuke