meta data for this page

Sonatype NEXUS

Issues

unknown blob

Gitlab Runner cannot get docker image:

ERROR: Preparation failed: failed to pull image “…” with specified policies [always]: unknown blob (manager.go:205:3s)

In nexus log, lot of: org.sonatype.nexus.repository.docker.internal.V2Exception: authentication required

In host dockerd log:

Jul 19 06:53:49 lxc809 dockerd[303]: time="2021-07-19T06:53:49.863528790Z" level=error msg="Download failed after 1 attempts: unknown blob"
Jul 19 06:53:49 lxc809 dockerd[303]: time="2021-07-19T06:53:49.863896588Z" level=error msg="Download failed after 1 attempts: unknown blob"
Jul 19 06:53:50 lxc809 dockerd[303]: time="2021-07-19T06:53:50.724398387Z" level=error msg="Download failed after 1 attempts: unknown blob"
Jul 19 06:53:50 lxc809 dockerd[303]: time="2021-07-19T06:53:50.724503196Z" level=info msg="Attempting next endpoint for pull after error: unknown blob"

Reason: Due to bug Docker - Delete unused manifests and images task may delete referenced layers if the database query to select components encounters limits, docker blobs were removed.

Solution: redeploy image again.