Registry outage
Use this when builds fail with push errors, or when build_failures_infrastructure, build_duration_slow or registry_image_release_failing fires.
The OCI registry (PUSHLEFT_BUILD_REGISTRY) receives every build push and serves every image pull. The registry is zot. pushleft-registry.service runs it on the control-plane host (pl-cp) on port 5000. Its blobs are in its own R2 bucket, or on local disk with PUSHLEFT_REGISTRY_STORAGE=local (registry deployment). It runs token auth with the agent gateway as its token issuer (registry tokens).
Failure modes
-
Builds fail closed. The agent pushes blobs and the manifest itself, and requires the registry’s
Docker-Content-Digestto equal the manifest digest. A failed push is a failed attempt. The gateway requeues a retryable failure with a 2^attempt-second backoff (2, 4, 8, 16 s) up tomax_attempts(5). It then marks the deploymentfailedwith a terminalbuild_failedevent. Nothing is published, and no artifact without a pushed digest can exist (publish_release_artifact). -
New containers fail.
ensure_applicationrunsdocker pull <repo>@sha256:...before every create (crates/pushleft-agent/src/application.rs). During an outage, new instances and replicas fail and retry, then end inerror. Running containers are not affected, because they are never pulled again. A stopped release has no container and usually no image left (the agent removes both), so a rollback also needs the registry. -
Retention stalls. Manifest deletes fail.
release_artifacts.image_release_statusbecomesfailedand is retried every pass (alertregistry_image_release_failing, retention). -
Token problems look the same. These give 401 on push and pull, so check them before you blame the registry:
- a signing certificate missing from the registry’s
rootcertbundle; - a
service/issuermismatch; - a clock skew of more than a minute.
A 403 from the gateway’s
/v1/agent/registry/tokenis a placement refusal, and the registry is up. - a signing certificate missing from the registry’s
Symptoms
build_failures_infrastructure: terminal build failures across several organizations within 30 min.build_duration_slowandregistry_image_release_failing.pl upusers seebuild_failedwith a push error in the log tail.
Before you start
- Get a shell on
pl-cp(the registry and the gateway) and on a build node for their logs. Use thepl-cpjump host or the Fleet app’s Terminal (operator access).
Diagnosis
-
Open Pipeline in the Fleet app. Recent builds lists failures first, with the reason. Open a row for the log tail.
-
Read Queued builds and Queue for the builds that are waiting or retrying, with their attempt count.
-
Probe the registry. It must answer 401 with
Www-Authenticate: Bearer realm=…. A timeout or 5xx means the registry is down.curl -s -o /dev/null -w '%{http_code}' https://<registry>/v2/ -
On
pl-cp, check zot itself:systemctl status pushleft-registryandjournalctl -u pushleft-registry. R2 errors there mean the bucket or its keys. -
If the probe answers 401, look for token failures. The agent log shows
refused a registry tokenor401. The gateway log showsregistry token issuedfor each grant.
Actions
- Fix the registry or its storage, then
systemctl restart pushleft-registry. Pushleft has no secondary registry and no failover (gap). - If the signing key was rotated, check that its certificate is in the registry’s
rootcertbundle(registry credential). - Wait for
/v2/to answer. Queued and backed-off builds then continue by themselves. - Ask the users of
faileddeployments to runpl upagain. This creates a new deployment. Failed deployments stay failed by design, and there is no in-place retry.
Status update for users
Builds are failing because our image registry is unavailable. Running applications are not affected. Deployments that failed during the outage will not resume by themselves: run
pl upagain once we confirm the registry is back. New replicas and new deployments cannot start until then.
Check it worked
- A test
pl upreachesbuild_completedandlive. build_failures_infrastructureclears within 30 min.
Do not
- Do not insert
release_artifactsrows or callpublish_release_artifactby hand to “adopt” an image pushed elsewhere. There is no adopt-an-image path, and the scoped-digest check is the provenance guarantee. - Do not switch the agent to a tag, or drop digest pinning.
- Do not reset
jobs.attemptto get pastmax_attempts.