pushleft
Deploy your first app
Manual contents
Handbook
HandbookPushleftArchitecture
Operate
Install the control planeYour own serversFleetOperations and alertsAuthenticationAccess gateDomains and DNSUsage and budgetsScheduled jobsAbuse controlsAI provider proxyCustomer mailErrors and performanceLogs and metricsRetentionObject storageContainer registryGit server
Develop
The .pl.yaml manifestOnboard with an AI agentThe pl up demoBuild executorSource ingestionAgent gatewayManaged databasesSecurity findingsTunnels and shellsDev workspacesPrivate hostnamesMesh coordinatorsDesign baseline
Runbooks
Control-plane host failoverControl-plane PostgreSQL failoverControl-plane PostgreSQL restoreCustom domains and certificatesGateway key compromiseIngress host failureNode busyNode disk fullNode drain and replacementNode lostRegistry outageHetzner Robot hostsSecret rotationSecurity incidentStaging fleet on ProxmoxStaging build cacheStuck deploymentVault/OpenBao backup and recovery
More
CI pipelines
Manual · docs/runbooks/registry-outage.md

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-Digest to 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 to max_attempts (5). It then marks the deployment failed with a terminal build_failed event. Nothing is published, and no artifact without a pushed digest can exist (publish_release_artifact).

  • New containers fail. ensure_application runs docker pull <repo>@sha256:... before every create (crates/pushleft-agent/src/application.rs). During an outage, new instances and replicas fail and retry, then end in error. 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_status becomes failed and is retried every pass (alert registry_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/issuer mismatch;
    • a clock skew of more than a minute.

    A 403 from the gateway’s /v1/agent/registry/token is a placement refusal, and the registry is up.

Symptoms

  • build_failures_infrastructure: terminal build failures across several organizations within 30 min.
  • build_duration_slow and registry_image_release_failing.
  • pl up users see build_failed with 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 the pl-cp jump host or the Fleet app’s Terminal (operator access).

Diagnosis

  1. Open Pipeline in the Fleet app. Recent builds lists failures first, with the reason. Open a row for the log tail.

  2. Read Queued builds and Queue for the builds that are waiting or retrying, with their attempt count.

  3. 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/
  4. On pl-cp, check zot itself: systemctl status pushleft-registry and journalctl -u pushleft-registry. R2 errors there mean the bucket or its keys.

  5. If the probe answers 401, look for token failures. The agent log shows refused a registry token or 401. The gateway log shows registry token issued for each grant.

Actions

  1. Fix the registry or its storage, then systemctl restart pushleft-registry. Pushleft has no secondary registry and no failover (gap).
  2. If the signing key was rotated, check that its certificate is in the registry’s rootcertbundle (registry credential).
  3. Wait for /v2/ to answer. Queued and backed-off builds then continue by themselves.
  4. Ask the users of failed deployments to run pl up again. 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 up again once we confirm the registry is back. New replicas and new deployments cannot start until then.

Check it worked

  • A test pl up reaches build_completed and live.
  • build_failures_infrastructure clears within 30 min.

Do not

  • Do not insert release_artifacts rows or call publish_release_artifact by 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.attempt to get past max_attempts.
Rendered from the repository at build time. Edit docs/runbooks/registry-outage.md to change it.