Error codes

Every refusal prints {"state": "rejected", "reason": "<code>"}, and receipts and execution results name failures with the same codes. Each entry says what caused it, what to do next and whether re-running the same command unchanged can succeed (retry-safe). The same entries are available offline:

piceli explain <code>          # human text
piceli explain <code> --json   # the structured entry

Codes never contain paths, secret values or server messages. See Using Piceli from an agent for how an agent should react to them.

Index

Code

Area

Retry-safe

absence-precondition-failed

execution

no

access-forwards-failed

access

yes

access-kubeconfig-invalid

access

no

access-kubectl-missing

access

no

access-none-declared

access

no

access-operator-missing

access

no

access-operator-not-ready

access

no

access-operator-unknown

access

no

access-policy-unchanged

access

no

access-port-conflict

access

no

access-stop-incomplete

access

yes

access-stop-needs-stale

access

no

access-tailnet-missing

access

no

access-tailnet-pending

access

no

access-tailnet-skipped

access

no

access-target-invalid

access

no

access-ui-cluster-invalid

cluster-ui

no

access-ui-forbidden

cluster-ui

no

access-ui-not-declared

cluster-ui

no

access-ui-not-installed

cluster-ui

no

access-ui-not-ready

cluster-ui

yes

access-ui-target-required

cluster-ui

no

access-ui-unreachable

cluster-ui

yes

access-unknown-forward

access

no

adopt-and-replace

release

no

adopt-entry-not-declared

release

no

ambiguous-content-blocked

execution

no

ambiguous-delete-blocked

execution

no

ambiguous-write-blocked

execution

no

api-unavailable

kubernetes

yes

applied-resource-drift

execution

no

apply-crashloop

execution

no

approval-policy-exceeded

approval

no

approval-policy-invalid

approval

no

approval-policy-missing

approval

no

approve-if-policy-flags-conflict

approval

no

approve-with-planning-flags

release

no

auth-provider-refused

target

no

authorization-expired

execution

no

backup-refused

observe

no

base-image-invalid

host-build

no

base-image-unavailable

host-build

yes

base-layer-unsupported

host-build

no

base-platform-unavailable

host-build

no

blob-digest-mismatch

artifacts-registry

yes

blob-not-found

artifacts-registry

no

blob-source-truncated

artifacts-registry

yes

build-builder-mismatch

host-build

no

build-failed

build-spec

no

build-host-engine-failed

composition

yes

build-host-fallback-only

composition

yes

build-host-quarantined

composition

yes

build-host-source-failed

composition

yes

build-platforms-invalid

host-build

no

build-timed-out

build-spec

yes

builder-not-approved

build-spec

no

builder-service-failed

dev

yes

builder-service-invalid

dev

no

builder-version-mismatch

dev

yes

bundle-empty

bundle

no

bundle-image-archive-missing

bundle

no

bundle-image-mismatch

bundle

no

bundle-image-platform-missing

bundle

no

bundle-image-unpinned

bundle

no

bundle-image-unresolved

bundle

no

bundle-invalid

bundle

no

bundle-out-refused

bundle

no

bundle-receipt-invalid

bundle

no

bundle-secret-unsupported

bundle

no

bundle-secret-value

bundle

no

bundle-unsafe-network

bundle

no

bundle-unsafe-no-privilege

bundle

no

bundle-unsafe-node-port

bundle

no

bundle-unsafe-non-root

bundle

no

bundle-unsafe-rbac

bundle

no

bundle-unsafe-read-only-root

bundle

no

bundle-unsafe-resources

bundle

no

cache-arguments-conflict

maintenance

no

cache-budget-invalid

maintenance

no

cache-over-budget

maintenance

no

cancelled

artifacts-delivery

yes

candidate-rehearsal-failed

gitops

yes

candidate-release-failed

gitops

yes

candidate-release-not-pinned

gitops

yes

candidate-step-failed

gitops

yes

candidate-step-push-rejected

gitops

yes

candidate-step-timeout

gitops

yes

candidate-step-unrecorded-change

gitops

no

chart-artifact-changed

chart

no

chart-empty

chart

no

chart-invalid

chart

no

chart-out-refused

chart

no

chart-push-failed

chart

yes

chart-secret-value

chart

no

chart-target-invalid

chart

no

chart-values-invalid

chart

no

check-api-unavailable

checks

yes

check-callable-invalid

checks

no

check-exec-unavailable

checks

no

check-failed

checks

yes

check-forward-unavailable

checks

yes

check-invalid

checks

no

check-metric-invalid

checks

no

check-port-unknown

checks

no

check-raised

checks

no

check-target-not-found

checks

yes

check-timed-out

checks

yes

checks-failed-rolled-back

gitops

no

checks-rollback-failed

checks

no

checks-rollback-unavailable

checks

no

claim-expansion-failed

restore

yes

claim-growth-needs-apply

restore

no

claim-growth-needs-restore-points

restore

no

claim-migration-failed

restore

yes

claim-migration-mismatch

restore

yes

claim-migration-required

restore

no

claim-migration-target-exists

restore

no

claim-migration-verify-failed

restore

yes

claim-shrink-refused

restore

no

cluster-api-failed

cluster

yes

cluster-api-mismatch

cluster

no

cluster-build-failed

host-build

yes

cluster-build-invalid

host-build

no

cluster-credentials-missing

cluster

yes

cluster-credentials-refused

cluster

yes

cluster-credentials-unsupported

cluster

no

cluster-identity-changed

release

no

cluster-identity-unreadable

kubernetes

yes

cluster-init-partial

cluster

yes

cluster-invalid

cluster

no

cluster-load-failed

cluster

no

cluster-node-arch-mismatch

cluster

no

cluster-node-missing

cluster

no

cluster-not-found

cluster

no

cluster-not-initialized

cluster

no

cluster-plan-changed

cluster

yes

cluster-registry-cluster-failed

cluster-registry

yes

cluster-registry-copy-failed

cluster

yes

cluster-registry-invalid

cluster-registry

no

cluster-registry-not-installed

cluster-registry

no

cluster-registry-not-ready

cluster-registry

yes

cluster-registry-plan-changed

cluster-registry

yes

cluster-registry-target-required

cluster-registry

no

cluster-unreachable

cluster

yes

codegen-cluster-read-failed

codegen

yes

codegen-flags-conflict

codegen

no

codegen-output-refused

codegen

no

collector-licence-missing

host-build

no

collector-notices-failed

host-build

yes

command-cancelled

artifacts-delivery

yes

command-failed

artifacts-delivery

no

command-output-limit

artifacts-delivery

no

command-timed-out

artifacts-delivery

yes

compensation-already-started

execution

no

component-build-failed

composition

yes

component-build-unsupported

composition

no

component-contract-invalid

composition

no

component-contract-missing

composition

no

component-need-unmet

composition

no

composition-invalid

composition

no

composition-ref-unresolved

composition

yes

conflict

kubernetes

no

context-budget-exceeded

build-spec

no

context-changed

build-spec

yes

context-empty

build-spec

no

context-missing

build-spec

no

context-symlink

build-spec

no

copy-failed

publish

yes

copy-invalid

publish

no

copy-not-approved

publish

yes

copy-tag-exists

publish

no

copy-verification-failed

publish

yes

cosign-tool-required

publish

no

crd-invalid

codegen

no

crd-not-found

codegen

no

credential-helper-failed

publish

yes

credentials-file-not-private

artifacts-input

no

cross-origin-location-refused

artifacts-registry

no

cycle-options-invalid

cli

no

deadline-exceeded

kubernetes

yes

deleted-resource-reappeared

execution

no

delivery-not-succeeded

images

no

deploy-events-config-invalid

pipeline

no

deploy-events-export-failed

pipeline

yes

deploy-flags-conflict

cli

no

deploy-plan-file-invalid

pipeline

no

deploy-plan-file-mismatch

pipeline

no

deploy-plan-target-mismatch

pipeline

no

deploy-ref-ambiguous

pipeline

no

deploy-ref-checkout-failed

pipeline

yes

deploy-ref-invalid

pipeline

no

deploy-ref-model-differs

pipeline

no

deploy-ref-source-unknown

pipeline

no

deploy-ref-unknown

pipeline

yes

deploy-stage-unknown

cli

no

derived-base-invalid

host-build

no

derived-base-unavailable

host-build

yes

derived-base-unrecorded

host-build

no

derived-image-local-unsupported

host-build

no

dev-cache-clear-failed

dev

yes

dev-cache-over-cap

dev

yes

dev-command-failed

dev

yes

dev-host-publish-only

dev

no

dev-host-unavailable

dev

no

dev-host-unknown

dev

no

dev-isolation-not-enforced

dev

no

dev-lineage-damaged

dev

yes

dev-nix-cache-invalid

dev

no

dev-nix-cache-key-unset

dev

no

dev-nix-gc-failed

dev

yes

dev-nix-host-unsupported

dev

no

dev-nix-invalid

dev

no

dev-nix-key-invalid

dev

no

dev-nix-key-mismatch

dev

no

dev-nix-manifest-failed

dev

yes

dev-nix-no-output

dev

no

dev-nix-plan-changed

dev

no

dev-nix-publish-failed

dev

yes

dev-not-enabled

dev

no

dev-profile-unknown

dev

no

dev-queue-timeout

dev

yes

dev-ref-unknown

dev

no

dev-registry-src-damaged

dev

yes

dev-run-abandoned

dev

yes

dev-run-cancelled

dev

yes

dev-run-failed

dev

yes

dev-run-invalid

dev

no

dev-run-out-of-memory

dev

yes

dev-run-timed-out

dev

yes

dev-run-unknown

dev

no

dev-run-unschedulable

dev

yes

dev-source-invalid

dev

no

dev-tool-missing

dev

no

dev-toolchain-checksum

dev

yes

dev-toolchain-failed

dev

no

dev-toolchain-invalid

dev

no

dev-tree-mismatch

dev

yes

dev-upload-failed

dev

yes

digest-mismatch

artifacts-delivery

no

discovery-incomplete

release

yes

docker-socket-required

artifacts-input

no

docker-tool-required

artifacts-input

no

docker-unavailable

build-spec

yes

dockerfile-unpinned

build-spec

no

dry-run-limit-exceeded

kubernetes

no

dry-run-placeholder-image

kubernetes

no

env-branch-invalid

envs

no

env-branch-not-allowed

envs

no

env-budget-full

envs

yes

env-cluster-unavailable

envs

yes

env-config-invalid

envs

no

env-image-invalid

envs

no

env-image-missing

envs

no

env-isolation-absolute-service

envs

no

env-isolation-cluster-scoped

envs

no

env-isolation-cross-namespace

envs

no

env-isolation-host-path

envs

no

env-isolation-host-port

envs

no

env-isolation-node-port

envs

no

env-isolation-shared-volume

envs

no

env-main-namespace-missing

envs

no

env-main-protected

envs

no

env-namespace-collision

envs

no

env-namespace-not-managed

envs

no

env-nodes-conflict

envs

no

env-not-configured

envs

no

env-not-found

envs

no

env-pipeline-missing

envs

no

env-plan-changed

envs

no

env-push-invalid

host-build

no

env-seed-no-restore-point

envs

no

env-stack-incomplete

envs

no

env-stack-unknown

envs

no

env-workload-unknown

envs

no

environment-invalid

environments

no

environment-required

environments

no

environment-unknown

environments

no

environment-unsupported

environments

no

evaluation-approval

render

no

evaluation-config

render

no

evaluation-expired

render

no

evaluation-interrupted

render

no

evaluation-output

render

no

evaluation-renderer

render

no

evaluation-source

render

no

evaluation-unsupported

render

no

exec-auth-not-allowed

target

no

exec-command-not-found

target

no

exec-command-unsafe

target

no

exec-config-invalid

target

no

exec-credential-invalid

target

no

exec-interactive-required

target

no

exec-pin-mismatch

target

no

exec-plugin-failed

target

no

exec-plugin-timed-out

target

yes

execution-not-ready

release

no

execution-not-started

release

no

execution-other-owner

release

no

execution-other-target

release

no

execution-refused

release

no

explain-run-needs-spec

cli

no

field-owner-precondition-failed

execution

no

forward-options-incomplete

artifacts-input

no

forward-options-without-forward

artifacts-input

no

forward-port-conflict

observe

yes

forward-port-in-use

artifacts-delivery

yes

forward-reconnecting

access

yes

forward-target-not-loopback

artifacts-input

no

forward-unavailable

artifacts-delivery

yes

forward-unhealthy

observe

yes

generation-precondition-failed

execution

no

git-timed-out

inputs

yes

git-unavailable

inputs

no

gitops-alarm-failed

gitops

yes

gitops-approval-stale

gitops

yes

gitops-artifact-changed

gitops

no

gitops-build-cancelled

gitops

yes

gitops-build-not-running

gitops

yes

gitops-build-ref-unknown

gitops

yes

gitops-canary-failed

gitops

no

gitops-cluster-failed

gitops

yes

gitops-config-invalid

gitops

no

gitops-controller-locked

gitops

yes

gitops-empty

gitops

no

gitops-env-stop-declared

gitops

no

gitops-git-failed

gitops

yes

gitops-history-unavailable

gitops

yes

gitops-image-unpinned

gitops

no

gitops-image-unresolved

gitops

no

gitops-nix-release-failed

gitops

yes

gitops-not-installed

gitops

no

gitops-pipeline-invalid

gitops

yes

gitops-plan-changed

gitops

yes

gitops-port-unavailable

gitops

no

gitops-promote-not-allowed

gitops

no

gitops-promote-unknown

gitops

no

gitops-push-failed

gitops

yes

gitops-repo-invalid

gitops

no

gitops-request-invalid

gitops

no

gitops-run-interrupted

gitops

yes

gitops-run-unknown

gitops

no

gitops-secret-value

gitops

no

gitops-secrets-present

gitops

no

gitops-state-invalid

gitops

no

gitops-step-failed

gitops

yes

gitops-target-invalid

gitops

no

gitops-target-required

gitops

no

gitops-token-expiring

gitops

no

gitops-traceparent-invalid

gitops

no

gitops-wait-timeout

gitops

yes

grant-expired

build-spec

yes

grant-mismatch

artifacts-input

yes

heavy-command-empty

maintenance

no

heavy-command-missing

maintenance

no

heavy-lock-timeout

maintenance

yes

host-address-unknown

hosts

no

host-build-bad

hosts

no

host-build-invalid

host-build

no

host-build-path-not-staged

build-spec

no

host-busy

hosts

yes

host-cache-unreachable

hosts

yes

host-check-failed

hosts

no

host-check-invalid

hosts

no

host-control-unsupported

hosts

no

host-credentials-exposed

hosts

yes

host-credentials-missing

hosts

yes

host-deploy-failed

hosts

no

host-deploy-interrupted

hosts

no

host-invalid

hosts

no

host-manifest-mismatch

hosts

no

host-narinfo-mismatch

hosts

no

host-not-found

hosts

no

host-output-missing

host-build

no

host-pin-not-found

hosts

no

host-pinned

hosts

no

host-pointer-replayed

hosts

no

host-promotion-missing

hosts

no

host-prune-failed

hosts

yes

host-realise-failed

hosts

yes

host-report-failed

hosts

yes

host-rollback-failed

hosts

no

host-rollback-unavailable

hosts

no

host-rolled-back

hosts

no

host-secret-activation-failed

hosts

yes

host-secret-exists

hosts

no

host-secret-plan-changed

hosts

no

host-secret-undeclared

hosts

no

host-secret-write-failed

hosts

yes

host-signature-invalid

hosts

no

host-ssh-failed

hosts

yes

host-status-missing

hosts

yes

host-switch-failed

hosts

no

host-system-mismatch

hosts

no

host-tool-missing

host-build

no

host-toolchain-checksum

host-build

yes

host-toolchain-failed

host-build

yes

host-toolchain-invalid

host-build

no

host-unreachable

hosts

yes

host-wait-timeout

hosts

yes

identity-mismatch

kubernetes

no

image-declared-twice

images

no

image-digest-mismatch

images

no

image-invalid

build-spec

no

image-mismatch

build-spec

no

image-not-immutable

images

no

image-scan-failed

artifacts-registry

yes

image-scanner-checksum

artifacts-registry

yes

image-vulnerable

artifacts-registry

no

immutable-field-changed

release

no

import-cancelled

artifacts-delivery

yes

import-discovery-failed

import

yes

import-failed

artifacts-delivery

yes

import-manifests-invalid

import

no

import-name-invalid

import

no

import-nothing-selected

import

no

import-output-limit

artifacts-delivery

no

import-output-refused

import

no

import-roundtrip-mismatch

import

no

import-select-invalid

import

no

import-target-invalid

import

no

import-timed-out

artifacts-delivery

yes

infra-apply-failed

infra

no

infra-backend-changed

infra

no

infra-credential-exists

infra

no

infra-credential-incomplete

infra

no

infra-credential-invalid

infra

no

infra-credential-missing

infra

no

infra-credential-part-invalid

infra

no

infra-credential-refused

infra

no

infra-credential-unsafe

infra

no

infra-dns-api-disabled

infra

no

infra-dns-check-failed

infra

yes

infra-dns-record-conflict

infra

no

infra-foreign-resource

infra

no

infra-image-build-invalid

infra

no

infra-image-checksum

infra

no

infra-image-unavailable

infra

yes

infra-image-upload-failed

infra

yes

infra-install-changed

infra

yes

infra-install-failed

infra

no

infra-install-unavailable

infra

no

infra-invalid

infra

no

infra-k3s-not-ready

infra

yes

infra-kubeconfig-invalid

infra

no

infra-load-failed

infra

no

infra-nix-input-unreachable

dev

yes

infra-no-cluster

infra

no

infra-not-applied

infra

no

infra-not-found

infra

no

infra-plan-changed

infra

yes

infra-prompt-required

infra

no

infra-register-changed

infra

yes

infra-s3-key-refused

infra

yes

infra-s3-keys-unsupported

infra

no

infra-server-unknown

infra

no

infra-ssh-missing

infra

no

infra-ssh-unreachable

infra

yes

infra-state-in-git

infra

no

infra-state-locked

infra

yes

infra-state-unencrypted

infra

no

infra-state-unexpected

infra

no

infra-tofu-failed

infra

yes

infra-tofu-missing

infra

no

infra-tofu-unsupported

infra

no

infra-user-data-missing

infra

yes

inputs-io-error

inputs

yes

inputs-lock-invalid

inputs

no

invalid-access-profile

observe

no

invalid-adopt-entry

release

no

invalid-approved-digest

artifacts-input

no

invalid-archive

artifacts-delivery

no

invalid-blob-redirect

artifacts-registry

no

invalid-ca-file

artifacts-input

no

invalid-composition

release

no

invalid-credentials-file

artifacts-input

no

invalid-delivery-input

artifacts-input

no

invalid-docker-config

publish

no

invalid-dry-run-response

kubernetes

yes

invalid-field-ownership-evidence

execution

no

invalid-force

kubernetes

no

invalid-forward

artifacts-input

no

invalid-forward-preference

observe

no

invalid-grant

build-spec

no

invalid-image-stream

artifacts-delivery

no

invalid-inputs

build-spec

no

invalid-inputs-spec

inputs

no

invalid-log-request

observe

no

invalid-metadata-change

kubernetes

no

invalid-node-registry

artifacts-input

no

invalid-or-unavailable-artifact-input

cli

no

invalid-or-unavailable-build-input

build-spec

no

invalid-page

kubernetes

yes

invalid-plan-hash

release

no

invalid-preference-store

observe

no

invalid-propagation

kubernetes

no

invalid-receipt

build-spec

no

invalid-reference

artifacts-input

no

invalid-release-catalog

observe

no

invalid-release-spec

release

no

invalid-request

kubernetes

no

invalid-secret-data

secrets

no

invalid-session-archive

observe

no

invalid-source

artifacts-input

no

invalid-spec

build-spec

no

invalid-ssh-agent-socket

artifacts-input

no

invalid-target

artifacts-input

no

invalid-timeout

artifacts-input

no

invalid-token-realm

artifacts-registry

no

invalid-tool

build-spec

no

invalid-write-response

kubernetes

no

kubeconfig-rejected

kubernetes

no

kubectl-tool-required

artifacts-input

no

limit-exceeded

kubernetes

no

local-port-in-use

observe

yes

manifest-not-found

artifacts-registry

yes

manifest-rejected

artifacts-registry

no

mirror-digest-mismatch

artifacts-registry

no

mirror-manifest-invalid

artifacts-registry

no

mirror-platform-unavailable

artifacts-registry

no

missing-precondition

kubernetes

no

namespace-not-found

kubernetes

no

network-not-granted

build-spec

no

nix-prebuilt-missing

gitops

yes

nix-rehearsal-timeout

gitops

yes

nix-rehearsal-undeclared

gitops

no

nix-rehearsal-unreachable

gitops

yes

no-execution-recorded

release

no

no-op-content-mismatch

execution

no

no-previous-release

release

no

no-release-applied

release

no

no-saved-forwards

observe

no

node-facts-unavailable

host-build

no

node-identity-mismatch

kubernetes

no

node-not-found

kubernetes

no

node-options-on-registry-target

artifacts-input

no

node-page-size-invalid

host-build

no

node-platform-mismatch

host-build

no

node-query-failed

artifacts-delivery

yes

node-registry-required

artifacts-input

no

not-found

kubernetes

no

not-resumable

release

no

not-retained

kubernetes

no

nothing-to-stop

release

no

operation-identity-mismatch

execution

no

operator-state-unavailable

observe

no

orphans-approve-without-prune

release

no

orphans-delete-failed

release

yes

orphans-execution-running

release

yes

orphans-no-release

release

no

orphans-plan-changed

release

yes

output-invalid

build-spec

no

ownership-precondition-failed

execution

no

pipeline-apply-crashloop

pipeline

no

pipeline-apply-not-ready

pipeline

yes

pipeline-check-not-referenceable

pipeline

no

pipeline-checks-failed

pipeline

no

pipeline-checks-unavailable

pipeline

no

pipeline-delivery-failed

pipeline

yes

pipeline-image-not-pinned

pipeline

no

pipeline-image-unknown

pipeline

no

pipeline-invalid

pipeline

no

pipeline-load-failed

pipeline

no

pipeline-locked

pipeline

yes

pipeline-mirror-failed

pipeline

yes

pipeline-mirror-not-pinned

pipeline

no

pipeline-not-delivered

pipeline

no

pipeline-not-found

pipeline

no

pipeline-nothing-to-resume

pipeline

no

pipeline-plan-changed

pipeline

no

pipeline-preview-changed

pipeline

no

pipeline-preview-not-approvable

pipeline

no

pipeline-registry-incompatible

pipeline

no

pipeline-registry-not-ready

pipeline

yes

pipeline-registry-takeover-required

pipeline

no

pipeline-registry-unreadable

pipeline

yes

pipeline-release-refused

pipeline

no

pipeline-resume-changed

pipeline

no

pipeline-stage-error

pipeline

yes

plain-http-not-loopback

artifacts-input

no

plain-http-refused

artifacts-registry

no

plan-blocked

release

no

plan-expired

release

no

plan-intent-mismatch

release

no

plan-not-approved

build-spec

no

plan-not-found

release

no

plan-release-mismatch

release

no

prerollout-claim-exclusive

pipeline

no

prerollout-failed

pipeline

no

prerollout-mount-missing

pipeline

no

prerollout-not-startable

pipeline

no

prerollout-timeout

pipeline

yes

prerollout-unavailable

pipeline

no

profile-conflict

target

no

profile-invalid

target

no

profile-not-found

target

no

promote-dirty

gitops

yes

promote-git-failed

gitops

yes

promote-invalid

gitops

no

promote-lock-failed

gitops

yes

promote-not-in-sync

gitops

yes

promote-plan-changed

gitops

no

promote-push-failed

gitops

yes

promote-refused

observe

no

promotion-history-unreachable

gitops

yes

promotion-input-missing

gitops

no

promotion-not-verified

gitops

yes

provider-error

kubernetes

yes

publish-failed

publish

yes

publish-input-changed

publish

no

publish-invalid

publish

no

publish-not-approved

publish

yes

publish-tag-exists

publish

no

publish-verification-failed

publish

yes

rbac-denied

kubernetes

no

readiness-timeout

execution

no

readiness-unsupported

execution

no

receipt-invalid

images

no

receipt-unmatched

images

no

recreated-object

execution

no

reference-required

artifacts-input

no

registry-delete-disabled

retention

no

registry-digest-mismatch

artifacts-registry

no

registry-error

artifacts-registry

yes

registry-forbidden

artifacts-registry

no

registry-not-oci-v2

artifacts-registry

no

registry-options-on-node-target

artifacts-input

no

registry-response-too-large

artifacts-registry

no

registry-storage-unreadable

retention

yes

registry-unauthorized

artifacts-registry

no

registry-unreachable

artifacts-registry

yes

release-changes-pending

release

no

release-history-malformed

release

no

release-locked

state

yes

release-owner-mismatch

release

no

release-prerollout-unsupported

release

no

release-refused

release

no

release-retention-invalid

release

no

release-retention-off

release

no

release-state-unavailable

release

yes

render-model-invalid

render

no

render-out-refused

render

no

render-target-invalid

render

no

replace-backup-failed

execution

yes

replace-delete-not-observed

execution

no

replace-delete-timeout

execution

yes

replace-entry-not-declared

release

no

replace-precondition-failed

execution

no

replace-recreated-by-another-writer

execution

no

replace-refused

release

no

request-byte-limit

kubernetes

no

resource-content-precondition-failed

execution

no

resource-requires-adoption

release

no

resource-scope-mismatch

release

no

response-byte-limit

kubernetes

no

restore-options-invalid

restore

no

restore-plan-changed

restore

no

restore-point-archive-invalid

restore

no

restore-point-archive-missing

restore

no

restore-point-busy

restore

yes

restore-point-checksum-mismatch

restore

no

restore-point-claim-missing

restore

no

restore-point-claim-too-large

restore

no

restore-point-claim-unknown

restore

no

restore-point-copy-failed

restore

yes

restore-point-exists

restore

yes

restore-point-helper-failed

restore

yes

restore-point-not-verified

restore

no

restore-point-plan-changed

restore

no

restore-point-quiesce-failed

restore

yes

restore-point-restart-failed

restore

yes

restore-point-restore-failed

restore

yes

restore-point-restore-mismatch

restore

yes

restore-point-target-mismatch

restore

no

restore-point-unknown

restore

no

restore-point-writer-unsupported

restore

no

restore-point-writers-remain

restore

yes

restore-refused

observe

no

restore-verify-cleanup-failed

restore

yes

restore-verify-failed

restore

yes

restore-verify-mismatch

restore

yes

restore-verify-plan-changed

restore

no

restore-verify-scratch-exists

restore

yes

restore-verify-scratch-failed

restore

yes

restore-verify-scratch-unsupported

restore

no

restore-verify-workload-missing

restore

no

resume-refused

release

no

retained-adoption-precondition-failed

execution

no

retained-content-differs

release

no

retained-content-precondition-failed

execution

no

retained-resource

execution

no

retention-invalid

retention

no

retention-live-unknown

retention

yes

retention-not-approved

retention

yes

rollout-stopped

gitops

no

rollout-waiting

gitops

yes

rotate-not-valid-for-rollback

release

no

runner-disk-low

maintenance

yes

runner-memory-low

maintenance

yes

runner-tool-missing

maintenance

no

scan-policy-invalid

artifacts-registry

no

scope-mismatch

kubernetes

no

secret-adoption-incomplete

secrets

no

secret-adoption-invalid

secrets

no

secret-dependency-cycle

secrets

no

secret-generator-failed

secrets

yes

secret-import-unavailable

secrets

yes

secret-key-missing

secrets

no

secret-key-required

secrets

no

secret-not-found

secrets

no

secret-not-text

secrets

no

secret-reveal-required

secrets

no

secret-rotation-refused

secrets

no

secret-source-auth-failed

secrets

no

secret-source-failed

secrets

yes

secret-source-not-found

secrets

no

secret-source-timeout

secrets

yes

secret-source-tool-missing

secrets

no

secret-template-invalid

secrets

no

secret-unknown-reference

secrets

no

secrets-age-missing

infra

no

secrets-backup-empty

infra

no

secrets-backup-exists

infra

no

secrets-backup-failed

infra

no

secrets-backup-invalid

infra

no

secrets-backup-key-exists

infra

no

secrets-backup-key-failed

infra

yes

secrets-backup-key-invalid

infra

no

secrets-backup-only-unknown

infra

yes

secrets-backup-recipient-invalid

infra

no

secrets-backup-recipients-missing

infra

no

secrets-backup-single-recipient

infra

no

secrets-invalid

cluster

no

secrets-nothing-declared

infra

yes

secrets-prompt-required

cluster

no

secrets-restore-archive-invalid

infra

no

secrets-restore-decrypt-failed

infra

no

secrets-restore-plan-changed

infra

no

secrets-token-empty

cluster

no

secrets-token-refused

cluster

no

server-target-identity-mismatch

kubernetes

no

sign-failed

publish

yes

sign-file-invalid

publish

no

sign-key-invalid

publish

no

signing-agent-failed

publish

yes

smoke-env-secret

build-spec

no

smoke-failed

build-spec

no

smoke-output-mismatch

build-spec

no

smoke-timed-out

build-spec

no

source-capture-failed

inputs

no

source-changed

artifacts-delivery

yes

source-dirty

inputs

no

source-drift

build-spec

no

source-has-no-commit

inputs

no

source-identity

build-spec

no

source-not-git

inputs

no

source-ref-mismatch

inputs

no

source-ref-not-found

inputs

no

source-subpath-missing

inputs

no

source-unavailable

artifacts-delivery

yes

spec-changed

build-spec

yes

spec-unreadable

build-spec

no

ssh-tool-required

artifacts-input

no

state-access-denied

state

no

state-corrupt

state

no

state-export-invalid

state

no

state-import-changed

state

no

state-import-partial

state

no

state-key-required

state

no

state-layout-mismatch

state

no

state-lock-lost

state

no

state-locked

observe

yes

state-output-exists

state

no

state-too-large

state

no

state-unavailable

state

yes

status-checks-unreadable

access

yes

status-cluster-unreadable

access

yes

status-port-occupied

access

yes

status-release-unreadable

access

no

stored-discovery-missing

release

no

stored-evidence-mismatch

release

no

stored-release-mismatch

release

no

support-bundle-namespace-missing

bundle

no

support-bundle-out-refused

bundle

no

support-bundle-unreachable

bundle

yes

support-bundle-write-refused

bundle

no

takeover-conflict

kubernetes

no

target-mismatch

kubernetes

no

target-refused

target

no

targets-input-required

hosts

no

timed-out

artifacts-delivery

yes

too-many-redirects

artifacts-registry

yes

tool-pin-mismatch

artifacts-input

no

train-branch-unknown

train

no

train-branches-required

train

no

train-busy

train

yes

train-checkout-dirty

train

yes

train-compare-invalid

train

no

train-git-failed

train

yes

train-host-unavailable

train

yes

train-images-failed

train

yes

train-init-exists

train

no

train-init-invalid

train

no

train-interrupted

train

no

train-invalid

train

no

train-load-failed

train

no

train-merge-conflict

train

no

train-merge-failed

train

no

train-not-fast-forward

train

no

train-not-found

train

no

train-notify-failed

train

yes

train-publish-failed

train

yes

train-push-failed

train

yes

train-push-needs-promote

train

no

train-queue-cancelled

train

no

train-queue-not-found

train

no

train-queue-not-waiting

train

no

train-repo-invalid

train

no

train-retire-invalid

train

no

train-run-cancelled

train

yes

train-run-failed

train

yes

train-run-not-found

train

no

train-run-unknown

train

no

train-spec-invalid

train

no

train-step-failed

train

no

train-step-timeout

train

yes

train-telemetry-failed

train

yes

train-telemetry-unavailable

train

no

train-unknown

train

no

train-wait-timeout

train

yes

transport-error

kubernetes

yes

ui-access-failed

access

yes

ui-access-port-conflict

access

no

ui-approval-mismatch

observe

no

ui-assets-unavailable

observe

no

ui-controller-absent

cluster-ui

yes

ui-evaluation-failed

observe

no

ui-execution-failed

observe

no

ui-idempotency-conflict

observe

no

ui-install-access-unsupported

cluster-ui

no

ui-install-image-unpinned

cluster-ui

no

ui-install-node-unknown

cluster-ui

no

ui-invalid-request

observe

no

ui-logs-unavailable

observe

yes

ui-not-found

observe

no

ui-observation-unavailable

observe

yes

ui-operation-conflict

observe

yes

ui-operation-interrupted

observe

no

ui-operation-unavailable

observe

no

ui-plan-stale

observe

no

ui-prerollout-unsupported

observe

no

ui-request-rejected

observe

no

ui-state-invalid

observe

no

ui-sync-target-unknown

cluster-ui

no

ui-sync-unavailable

cluster-ui

yes

uid-version-precondition-failed

execution

no

undiscovered-api

kubernetes

no

unknown-error-code

cli

no

unknown-execution

release

no

unknown-forward

observe

no

unknown-release

release

no

unknown-rotate-secret

release

no

unknown-shortcut

observe

no

unknown-source

inputs

no

upload-rejected

artifacts-registry

yes

verification-failed

artifacts-delivery

yes

versioned-secret-generated

release

no

watch-no-run

maintenance

yes

watch-timeout

maintenance

yes

Command-line contract (any command)

cycle-options-invalid

Cycle report options invalid. piceli cycle report got a --since that is neither a duration (30m, 24h, 7d, 2w) nor an ISO time, or both --json and --markdown.

  • Fix: Pass --since 24h (or an ISO time such as 2026-10-01T00:00:00Z) and one of --json or --markdown.

  • Retry-safe: no

deploy-flags-conflict

Conflicting deploy flags. piceli deploy got flags that cannot be combined (--resume with planning flags or --ref, --approve with --plan or --auto-approve, --plan with --auto-approve, --approve-if-policy with --plan, --approve, --auto-approve, --resume or --apply, --out without --plan, --apply without --approve or with planning flags, or no pipeline).

  • Fix: Use --plan (optionally --out FILE), then --approve HASH (with the same --ref) or --apply FILE --approve HASH; or --auto-approve alone; or --resume alone (it reuses the run’s commits).

  • Retry-safe: no

deploy-stage-unknown

Unknown stage. --until names a stage that does not exist.

  • Fix: Use one of inputs, build, deliver, prerollout (with a pre-rollout check), backup (with restore_points), plan, apply or checks.

  • Retry-safe: no

explain-run-needs-spec

Which state holds the run?. piceli explain --run ID reads a past execution from a release’s local state, so it needs --spec (and takes no error code).

  • Fix: Run piceli explain --run ID --spec release.toml (or --spec MODULE:ATTR for a pipeline), or piceli release status --spec … --run ID.

  • Retry-safe: no

invalid-or-unavailable-artifact-input

Invalid or unavailable artifact input. An artifacts command could not read or validate one of its inputs (a plan, layout, spec or source file). The detail is withheld because it could contain private paths.

  • Fix: Check that every path passed to the command exists, is readable and holds the documented format; run the matching preview command first.

  • Retry-safe: no

unknown-error-code

Unknown error code. piceli explain was given a code that is not in the registry.

  • Fix: Check the spelling; piceli help-json and docs/reference/errors.md list every code.

  • Retry-safe: no

Artifact delivery inputs (piceli artifacts deliver)

credentials-file-not-private

Credentials file is readable by others. The registry credentials file grants permissions to group or others.

  • Fix: Run chmod 600 on the credentials file.

  • Retry-safe: no

docker-socket-required

Local Docker socket required. The Docker endpoint is not an absolute unix:// socket (TCP and SSH endpoints are refused).

  • Fix: Pass --docker-socket /absolute/path/docker.sock or point DOCKER_HOST at a unix socket.

  • Retry-safe: no

docker-tool-required

docker CLI required. The delivery needs the docker CLI and none was found or it is not executable.

  • Fix: Install docker or pass --docker PATH (and --docker-sha256 to pin it).

  • Retry-safe: no

forward-options-incomplete

Port-forward options incomplete. --via-forward needs an explicit --kubeconfig (absolute), --context and --namespace.

  • Fix: Add --kubeconfig PATH --context NAME --namespace NAME; Piceli never uses an ambient kube context or the file’s current-context.

  • Retry-safe: no

forward-options-without-forward

Port-forward options without –via-forward. --namespace, --kubeconfig, --context or --kubectl* were given without --via-forward.

  • Fix: Add --via-forward deployment/NAME or remove those options.

  • Retry-safe: no

forward-target-not-loopback

Forwarded target is not loopback. With --via-forward, the oci:// target must be a loopback address with an explicit port.

  • Fix: Use --to oci://127.0.0.1:PORT/repository.

  • Retry-safe: no

grant-mismatch

Delivery grant mismatch. The delivery grant does not name this exact target, or it expired before the delivery started.

  • Fix: Run the delivery again (a fresh grant is created per run); raise --timeout if it expired.

  • Retry-safe: yes

invalid-approved-digest

Invalid approved digest. --approve-digest is not sha256: followed by 64 lowercase hex characters.

  • Fix: Pass the image config digest: docker image inspect --format '{{.Id}}' with Docker’s classic image store; with its containerd image store the Config of manifest.json in docker image save (docs/node_delivery.md).

  • Retry-safe: no

invalid-ca-file

Invalid CA file. --ca-file is not a readable PEM file.

  • Fix: Pass the registry’s CA certificate bundle as a PEM file.

  • Retry-safe: no

invalid-credentials-file

Invalid registry credentials file. --credentials is not a small regular JSON file holding {"username": …, "password": …} or {"token": …}.

  • Fix: Write the credentials file in one of the documented shapes.

  • Retry-safe: no

invalid-delivery-input

Invalid delivery input. The delivery could not be set up or failed on an input it could not validate (the detail is withheld because it could contain private paths).

  • Fix: Re-check every delivery option; run with the same inputs against a local target first to isolate the problem.

  • Retry-safe: no

invalid-forward

Invalid port-forward settings. A --via-forward setting (namespace, target, remote port or context) is invalid.

  • Fix: Pass --via-forward deployment/NAME with a valid --namespace, --forward-remote-port and optional --context.

  • Retry-safe: no

invalid-node-registry

Invalid node registry address. --node-registry is not host[:port].

  • Fix: Pass the address the node pulls from, e.g. 127.0.0.1:5000.

  • Retry-safe: no

invalid-reference

Invalid image reference. --ref is not a tagged image name (digests and option-like values are refused).

  • Fix: Pass a tagged name such as my-app:1.0.

  • Retry-safe: no

invalid-source

Invalid delivery source. --image is not a valid local image reference, or --archive is not a usable file.

  • Fix: Pass exactly one of --image NAME[:TAG] or --archive PATH (an OCI or docker-save tar).

  • Retry-safe: no

invalid-ssh-agent-socket

Invalid ssh-agent socket. --ssh-agent-socket is not an absolute path.

  • Fix: Pass the absolute path of the agent socket ($SSH_AUTH_SOCK).

  • Retry-safe: no

invalid-target

Invalid delivery target. --to is not a supported target (oci://host[:port]/repo[:tag], ssh://user@host, docker://container), or the grant for it could not be built.

  • Fix: Fix --to; see docs/node_delivery.md for the accepted forms.

  • Retry-safe: no

invalid-timeout

Invalid timeout. --timeout is not a positive number within the allowed bounds.

  • Fix: Pass a positive number of seconds.

  • Retry-safe: no

kubectl-tool-required

kubectl CLI required. --via-forward needs kubectl and none was found or it is not executable.

  • Fix: Install kubectl or pass --kubectl PATH (and --kubectl-sha256 to pin it).

  • Retry-safe: no

node-options-on-registry-target

Node options on a registry target. --ref, --ssh* or --ssh-agent-socket were given with an oci:// target.

  • Fix: Remove the node-import options, or deliver to an ssh:// / docker:// target.

  • Retry-safe: no

node-registry-required

Node registry address required. A delivery through --via-forward cannot derive the address nodes pull from.

  • Fix: Add --node-registry host[:port] (the address as seen from the node).

  • Retry-safe: no

plain-http-not-loopback

Plain HTTP to a non-loopback registry. The registry target asks for plain HTTP but its host is neither a loopback address nor an in-cluster Service name (name.namespace.svc).

  • Fix: Use TLS for remote registries, or reach the registry through --via-forward.

  • Retry-safe: no

reference-required

Image reference required. The archive has no single image name, so the node cannot name the import.

  • Fix: Add --ref my-app:TAG.

  • Retry-safe: no

registry-options-on-node-target

Registry options on a node target. Registry or forward options were given with an ssh:// or docker:// target.

  • Fix: Remove the registry options, or deliver to an oci:// target.

  • Retry-safe: no

ssh-tool-required

ssh CLI required. An ssh:// delivery needs the ssh client and none was found or it is not executable.

  • Fix: Install OpenSSH or pass --ssh PATH (and --ssh-sha256 to pin it).

  • Retry-safe: no

tool-pin-mismatch

Tool differs from its pin. A pinned tool binary (docker, ssh, kubectl) does not match the given SHA-256, or changed during the operation.

  • Fix: Check which binary is on PATH; update the --*-sha256 pin only if the change is expected.

  • Retry-safe: no

Artifact delivery outcomes (delivery receipts)

cancelled

Cancelled. The operation was cancelled (interrupt, stop request or cancelled execution).

  • Fix: Re-run the command when ready; recoverable executions can be resumed with piceli release resume.

  • Retry-safe: yes

command-cancelled

Build command cancelled. The pinned external command was cancelled before it finished.

  • Fix: Run it again.

  • Retry-safe: yes

command-failed

Build command failed. The pinned external command exited with a non-zero status.

  • Fix: Fix the build inputs, preview again and approve the new plan.

  • Retry-safe: no

command-output-limit

Build command output limit. The pinned external command printed more output than allowed.

  • Fix: Reduce the command’s output, then run it again.

  • Retry-safe: no

command-timed-out

Build command timed out. The pinned external command ran longer than --timeout.

  • Fix: Retry with a larger --timeout.

  • Retry-safe: yes

digest-mismatch

Image does not match the approved digest. The streamed or stored image’s config digest differs from --approve-digest.

  • Fix: Re-inspect the image and approve its actual config digest, or rebuild the image you meant.

  • Retry-safe: no

forward-port-in-use

Local forward port in use. The local port for kubectl port-forward is already taken.

  • Fix: Free the port or pick another one in the oci://127.0.0.1:PORT/… target.

  • Retry-safe: yes

forward-unavailable

Port-forward unavailable. kubectl port-forward to the registry did not become ready.

  • Fix: Check that the registry Deployment is ready and that you may pods/portforward; then retry.

  • Retry-safe: yes

import-cancelled

Node import cancelled. The node import was interrupted.

  • Fix: Re-run the delivery.

  • Retry-safe: yes

import-failed

Node import failed. ctr images import on the node exited with an error.

  • Fix: Check free disk space and containerd on the node; then retry.

  • Retry-safe: yes

import-output-limit

Node import output too large. ctr images import wrote more output than allowed.

  • Fix: Check the node’s containerd; report the problem if it persists.

  • Retry-safe: no

import-timed-out

Node import timed out. ctr images import did not finish within --timeout.

  • Fix: Retry with a larger --timeout, or prefer registry delivery for large images.

  • Retry-safe: yes

invalid-archive

Invalid image archive. The --archive file is not a valid OCI layout or docker-save tar within the size bounds.

  • Fix: Recreate it with docker save or an OCI build and check it with piceli artifacts inspect.

  • Retry-safe: no

invalid-image-stream

Invalid image stream. The image streamed by docker save could not be parsed or exceeded its bounds.

  • Fix: Check that the image exists locally and that docker works; then retry.

  • Retry-safe: no

node-query-failed

Node query failed. Listing or inspecting images on the node (ctr) failed.

  • Fix: Check SSH/docker access to the node and that containerd runs; then retry.

  • Retry-safe: yes

source-changed

Image source changed during delivery. The image was read twice (plan, then upload) and the second read differed.

  • Fix: Make sure nothing retags or rebuilds the image during delivery, then retry.

  • Retry-safe: yes

source-unavailable

Image source unavailable. The local image or archive could not be read (for example docker failed to save it).

  • Fix: Check that the image exists (docker image ls) and the daemon is running, then retry.

  • Retry-safe: yes

timed-out

Timed out. The operation did not finish within --timeout.

  • Fix: Retry with a larger --timeout; only missing layers are resent.

  • Retry-safe: yes

verification-failed

Post-delivery verification failed. After the transfer, the node or registry did not report the approved image under the expected name.

  • Fix: Inspect the target (crictl images or the registry) and retry the delivery.

  • Retry-safe: yes

OCI registry transfers (piceli artifacts deliver --to oci://…)

blob-digest-mismatch

Uploaded blob digest mismatch. The registry stored a blob whose digest differs from what was sent.

  • Fix: Retry; if it persists, the registry or a proxy is altering content.

  • Retry-safe: yes

blob-not-found

Blob not found. The source registry has no blob for a digest its manifest references (404).

  • Fix: Check the reference and the registry; mirror another digest if the registry pruned this one.

  • Retry-safe: no

blob-source-truncated

Blob source truncated. A layer ended before its declared size while it was uploaded.

  • Fix: Make sure nothing changes the image during delivery, then retry.

  • Retry-safe: yes

cross-origin-location-refused

Cross-origin redirect refused. The registry redirected an upload to another origin.

  • Fix: Configure the registry to accept uploads on its own address.

  • Retry-safe: no

image-scan-failed

Image scan could not run. The vulnerability database could not be fetched or is too old, the scanner failed, or its report could not be read. Scanning fails closed: the image was not pushed, recorded or copied.

  • Fix: Give the build or copy HTTPS access to github.com and the Grype database server, then run again. To build without a scan, say so: [scan] enabled = false or --no-scan (recorded as "scan": "off").

  • Retry-safe: yes

image-scanner-checksum

Scanner download does not match its pin. The Grype tarball’s sha256 is not the one Piceli pins, so nothing was installed.

  • Fix: Run again; if it repeats, check the network path to github.com (a proxy that rewrites downloads).

  • Retry-safe: yes

image-vulnerable

Image has a fixable critical vulnerability. The scan (0.94.0, Grype) of a built, mirrored or copied image found a Critical vulnerability that has a fixed version and no live waiver. details.images lists each image, digest and platform with its findings (id, severity, package, installed, fixed_in, waived, waiver_expired). Nothing was pushed, recorded or copied.

  • Fix: Update the package or the base image to the fixed version, or add a waiver with a reason and an end date: [scan] ignore = [{ id = "CVE-…", reason = "…", until = "YYYY-MM-DD" }].

  • Retry-safe: no

invalid-blob-redirect

Invalid blob redirect. The registry redirected a blob download to an address that is not an http(s) URL.

  • Fix: Check the registry; a proxy in between may rewrite redirects.

  • Retry-safe: no

invalid-token-realm

Invalid token realm. The registry’s bearer-token challenge names an unusable realm.

  • Fix: Check the registry’s authentication configuration.

  • Retry-safe: no

manifest-not-found

Manifest not found. The registry has no manifest for the expected digest after the push.

  • Fix: Retry the delivery; check that the registry keeps pushed manifests.

  • Retry-safe: yes

manifest-rejected

Manifest rejected. The registry refused the image manifest.

  • Fix: Check that the registry accepts OCI or Docker v2 manifests of this type.

  • Retry-safe: no

mirror-digest-mismatch

Mirrored image does not match its digest. The source (or delivery) registry served manifest or config bytes whose sha256 is not the pinned digest; nothing unverified is pushed.

  • Fix: Check that the reference names the image you meant and that the registry is trustworthy; do not retry against the same source unchanged.

  • Retry-safe: no

mirror-manifest-invalid

Mirrored manifest not understood. The pinned digest names a document that is not an OCI or Docker image manifest or index (or one that is too large).

  • Fix: Pin the digest of an image manifest or image index (docker buildx imagetools inspect IMAGE).

  • Retry-safe: no

mirror-platform-unavailable

Image has no manifest for the node platform. The mirrored image index holds no manifest for the registry node’s os/architecture, or a single-platform image was built for another platform.

  • Fix: Pin an image (or index) that supports the node’s platform (see kubectl get node NODE -o jsonpath='{.status.nodeInfo.architecture}').

  • Retry-safe: no

plain-http-refused

Plain HTTP refused. The registry tried to move the transfer to plain HTTP on a non-loopback host.

  • Fix: Use TLS on the registry.

  • Retry-safe: no

registry-digest-mismatch

Registry manifest digest mismatch. The digest the registry reports for the pushed manifest differs from the one computed locally.

  • Fix: Retry; if it persists, the registry is rewriting manifests and cannot be used.

  • Retry-safe: no

registry-error

Registry error. The registry answered with an unexpected HTTP status.

  • Fix: Check the registry’s health and logs, then retry.

  • Retry-safe: yes

registry-forbidden

Registry access forbidden. The registry answered 403: the credentials may not push to this repository.

  • Fix: Use credentials with push rights on the repository.

  • Retry-safe: no

registry-not-oci-v2

Not an OCI distribution registry. The endpoint does not implement the OCI distribution /v2/ API.

  • Fix: Point --to at a registry (host, port and scheme).

  • Retry-safe: no

registry-response-too-large

Registry response too large. A registry response exceeded Piceli’s size bound.

  • Fix: Check that --to points at a real registry.

  • Retry-safe: no

registry-unauthorized

Registry authentication failed. The registry answered 401: credentials are missing or wrong.

  • Fix: Pass --credentials FILE with valid credentials.

  • Retry-safe: no

registry-unreachable

Registry unreachable. The registry could not be contacted (DNS, TCP or TLS failure), even after the retries with backoff (0.78.0).

  • Fix: The receipt’s error (and the CLI line) names the side, host, request and exception; check that address, network and TLS settings (--ca-file), then retry.

  • Retry-safe: yes

scan-policy-invalid

Scan policy cannot be read. A [scan] table or --scan-policy file is malformed: an unknown key, a bad id, an empty reason, a date that is not YYYY-MM-DD, or an id listed twice.

  • Fix: Correct the table; each waiver needs id, reason and until.

  • Retry-safe: no

too-many-redirects

Too many blob redirects. A blob download was redirected more than five times.

  • Fix: Check the registry and any proxy in between, then retry.

  • Retry-safe: yes

upload-rejected

Upload rejected. The registry refused a blob upload.

  • Fix: Check the registry’s storage and quota, then retry.

  • Retry-safe: yes

Containerized builds (piceli artifacts build-spec)

build-failed

Build step failed. A docker build step exited with an error (exit 1; the failing steps are listed, never their output).

  • Fix: Re-run with --log FILE and read the step output there.

  • Retry-safe: no

build-timed-out

Build step timed out. A docker build step exceeded its time budget (exit 1).

  • Fix: Retry with a larger --max-seconds.

  • Retry-safe: yes

builder-not-approved

Builder not approved. --approve-builder does not match the builder image digest in the spec.

  • Fix: Review the builder in build-spec preview and approve its exact digest.

  • Retry-safe: no

context-budget-exceeded

Build context over budget. A context has more files or bytes than its budget.

  • Fix: Narrow the include patterns or raise the context budget in the spec.

  • Retry-safe: no

context-changed

Build context changed. A context file (or the Dockerfile) changed between scanning and staging.

  • Fix: Stop editing the sources during the build, then retry.

  • Retry-safe: yes

context-empty

Build context empty. A context’s include patterns matched no files.

  • Fix: Fix the include patterns.

  • Retry-safe: no

context-missing

Build context missing. A build context root is not a readable real directory.

  • Fix: Fix the context path in the spec.

  • Retry-safe: no

docker-unavailable

Docker unavailable. The docker CLI, daemon, buildx or context is not usable.

  • Fix: Check docker buildx version and docker context show, then retry.

  • Retry-safe: yes

dockerfile-unpinned

Dockerfile not pinned. A Dockerfile uses an unpinned base image, COPY --from, remote ADD or RUN --mount source, or does not build FROM the builder argument.

  • Fix: Pin every image by digest (image@sha256:…) and build FROM the builder argument; see docs/containerized_builds.md.

  • Retry-safe: no

grant-expired

Build grant expired. The build ran past --max-seconds.

  • Fix: Retry with a larger --max-seconds.

  • Retry-safe: yes

host-build-path-not-staged

Command names a path its context does not stage. A host build command names a path inside a context’s staging directory (<context>/...) that the context’s include globs do not select (or its exclude globs remove), so the file would be missing when the command runs. The message names the command, the path and the context’s include list.

  • Fix: Add the path to context.<name>.include, or fix the path in the command.

  • Retry-safe: no

image-invalid

Built image invalid. The built image could not be inspected or has an invalid ID.

  • Fix: Check the build log (--log).

  • Retry-safe: no

image-mismatch

Built image mismatch. The loaded image differs from the build result or has another platform.

  • Fix: Check the declared platform and that nothing else loads images concurrently.

  • Retry-safe: no

invalid-grant

Invalid build grant. The approval arguments (--approve-builder, --approve-plan, --max-seconds) are malformed.

  • Fix: Copy the builder digest and plan hash from build-spec preview; use a positive --max-seconds.

  • Retry-safe: no

invalid-inputs

Invalid inputs spec or lock. The inputs.toml or inputs lock referenced by the build could not be read or verified.

  • Fix: Run piceli inputs verify --spec inputs.toml --lock inputs.lock to see the problem.

  • Retry-safe: no

invalid-or-unavailable-build-input

Invalid or unavailable build input. A build input could not be read or validated (the detail is withheld because it could contain private paths).

  • Fix: Run build-spec preview with the same arguments and check every path it names.

  • Retry-safe: no

invalid-receipt

Invalid build receipt. The file is not a complete piceli.build-receipt.v1 receipt.

  • Fix: Re-run the build to produce a new receipt.

  • Retry-safe: no

invalid-spec

Invalid build spec. The build spec (or a build context in it) is invalid: unknown keys, bad patterns, budgets or paths.

  • Fix: Run piceli artifacts build-spec preview --spec build.toml and fix the spec; see docs/containerized_builds.md.

  • Retry-safe: no

invalid-tool

Invalid docker pin. Only one of --docker and --docker-sha256 was given.

  • Fix: Pass both, or neither to use docker from PATH.

  • Retry-safe: no

network-not-granted

Network not granted. The spec declares network access but --allow-network was not given.

  • Fix: Add --allow-network if the build may use the network.

  • Retry-safe: no

output-invalid

Build output invalid. The build produced a missing, undeclared, oversized or symlinked output, or the output directory is unusable.

  • Fix: Make the build produce exactly the declared outputs into a clean --output-dir.

  • Retry-safe: no

plan-not-approved

Build plan not approved. --approve-plan does not match the current build plan hash (the spec or inputs changed).

  • Fix: Run build-spec preview again and approve the new plan hash.

  • Retry-safe: no

smoke-env-secret

Smoke env looks like a secret reference. A smoke env value looks like a reference to secret material (for example secret:// or vault://). Smoke env is recorded in previews, plans and receipts, so it may hold plain, non-secret values only.

  • Fix: Give the smoke check a plain value (or a self-test mode that needs no secret); keep secrets in the release’s secret store.

  • Retry-safe: no

smoke-failed

Smoke check failed. An image’s smoke command exited with an unexpected code; no receipt was written.

  • Fix: Inspect the build log (--log), fix the image or the smoke declaration, rebuild.

  • Retry-safe: no

smoke-output-mismatch

Smoke output did not match. An image’s smoke command exited as expected, but expect_stdout or expect_stderr was not found in the first 256 KiB of that stream; no receipt was written. The failed step lists the streams under unmatched.

  • Fix: Read the excerpt on stderr or the build log (--log), then fix the image or the smoke pattern (a Python regular expression, searched per line with re.MULTILINE), rebuild.

  • Retry-safe: no

smoke-timed-out

Smoke check timed out. An image’s smoke command exceeded timeout_seconds; the container was removed.

  • Fix: Fix the image or raise timeout_seconds (max 600), rebuild.

  • Retry-safe: no

source-drift

Source changed. A declared source differs from its lock, or changed during the build. Drift is currently checked over the whole repository, not only the build context. A host or Job build names the source, the field, and both values after the code (0.79.0).

  • Fix: Commit or stash the changes and record a new lock with piceli inputs record.

  • Retry-safe: no

source-identity

Source identity unavailable. A declared source could not be identified with git (not a work tree, git failed). A host or Job build names the source and the failed check after the code in its log and in piceli gitops builds (0.79.0).

  • Fix: Read the reason after the code, or run piceli inputs record --spec inputs.toml to see which source fails.

  • Retry-safe: no

spec-changed

Build spec changed during the build. build.toml’s normalized declaration changed while the build ran.

  • Fix: Stop editing the spec during a build, then run it again.

  • Retry-safe: yes

spec-unreadable

Build spec unreadable. --spec could not be read.

  • Fix: Check the path and its permissions.

  • Retry-safe: no

Kubernetes API access (release plan/apply, discovery)

api-unavailable

Kubernetes API unavailable. The API server answered 429 or 5xx, or an API group could not be discovered.

  • Fix: Wait for the API server to recover, then retry.

  • Retry-safe: yes

cluster-identity-unreadable

Cluster identity unreadable. The kube-system namespace (the cluster identity) could not be read, or the answer had no UID.

  • Fix: Check that the context can get namespaces (and pinned nodes), then retry.

  • Retry-safe: yes

conflict

Kubernetes write conflict. The API server answered 409: the object changed since it was observed.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

deadline-exceeded

Deadline exceeded. A request or the whole execution ran past its time limit.

  • Fix: Retry; for an interrupted apply use piceli release resume, or raise [execution] max_seconds.

  • Retry-safe: yes

dry-run-limit-exceeded

Too many dry runs. The plan has more changed-candidate objects than the per-plan limit of server dry runs (256); the rest are compared literally.

  • Fix: Nothing to fix for correctness; objects past the limit may be listed as apply although unchanged. Split the release to get exact no-ops.

  • Retry-safe: no

dry-run-placeholder-image

Dry run skipped for a placeholder image. A piceli deploy --plan release preview was computed before the images were built or delivered. Objects that carry a placeholder image (pending-build/pending-delivery) are never sent to the cluster, not even as a server dry run, so they are compared literally and listed as apply.

  • Fix: Nothing to fix. After delivery, piceli deploy MODULE:ATTR --plan computes the real release plan with server dry runs.

  • Retry-safe: no

identity-mismatch

Object identity mismatch. The API server returned an object whose kind, name or namespace differs from the request.

  • Fix: Plan again; if it persists, report it.

  • Retry-safe: no

invalid-dry-run-response

Invalid dry-run response. The API server’s answer to a server-side dry run did not describe the requested object. The object gets no dry-run evidence and is compared literally.

  • Fix: Nothing to fix for the plan (it may list the object as apply); if it persists, report the API server version.

  • Retry-safe: yes

invalid-force

Invalid force flag. A create was requested with force ownership, which is never allowed.

  • Fix: This is an internal contract violation; report it.

  • Retry-safe: no

invalid-metadata-change

Invalid metadata change. A metadata-only write was asked to set a non-string value or one of Piceli’s own annotations.

  • Fix: Fix the composition’s labels or annotations.

  • Retry-safe: no

invalid-page

Invalid discovery page. The API server returned an inconsistent list page.

  • Fix: Plan again; if it persists, report the API server version.

  • Retry-safe: yes

invalid-propagation

Invalid delete propagation. Internal guard: a delete used a propagation policy other than Background or Orphan.

  • Fix: Report a bug; this should not happen.

  • Retry-safe: no

invalid-request

Kubernetes rejected the object. The API server answered 422: the manifest is invalid for this cluster.

  • Fix: Fix the composition (field names, API versions); admission dry-run in plan shows the object.

  • Retry-safe: no

invalid-write-response

Invalid write response. The API server’s answer to a write did not confirm the requested object and ownership.

  • Fix: Inspect the object with a read-only tool; when it matches the release, run piceli release resume --spec release.toml, otherwise plan again. A write that never reached the object (still absent, or unchanged) is sent again by a resume once [execution] write_settle_seconds (60 s) have passed.

  • Retry-safe: no

kubeconfig-rejected

Kubeconfig rejected. The kubeconfig or context is missing, unreadable or uses a feature Piceli refuses (exec credentials, proxies, disabled TLS verification, a non-https server).

  • Fix: Pass a kubeconfig file and an explicit context with a static certificate or token over https.

  • Retry-safe: no

limit-exceeded

Discovery limit exceeded. Discovery found more objects or bytes than [discovery] allows.

  • Fix: Raise the [discovery] limits in the spec, then plan again.

  • Retry-safe: no

missing-precondition

Missing write precondition. An update was requested without the object’s UID and resourceVersion.

  • Fix: This is an internal contract violation; report it.

  • Retry-safe: no

namespace-not-found

Namespace not found. The target namespace does not exist; Piceli never creates it implicitly.

  • Fix: Create the namespace explicitly, then retry.

  • Retry-safe: no

node-identity-mismatch

Node identity mismatch. A node’s UID differs from the one pinned in the spec.

  • Fix: Check the kubeconfig and context; update the pinned uid only if the node was replaced.

  • Retry-safe: no

node-not-found

Node not found. A node named in [target.nodes] does not exist.

  • Fix: Fix the node name in the spec, or remove the entry.

  • Retry-safe: no

not-found

Kubernetes object not found. The API server answered 404.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

not-retained

Object is not retained. A metadata-only adoption was requested for a kind that is not retained (only PVCs and Secrets are).

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

provider-error

Provider error. The Kubernetes provider failed in an unclassified way during discovery.

  • Fix: Plan again; if it persists, report it.

  • Retry-safe: yes

rbac-denied

Kubernetes access denied. The API server answered 401 or 403 for a request the plan or apply needs.

  • Fix: Grant the identity in the spec’s kubeconfig the needed verbs in the namespace, then plan again.

  • Retry-safe: no

request-byte-limit

Request too large. An object is larger than Piceli’s request bound.

  • Fix: Reduce the object’s size (for example move data out of a ConfigMap).

  • Retry-safe: no

response-byte-limit

Response too large. An API response exceeded Piceli’s response bound.

  • Fix: Reduce the objects’ size; if a write was in flight, use piceli release resume.

  • Retry-safe: no

scope-mismatch

Scope mismatch. A namespaced object was declared without the target namespace, or a cluster-scoped one with a namespace.

  • Fix: Fix the object’s namespace in the composition.

  • Retry-safe: no

server-target-identity-mismatch

Cluster identity mismatch. The cluster or namespace UID differs from the one pinned in the spec, or the namespace is being deleted.

  • Fix: Check that the kubeconfig and context point at the intended cluster; update cluster_uid/namespace_uid only if the cluster was rebuilt.

  • Retry-safe: no

takeover-conflict

Takeover conflict. Adopting an object by takeover kept conflicting with another field manager.

  • Fix: Stop the other writer (controller, script) or plan the adoption again.

  • Retry-safe: no

target-mismatch

Target mismatch. A request named a cluster or namespace other than the provider’s configured target.

  • Fix: Check [target] in the spec; plan again.

  • Retry-safe: no

transport-error

Kubernetes transport error. The connection to the API server failed.

  • Fix: Check network access to the cluster, then retry (a write may be ambiguous: use release resume).

  • Retry-safe: yes

undiscovered-api

API not discovered. A list request used an API resource that discovery did not return.

  • Fix: Check that the CRD or API group is installed; plan again.

  • Retry-safe: no

Plan execution preconditions (release apply/resume/rollback)

absence-precondition-failed

Object appeared. The plan creates an object that now exists (someone created it after planning).

  • Fix: Run piceli release plan again and approve the new plan hash. Add --adopt Kind/name if the release should take it over.

  • Retry-safe: no

ambiguous-content-blocked

Ambiguous write content differs. A previous write’s result is unknown and the live content differs from the plan.

  • Fix: Inspect the object with a read-only tool; when it matches the release, run piceli release resume --spec release.toml, otherwise plan again. A write that never reached the object (still absent, or unchanged) is sent again by a resume once [execution] write_settle_seconds (60 s) have passed.

  • Retry-safe: no

ambiguous-delete-blocked

Ambiguous delete blocked. A previous delete’s result is unknown and the object still exists.

  • Fix: Inspect the object with a read-only tool; when it matches the release, run piceli release resume --spec release.toml, otherwise plan again. A write that never reached the object (still absent, or unchanged) is sent again by a resume once [execution] write_settle_seconds (60 s) have passed.

  • Retry-safe: no

ambiguous-write-blocked

Ambiguous write blocked. A previous write’s result is unknown and the live object does not prove it was ours.

  • Fix: Inspect the object with a read-only tool; when it matches the release, run piceli release resume --spec release.toml, otherwise plan again. A write that never reached the object (still absent, or unchanged) is sent again by a resume once [execution] write_settle_seconds (60 s) have passed.

  • Retry-safe: no

applied-resource-drift

Applied object drifted. An object changed after Piceli applied it (another writer is active).

  • Fix: Stop the other writer, then plan again.

  • Retry-safe: no

apply-crashloop

Workload cannot start. While waiting for readiness, a pod of the new revision was in CrashLoopBackOff (Init:CrashLoopBackOff), ImagePullBackOff, ErrImagePull, InvalidImageName, CreateContainerConfigError, CreateContainerError or RunContainerError, or restarted [execution] crash_restarts times (a failed Job or Pod counts too), so the apply failed at once instead of at the deadline. The result’s diagnosis names each workload, container, reason, exit code, restart count, the last log lines (redacted) and the latest events.

  • Fix: Read the causes (piceli release status --spec … --run EXECUTION_ID shows them again); fix the image, command, config or Secret and plan again, or piceli release rollback previous. An app that is expected to crash while its dependencies start can set [execution] fail_fast = false.

  • Retry-safe: no

authorization-expired

Authorization expired. The approved plan’s authorization expired before the execution finished.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

compensation-already-started

Compensation already started. The execution is being compensated (undone) and cannot continue forward.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

deleted-resource-reappeared

Deleted object reappeared. An object the execution deleted exists again.

  • Fix: Find the controller or script that recreates it, then plan again.

  • Retry-safe: no

field-owner-precondition-failed

Field owners changed. The set of field managers on the object changed since planning.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

generation-precondition-failed

Object generation changed. The object’s spec changed since planning.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

invalid-field-ownership-evidence

Invalid field-ownership evidence. The object’s managedFields could not be read.

  • Fix: Plan again; if it persists, report the API server version.

  • Retry-safe: no

no-op-content-mismatch

No-op object drifted. An object planned as unchanged no longer contains the declared content.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

operation-identity-mismatch

Operation identity mismatch. The object carries another execution’s operation annotation.

  • Fix: Make sure only one apply runs at a time, then plan again.

  • Retry-safe: no

ownership-precondition-failed

Ownership changed. The object is not owned by this release (or another owner claimed it) and the plan does not adopt it.

  • Fix: Run piceli release plan again and approve the new plan hash. Add --adopt Kind/name to take it over explicitly.

  • Retry-safe: no

readiness-timeout

Readiness timeout. An applied object did not become ready within [execution] readiness_seconds.

  • Fix: Check the workload (kubectl describe, logs); fix it and plan again, or piceli release rollback previous.

  • Retry-safe: no

readiness-unsupported

Readiness unsupported. The applied object’s status is malformed (not an object, or conditions is not a list of objects), so its readiness cannot be evaluated.

  • Fix: Check the object’s controller (kubectl get -o yaml); verify it by hand and plan again.

  • Retry-safe: no

recreated-object

Object was recreated. The object has another UID than planned: someone deleted and recreated it.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

replace-backup-failed

Replace backup failed. The backup of the object could not be written (permissions, disk). Nothing was deleted.

  • Fix: Fix the state directory, then plan again.

  • Retry-safe: yes

replace-delete-not-observed

Replace delete not observed. On resume, the original object is still there although the journal recorded its delete. The execution is blocked.

  • Fix: Inspect the object, then plan again.

  • Retry-safe: no

replace-delete-timeout

Replaced object not deleted in time. The deleted object was still present after readiness_seconds, usually because of finalizers. The execution is blocked.

  • Fix: Inspect the finalizers, then resume or plan again.

  • Retry-safe: yes

replace-precondition-failed

Replace precondition failed. At apply time the object is managed, retained or owned by another object, or no backup directory is available. Nothing was deleted.

  • Fix: Plan again.

  • Retry-safe: no

replace-recreated-by-another-writer

Replaced object recreated by another writer. Another client created an object with the same name after the delete. The execution is blocked and that object is not touched.

  • Fix: Decide which object to keep; the backup holds the deleted one.

  • Retry-safe: no

resource-content-precondition-failed

Object content changed. The object’s content changed since planning.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

retained-adoption-precondition-failed

Not a retained object. A metadata-only adoption was planned for an object that is not retained.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

retained-content-precondition-failed

Retained object content differs. A retained object’s live content differs from the declared content, so it cannot be adopted metadata-only. Since 0.26.3 the execution’s diagnosis.precondition names the object, the check and each differing field, with keyed digests of the expected and live values (never a value).

  • Fix: Make the declaration match the live object, or put a new value in an object with a new name (for example api-token-2), then plan again.

  • Retry-safe: no

retained-resource

Retained object not deleted. The plan would delete a retained object (PersistentVolumeClaim or Secret); Piceli never deletes retained data.

  • Fix: Delete it yourself after a backup if that is intended.

  • Retry-safe: no

uid-version-precondition-failed

Object changed since planning. The object’s UID or resourceVersion differs from the planned one.

  • Fix: Run piceli release plan again and approve the new plan hash.

  • Retry-safe: no

Source identities (piceli inputs record|verify)

git-timed-out

git timed out. A git call took longer than --timeout seconds.

  • Fix: Retry, or pass a larger --timeout.

  • Retry-safe: yes

git-unavailable

git not available. The git executable was not found on PATH.

  • Fix: Install git or add it to PATH.

  • Retry-safe: no

inputs-io-error

Inputs file unavailable. A file the command reads or writes (spec, lock or --out) could not be accessed.

  • Fix: Check the paths and their permissions.

  • Retry-safe: yes

inputs-lock-invalid

Invalid inputs lock. The lock passed to --lock is not a valid piceli inputs record lock.

  • Fix: Record a new lock with piceli inputs record --spec inputs.toml --out inputs.lock.

  • Retry-safe: no

invalid-inputs-spec

Invalid inputs spec. inputs.toml could not be parsed or declares an invalid source (the message names the field).

  • Fix: Fix inputs.toml: only [[source]] tables with name, path and optional ref, allow_dirty and subpath.

  • Retry-safe: no

source-capture-failed

Source capture failed. git could not describe a source (a git call failed, its output exceeded the budget, or a changed path has an unsupported type).

  • Fix: Run git status in the source named in message and fix what it reports.

  • Retry-safe: no

source-dirty

Source has uncommitted changes. A source has uncommitted changes and does not set allow_dirty = true.

  • Fix: Commit or stash the changes, or set allow_dirty = true for that source.

  • Retry-safe: no

source-has-no-commit

Source has no commit. The source repository has no commit at HEAD.

  • Fix: Commit at least once, then record again.

  • Retry-safe: no

source-not-git

Source is not a git work tree. A declared source path is not a directory or not the top level of a git work tree.

  • Fix: Declare the repository root as path and use subpath for a directory inside it.

  • Retry-safe: no

source-ref-mismatch

Source not at required ref. A source’s HEAD differs from the commit its ref resolves to.

  • Fix: Check out the required ref, or change ref in inputs.toml.

  • Retry-safe: no

source-ref-not-found

Required ref not found. The ref a source requires does not resolve to a commit in its repository.

  • Fix: Fetch the ref or fix ref in inputs.toml.

  • Retry-safe: no

source-subpath-missing

Source subpath missing. The declared subpath does not exist in the source repository.

  • Fix: Fix subpath in inputs.toml.

  • Retry-safe: no

unknown-source

Unknown source name. --only NAME named a source that inputs.toml does not declare.

  • Fix: Use a name declared as [[source]] name in inputs.toml.

  • Retry-safe: no

Release secret generators and piceli release secret show

invalid-secret-data

Invalid Secret data. A live Secret’s data could not be decoded (not base64, or not UTF-8 where text is required).

  • Fix: Fix the live Secret, or import from a file or environment variable instead.

  • Retry-safe: no

secret-adoption-incomplete

Live secret values incomplete. Only some of a generator’s values are in live Secrets of an earlier release (a tls-ca CA key never is), so they cannot be kept without new values. Nothing was written.

  • Fix: Rotate the generator (–rotate NAME) into Secrets with new names.

  • Retry-safe: no

secret-adoption-invalid

Live secret values not adoptable. No release in the state records a generator, and the live Secret an earlier release of this owner wrote holds values the generator could not have made (another key set, a malformed value, or copies that differ). Nothing was adopted or written.

  • Fix: Fix or delete the live Secret, or rotate the generator into a Secret with a new name.

  • Retry-safe: no

secret-dependency-cycle

Secret dependency cycle. Templates reference each other in a loop.

  • Fix: Break the loop shown in the message.

  • Retry-safe: no

secret-generator-failed

Secret generator failed. openssl failed, timed out, or did not match its openssl_sha256 pin.

  • Fix: Fix the openssl path or pin, then plan again.

  • Retry-safe: yes

secret-import-unavailable

Secret import unavailable. The import source (file, env var, Secret or key) is missing, empty or unreadable, or the read was refused.

  • Fix: Provide or fix the source, or grant get on the Secret; retry.

  • Retry-safe: yes

secret-key-missing

Secret key missing. An imported live Secret does not contain the requested key.

  • Fix: Check the Secret’s keys or fix secret = { name, key } in the spec.

  • Retry-safe: no

secret-key-required

Secret key required. The generator has several outputs and no –key was given.

  • Fix: Add –key with one of the listed outputs.

  • Retry-safe: no

secret-not-found

Secret not found. Unknown secret, key or release, or no release has been recorded yet.

  • Fix: Check the name; the message lists what exists.

  • Retry-safe: no

secret-not-text

Secret value is not text. A raw value or template input is not valid UTF-8.

  • Fix: Use base64 encoding for binary values.

  • Retry-safe: no

secret-reveal-required

Reveal not confirmed. A secret value was requested without –reveal or a terminal confirmation.

  • Fix: Add –reveal (owner only), or use –json for metadata only.

  • Retry-safe: no

secret-rotation-refused

Secret rotation refused. –rotate named a template, static or external-source (sops, vault, aws-secrets-manager) generator.

  • Fix: Rotate the values the template uses, edit the spec, or rotate an external value at its source and plan again.

  • Retry-safe: no

secret-source-auth-failed

Secret source refused the credentials. An external secret source refused access: Vault answered 401/403 or the token file/variable is missing, AWS denied the request or found no credentials, or sops could not decrypt the file’s data key (exit code 128).

  • Fix: Provide a valid Vault token (token_file or token_env), AWS credentials or profile, or the age/PGP/KMS key sops needs (pass_env), then plan again.

  • Retry-safe: no

secret-source-failed

Secret source read failed. An external secret source failed: a network or TLS verification error, an unexpected HTTP status or AWS error, sops failed or does not match sops_sha256, or the response was malformed or too large.

  • Fix: Read the category in the message (for example tls-verify-failed: set ca_file); retrying is safe once the source is reachable.

  • Retry-safe: yes

secret-source-not-found

Secret source has no such value. The SOPS file, the Vault path, the AWS secret or the key inside it does not exist, is empty or is not a scalar value.

  • Fix: Fix file, path, secret_id or key in the spec (the message names the source, never the value).

  • Retry-safe: no

secret-source-timeout

Secret source timed out. sops, Vault or AWS did not answer within timeout_seconds.

  • Fix: Check connectivity to the source or raise timeout_seconds; retrying is safe.

  • Retry-safe: yes

secret-source-tool-missing

Secret source tool not installed. The sops binary is not found or not executable, or botocore is missing for an aws-secrets-manager secret.

  • Fix: Install sops (or set sops = “/absolute/path”), or install the extra: pip install ‘piceli[aws]’.

  • Retry-safe: no

secret-template-invalid

Invalid secret template. A template has a stray brace or a malformed placeholder.

  • Fix: Double a brace to write it literally, and use {output} for values.

  • Retry-safe: no

secret-unknown-reference

Unknown template reference. A template placeholder names an output that no generator exposes.

  • Fix: Use a listed output, e.g. {ca.ca.crt}; internal keys cannot be used.

  • Retry-safe: no

Typed apps and piceli render

evaluation-approval

Evaluation approval changed. The approved source, renderer or input identities no longer match the frozen preview.

  • Fix: Create and approve another evaluation preview.

  • Retry-safe: no

evaluation-config

Renderer configuration refused. The renderer image, platform, tool, socket or limits are invalid.

  • Fix: Configure an explicit pinned local Docker renderer and bounded limits.

  • Retry-safe: no

evaluation-expired

Evaluation preview expired. The frozen evaluation authorization expired before execution.

  • Fix: Create and approve another evaluation preview.

  • Retry-safe: no

evaluation-interrupted

Evaluation interrupted. A previous render started without a trustworthy completion result or was stopped.

  • Fix: Review a new preview before running source again.

  • Retry-safe: no

evaluation-output

Renderer output refused. The renderer returned invalid, private or unbounded composition data.

  • Fix: Correct the definition to return supported public resources and symbolic secret bindings.

  • Retry-safe: no

evaluation-renderer

Isolated renderer failed. The configured isolated renderer was unavailable, exceeded limits or failed.

  • Fix: Check the pinned local renderer and its bounds; review another preview before retrying.

  • Retry-safe: no

evaluation-source

Source selection refused. The source selection contains an unsafe, private, unselected or oversized input.

  • Fix: Select only public definition files under the explicit source root, then preview again.

  • Retry-safe: no

evaluation-unsupported

Evaluation capability unavailable. The definition requires a code execution capability not supported by this isolated renderer.

  • Fix: Use a supported definition or the existing explicitly approved CLI workflow.

  • Retry-safe: no

render-model-invalid

Typed model invalid. The typed model failed validation while rendering (for example a selector conflict or an ExistingClaim collision).

  • Fix: Fix the model as the message describes; piceli render shows the result without a cluster.

  • Retry-safe: no

render-out-refused

Render output directory refused. --out names a directory that holds files piceli render --out did not write (or a file it would overwrite), or it was combined with --diff-env.

  • Fix: Pass a new or empty directory, or the directory of a previous --out (it holds .piceli-render).

  • Retry-safe: no

render-target-invalid

Render target invalid. The module:attr target (or the spec’s composition) cannot be imported, is not an App, composition or composition function, or raised while importing or evaluating (the message names the exception’s type and text, never a traceback).

  • Fix: Point at module:attr or file.py:attr of an App, DeploymentComposition or build(ctx) function, and fix the error the message names (PICELI_DEBUG=1 prints the traceback on stderr).

  • Retry-safe: no

Image references in releases ([images], images_from, receipts)

delivery-not-succeeded

Delivery did not succeed. The delivery receipt’s result is not pushed/imported/already-present.

  • Fix: Deliver the image again and use the new receipt.

  • Retry-safe: no

image-declared-twice

Image declared twice. The same image name, or the same delivered image, appears in more than one source.

  • Fix: Keep one declaration per image.

  • Retry-safe: no

image-digest-mismatch

Image digest mismatch. A pinned digest, or a build and delivery receipt for the same image, disagree on the digest.

  • Fix: Use receipts from the same build, or update the pinned digest.

  • Retry-safe: no

image-not-immutable

Image reference is not immutable. A build receipt entry has no registry digest, so its only reference is a movable tag.

  • Fix: Deliver the image (piceli artifacts deliver --to oci://… or node import with a content tag --ref repo:sha256-<12hex>) and use the delivery receipt.

  • Retry-safe: no

receipt-invalid

Receipt invalid. A receipt could not be read, has an unknown schema, or has malformed fields.

  • Fix: Pass a receipt written by piceli artifacts build-spec run or piceli artifacts deliver.

  • Retry-safe: no

receipt-unmatched

Delivery receipt matches no image. A delivery receipt in images_from matches no built image by config digest.

  • Fix: Add the build receipt that produced the image, or use [images.<name>] receipt = ….

  • Retry-safe: no

Release commands (piceli release plan|apply|rollback|resume|stop|status)

adopt-and-replace

Object named by adopt and replace. The same object is listed for adoption and for replacement.

  • Fix: Keep it in only one of --adopt/[release] adopt and --replace/[release] replace.

  • Retry-safe: no

adopt-entry-not-declared

Adopt entry names no declared object. An adopt entry does not name exactly one resource that the composition declares (a typo is refused, never ignored).

  • Fix: Use the kind and name of a resource the composition declares; add apiVersion/ when two kinds share a name.

  • Retry-safe: no

approve-with-planning-flags

–approve combined with planning flags. --approve executes a stored plan, so it cannot be combined with --auto-approve, --rotate, --adopt, --replace or --adopt-all-desired.

  • Fix: Plan with those flags first, then run apply with only --spec and --approve <hash>.

  • Retry-safe: no

cluster-identity-changed

Cluster identity changed. The cluster or namespace differs from the one recorded in this state directory; a state directory serves one cluster and namespace.

  • Fix: Point [target] back at the recorded cluster, or use a new state_dir for the other cluster.

  • Retry-safe: no

discovery-incomplete

Discovery incomplete. Live discovery could not read every kind the plan needs, so the plan would not be authoritative (the message lists the failing kinds).

  • Fix: Check RBAC and API availability for the listed kinds, then plan again.

  • Retry-safe: yes

execution-not-ready

Execution not ready. The execution ran but did not become ready, and recorded no more specific failure (see execution.state).

  • Fix: Run piceli release status --spec release.toml; resume, fix and apply, or roll back.

  • Retry-safe: no

execution-not-started

Execution not started. The latest execution was recorded but never started, so there is nothing to stop.

  • Fix: Run piceli release status --spec release.toml to see its state.

  • Retry-safe: no

execution-other-owner

Execution belongs to another owner. The execution was granted to another owner than [release] owner.

  • Fix: Stop it with the spec (and owner) that started it.

  • Retry-safe: no

execution-other-target

Execution belongs to another target. The execution was granted for another cluster or namespace.

  • Fix: Stop it with the spec whose [target] started it.

  • Retry-safe: no

execution-refused

Execution refused. The executor refused the approved plan before changing anything (the message says why).

  • Fix: Run piceli release plan --spec release.toml again and approve the new plan hash.

  • Retry-safe: no

immutable-field-changed

Immutable fields would change. The composition changes a field the API server never updates on an existing object: a Job’s pod template or completions, or a StatefulSet’s serviceName, podManagementPolicy, selector or claim templates (see blocking).

  • Fix: Name the object with --replace Kind/name (or [release] replace; for piceli deploy, the Pipeline’s replace=["Kind/name"]) to delete and recreate it from the release (a StatefulSet keeps its pods and claims), or revert the change.

  • Retry-safe: no

invalid-adopt-entry

Invalid adopt or replace entry. An --adopt/--replace flag or a [release] adopt/replace entry is not Kind/name or apiVersion/Kind/name, or its name is not valid for the kind (a DNS subdomain; RBAC kinds also allow :).

  • Fix: Write the entry as Kind/name, e.g. --adopt Deployment/web.

  • Retry-safe: no

invalid-composition

Invalid composition. The composition entry point could not be loaded (its module or function raised: the message names the exception’s type and text), did not return a DeploymentComposition, declared a cluster-scoped object other than a ClusterRole or ClusterRoleBinding (or one annotated piceli.io/namespace with another namespace), targeted another namespace, or its secret bindings do not match the declared secret inputs.

  • Fix: Fix the composition function named by [release] composition, then plan again.

  • Retry-safe: no

invalid-plan-hash

Invalid plan hash. --approve is not 64 lowercase hex characters.

  • Fix: Copy the full plan_hash from the release plan output.

  • Retry-safe: no

invalid-release-spec

Invalid release spec. release.toml could not be read or parsed, or a value in it is invalid (the message names the field).

  • Fix: Fix the field named in message, then run piceli release plan --spec release.toml.

  • Retry-safe: no

no-execution-recorded

No execution recorded. There is no apply, rollback or resume of this release in the history.

  • Fix: Check --release, or apply the release first.

  • Retry-safe: no

no-previous-release

No previous release. Only one release has been ready, so previous has nothing to roll back to.

  • Fix: Name a release explicitly (piceli release status lists them), or apply a new one.

  • Retry-safe: no

no-release-applied

No release applied. rollback previous was asked before any release became ready.

  • Fix: Apply a release first; there is nothing to roll back to.

  • Retry-safe: no

not-resumable

Execution not resumable. Only first applies of a created release can resume; re-applies and rollbacks cannot.

  • Fix: Run piceli release plan (or rollback) again and approve the new plan.

  • Retry-safe: no

nothing-to-stop

Nothing to stop. The latest execution of the release is already ready or cancelled.

  • Fix: No action needed; piceli release status shows the result.

  • Retry-safe: no

orphans-approve-without-prune

–approve without –prune. --approve executes a prune; release orphans alone only lists.

  • Fix: Add --prune, or drop --approve.

  • Retry-safe: no

orphans-delete-failed

Leftover delete failed. At least one approved object could not be deleted (changed meanwhile, or the API server refused); the others were deleted.

  • Fix: List again: the remaining objects show with a new plan_hash. Check RBAC for delete on the failing kinds.

  • Retry-safe: yes

orphans-execution-running

Execution running. The latest execution is still running: the objects of a release being applied are not leftovers.

  • Fix: Finish it with release resume, or cancel it with release stop, then list again.

  • Retry-safe: yes

orphans-no-release

No release to compare against. release orphans compares the cluster with the selected release, and this state has none yet.

  • Fix: Deploy a release from this state first (release apply).

  • Retry-safe: no

orphans-plan-changed

Leftover objects changed. The set of leftover objects (or an object’s resourceVersion) differs from the one whose hash was approved; nothing was deleted.

  • Fix: Run release orphans --prune again with the same --include-* flags, review the set and approve the new plan_hash.

  • Retry-safe: yes

plan-blocked

Plan blocked. Several objects block the plan for different reasons; each is listed in blocking with its own code.

  • Fix: Resolve every entry of blocking (run piceli explain <code> for each), then plan again.

  • Retry-safe: no

plan-expired

Plan expired. The approved plan is older than approval_window_seconds.

  • Fix: Run piceli release plan --spec release.toml again and approve the new plan hash.

  • Retry-safe: no

plan-intent-mismatch

Plan intent mismatch. The hash approves an apply plan where a rollback plan was expected, or the reverse.

  • Fix: Approve the hash printed by the same command (release rollback <target> for a rollback).

  • Retry-safe: no

plan-not-found

Plan not found. No pending plan has this hash: it is unknown, expired or already applied.

  • Fix: Run piceli release plan --spec release.toml again and approve the new plan hash.

  • Retry-safe: no

plan-release-mismatch

Plan release mismatch. The hash approves a plan for another release than the rollback target.

  • Fix: Run piceli release rollback <target> --spec release.toml and approve the hash it prints.

  • Retry-safe: no

release-changes-pending

Release would change objects. piceli release diff --exit-code found objects the release would change (the diff is in the output); nothing was changed.

  • Fix: Review the diff. If it is expected, plan and apply it (piceli release plan); otherwise fix the model or the cluster.

  • Retry-safe: no

release-history-malformed

Release history malformed. history.json in the state directory is not a valid history file.

  • Fix: Restore the state directory from a backup; do not edit it by hand.

  • Retry-safe: no

release-owner-mismatch

Release owner mismatch. The stored release was planned for another owner or field manager than [release] now names.

  • Fix: Restore the original owner/field_manager, or plan a new release.

  • Retry-safe: no

release-prerollout-unsupported

Pre-rollout checks need piceli deploy. The release composition returns an App that declares App.pre_rollout checks. piceli release plans and applies the objects only and cannot run the check Jobs, so it would skip them silently; it refuses the App at plan time, before anything is written.

  • Fix: Deploy this App with piceli deploy (a Pipeline), which runs the checks before the workloads change, or remove the pre_rollout declarations if the release must go through piceli release.

  • Retry-safe: no

release-refused

Release command refused. A release command was refused for a reason without a more specific code (the message says why).

  • Fix: Read message; fix the input it names, then run the command again.

  • Retry-safe: no

release-retention-invalid

Invalid release retention setting. keep_releases (or --keep) is below 2: retention always keeps the running release and the one a rollback returns to.

  • Fix: Use 2 or more, or leave keep_releases unset to keep every release.

  • Retry-safe: no

release-retention-off

Release retention is off. piceli release retention ran on a spec without [release] keep_releases and without --keep.

  • Fix: Set keep_releases = 20 under [release] (or Pipeline(keep_releases=20)), or pass --keep N to piceli release retention.

  • Retry-safe: no

release-state-unavailable

Release state unavailable. A file in the spec’s state_dir (or a file the spec names) could not be read or written.

  • Fix: Check that the paths exist and are readable and writable by this user.

  • Retry-safe: yes

replace-entry-not-declared

Replace entry names no declared object. A replace entry does not name exactly one resource that the composition declares.

  • Fix: Use the kind and name of a resource the composition declares.

  • Retry-safe: no

replace-refused

Replace refused. A --replace entry names an object that may not be replaced: it is retained, owned by another object, or already managed and not a Job or StatefulSet (see blocking).

  • Fix: Use --adopt Kind/name for an unmanaged object, or remove the entry from --replace/[release] replace.

  • Retry-safe: no

resource-requires-adoption

Existing object requires adoption. An object the composition declares already exists and is not managed by this release’s owner (see blocking for each object and the flags that unblock it). A cluster-scoped object (ClusterRole, ClusterRoleBinding) is managed only when it also carries piceli.io/namespace with this release’s namespace.

  • Fix: Plan again with --adopt Kind/name (or --replace Kind/name for non-retained objects), [release] adopt/replace, or --adopt-all-desired; or delete the object. For piceli deploy, declare it on the Pipeline instead (adopt=["Kind/name"] or replace=[…]; see blocking[].suggest).

  • Retry-safe: no

resource-scope-mismatch

Declared scope contradicts discovery. An object is declared namespaced but the API server serves its kind cluster-scoped, or the reverse (for example app.resource(..., scope=...) for a custom resource whose CRD says otherwise). Nothing was planned.

  • Fix: Declare the scope the CRD states (scope="cluster" or "namespaced"); piceli codegen crd records it in the generated module’s SCOPE.

  • Retry-safe: no

resume-refused

Resume refused. The executor refused to resume the execution (the message says why).

  • Fix: Run piceli release status --spec release.toml; plan and apply again if the execution cannot continue.

  • Retry-safe: no

retained-content-differs

Retained object differs. A retained object’s spec or data differs from the composition; only its labels and annotations may change. Since 0.26.3 this includes a secret-bound value (a changed template, a rotated or regenerated value): the message names the object and the keys, never a value.

  • Fix: Change the composition to match the live object, or put the new value in an object with a new name (for example api-token-2) and point the workloads at it, then plan again.

  • Retry-safe: no

rotate-not-valid-for-rollback

–rotate with rollback. A rollback re-applies a stored release with its stored secret values, so it cannot rotate.

  • Fix: Roll back without --rotate; rotate later with piceli release plan --rotate NAME.

  • Retry-safe: no

stored-discovery-missing

Stored discovery missing. The release was planned but its stored discovery is missing from the state directory.

  • Fix: Run piceli release plan --spec release.toml again and approve the new plan hash.

  • Retry-safe: no

stored-evidence-mismatch

Stored evidence mismatch. The stored discovery no longer reproduces the approved plan hash.

  • Fix: Run piceli release plan --spec release.toml again and approve the new plan hash.

  • Retry-safe: no

stored-release-mismatch

Stored release mismatch. The catalogued release no longer reproduces the approved plan.

  • Fix: Run piceli release plan --spec release.toml again and approve the new plan hash.

  • Retry-safe: no

unknown-execution

Unknown execution. --run names no execution of this state directory’s history (or a prefix shorter than 8 characters, or one that matches several).

  • Fix: Run piceli release status --spec … and copy an execution_id from history, or pass a piceli deploy run id with the pipeline’s --spec.

  • Retry-safe: no

unknown-release

Unknown release. The release name is not in this state directory’s catalog (or release retention retired it).

  • Fix: Run piceli release status --spec release.toml to list the releases.

  • Retry-safe: no

unknown-rotate-secret

Unknown secret to rotate. --rotate names a secret generator that [secrets] does not declare.

  • Fix: Use a name declared under [secrets].

  • Retry-safe: no

versioned-secret-generated

A versioned Secret holds a generated value. A Secret declared with versioned=True binds the output of a random, tls-self-signed or tls-ca generator directly. Those values must stay the same: when the state starts empty they are adopted back from the live Secret by its declared name, which a versioned Secret does not have, so a new value (and a new Secret) would be made silently. The plan refuses before anything is generated or written.

  • Fix: Keep generated passwords, keys and certificates in a plain app.secret(...) (rotate them with --rotate into a Secret with a new name). Use versioned=True for config files that carry a secret: a template, import, static or external source.

  • Retry-safe: no

Operations commands (piceli observe …, piceli operator …)

backup-refused

Backup refused. The operator state could not be backed up (the message says why).

  • Fix: Check --state-dir and that --output does not exist yet.

  • Retry-safe: no

forward-port-conflict

Forward port conflict. A required forward’s local port is already in use or declared twice, or a shortcut has no namespace; nothing was started (see preflight.errors).

  • Fix: Stop the process that owns the port, change local_port in the profile, or pass --namespace.

  • Retry-safe: yes

forward-unhealthy

Forward unhealthy. A required forward’s health probe failed (see forwards[].error).

  • Fix: Start the forwards with piceli observe forwards apply, or check the service behind the port.

  • Retry-safe: yes

invalid-access-profile

Invalid access profile. The access profile or --ui-config TOML could not be read or validated (the message names the field).

  • Fix: Fix the TOML named in message.

  • Retry-safe: no

invalid-forward-preference

Invalid forward preference. The port-forward preference is invalid (name, namespace, target or ports).

  • Fix: Use DNS names, a service/, deployment/ or pod/ target and ports between 1 and 65535.

  • Retry-safe: no

invalid-log-request

Invalid log request. The namespace, target, container or tail of the log request is invalid.

  • Fix: Use a DNS namespace, a pod/ or workload target and --tail between 1 and 10000.

  • Retry-safe: no

invalid-preference-store

Invalid preference store. The preferences file is not a valid Piceli preference store.

  • Fix: Fix or remove the file passed to --preferences (or the default one).

  • Retry-safe: no

invalid-release-catalog

Invalid release catalog. The --catalog file is not a valid Piceli release catalog.

  • Fix: Pass the catalog written by Piceli.

  • Retry-safe: no

invalid-session-archive

Invalid session archive. The --archive file is not a canonical Piceli deployment session archive.

  • Fix: Pass the session archive written by the release that deployed the objects.

  • Retry-safe: no

local-port-in-use

Local port in use. The --port for the local server is already in use.

  • Fix: Choose another --port, or stop the process that owns it.

  • Retry-safe: yes

no-saved-forwards

No saved forwards. The user has no saved port-forward preferences.

  • Fix: Save one with piceli observe forward-save.

  • Retry-safe: no

operator-state-unavailable

Operator state unavailable. A file in the operator state directory is corrupt, or the directory cannot be read or written.

  • Fix: Check --state-dir and its permissions; restore it with piceli operator restore if a file is corrupt.

  • Retry-safe: no

promote-refused

Promotion refused. The promotion could not be recorded: the source release is unknown or the target name is taken or invalid (the message says which).

  • Fix: Check the names with piceli operator status, then retry with a new target name.

  • Retry-safe: no

restore-refused

Restore refused. The backup archive is invalid or unsafe, or the destination is not empty.

  • Fix: Restore a backup made by piceli operator backup into an empty directory.

  • Retry-safe: no

state-locked

Operator state locked. Another process holds the operator state directory’s writer lock.

  • Fix: Stop the other writer (for example piceli operator serve), then retry.

  • Retry-safe: yes

ui-approval-mismatch

Approval does not match. The submitted digest differs from the immutable preview or plan.

  • Fix: Review the displayed preview or plan and approve its exact digest.

  • Retry-safe: no

ui-assets-unavailable

UI assets unavailable. The installed package lacks bundled browser assets.

  • Fix: Install a Piceli wheel containing the UI assets.

  • Retry-safe: no

ui-evaluation-failed

Definition evaluation failed. The isolated renderer refused or failed to evaluate the approved source.

  • Fix: Check the source and renderer configuration, then review a new evaluation preview.

  • Retry-safe: no

ui-execution-failed

Deployment did not succeed. The real deployment engine or configured checks reported failure.

  • Fix: Inspect the run stages and diagnosis before recovery or a newly reviewed rollback.

  • Retry-safe: no

ui-idempotency-conflict

Request key already used. An idempotency key was used with different request inputs.

  • Fix: Retry the original request unchanged or use a new key for the new request.

  • Retry-safe: no

ui-invalid-request

Invalid UI request. The request does not match the service contract.

  • Fix: Check request fields and use the matching UI version.

  • Retry-safe: no

ui-logs-unavailable

Container logs unavailable. The selected pod’s container logs could not be read.

  • Fix: Check pod lifecycle and log-read permission, then refresh the source list.

  • Retry-safe: yes

ui-not-found

UI resource not found. The resource is absent or outside the configured scope.

  • Fix: Refresh the selected application.

  • Retry-safe: no

ui-observation-unavailable

Observation unavailable. The service could not observe the configured scope.

  • Fix: Check target connectivity and permissions, then refresh.

  • Retry-safe: yes

ui-operation-conflict

Release operation in progress. Another admitted operation owns this release scope.

  • Fix: Inspect the existing operation and wait for its completion or acknowledged cancellation.

  • Retry-safe: yes

ui-operation-interrupted

Operation interrupted. The worker stopped before authoritative execution and check evidence established an outcome.

  • Fix: Inspect journal evidence and use an offered recovery action; do not blindly repeat the deployment.

  • Retry-safe: no

ui-operation-unavailable

Operation unavailable. The registered definition or renderer cannot perform this operation.

  • Fix: Configure a supported release definition and a pinned isolated renderer.

  • Retry-safe: no

ui-plan-stale

Plan needs another review. The approved source, execution inputs, target, or live preconditions changed, or the plan expired.

  • Fix: Create and review a new plan before deployment.

  • Retry-safe: no

ui-prerollout-unsupported

Legacy pre-rollout count cannot be planned. The renderer returned a count-only pre-rollout marker without executable check details. The UI refuses to plan a release that would skip a check. Nothing was planned or applied.

  • Fix: Use a renderer that emits the full app.pre_rollout check definitions, or deploy with piceli deploy.

  • Retry-safe: no

ui-request-rejected

UI request rejected. The request does not have a valid local session or origin.

  • Fix: Open the UI at its configured local address.

  • Retry-safe: no

ui-state-invalid

Control state cannot be read. Durable service control state is incompatible or its integrity checks failed.

  • Fix: Restore the documented service backup or repair the state before starting another worker.

  • Retry-safe: no

unknown-forward

Unknown saved forward. The user has no saved port forward with this name.

  • Fix: List them with piceli observe forward-list --user USER.

  • Retry-safe: no

unknown-shortcut

Unknown shortcut id. --only names a shortcut id the access profile does not declare.

  • Fix: Use ids declared as [[shortcuts]] id in the profile.

  • Retry-safe: no

Post-deploy checks and automatic rollback ([[checks]], piceli.checks)

check-api-unavailable

Kubernetes API unavailable for a check. The check could not build an API client from the explicit kubeconfig context, or an API read failed (RBAC, network).

  • Fix: Check the [target] kubeconfig and context and that the credentials may read Services, Pods and workloads in the namespace.

  • Retry-safe: yes

check-callable-invalid

Python check cannot be loaded. A python check’s call names a module or file that cannot be imported, or an attribute that is not callable.

  • Fix: Use module:function (importable) or path/file.py:function relative to release.toml.

  • Retry-safe: no

check-exec-unavailable

Check exec unavailable. The Kubernetes API refused or could not run the exec (for example no pods/exec permission, or the command does not exist in the container).

  • Fix: Grant create on pods/exec in the namespace, or fix command/container.

  • Retry-safe: no

check-failed

Check failed. A check ran and its condition was not met: an HTTP status outside expect or missing body_contains, an exec exit code or output mismatch, a metric sample violating the threshold (or no samples), or a Python check returning False or a failure string.

  • Fix: Read the check’s detail; fix the application and apply a new release, or roll back (piceli release rollback previous).

  • Retry-safe: yes

check-forward-unavailable

Check port forward unavailable. The API server refused its proxy to the target (a missing services/proxy or pods/proxy permission) or could not reach a ready endpoint, or the temporary port forward did not become healthy in time.

  • Fix: Grant get on services/proxy and pods/proxy in the namespace and make sure the target has a ready pod listening on the port; run piceli release check to retry.

  • Retry-safe: yes

check-invalid

Check declaration invalid. A [[checks]] table or Checks.* call is malformed: an unknown type or key, a target kind the check type does not support, or two checks with the same name.

  • Fix: Fix the declaration as the message says; piceli release plan validates [[checks]] without running them.

  • Retry-safe: no

check-metric-invalid

Metric response invalid. The metric endpoint did not answer with a successful Prometheus query result of type vector or scalar.

  • Fix: Point the check at a Prometheus-compatible query API (path, port) and check the query.

  • Retry-safe: no

check-port-unknown

Check port unknown. An http or metric check has no port and its target declares none.

  • Fix: Set port = … on the check.

  • Retry-safe: no

check-raised

Check raised an exception. A Python check raised an unexpected exception or returned an unsupported value; only the exception type is recorded.

  • Fix: Run the function locally; raise piceli.checks.CheckFailed(detail) or return False/a string to fail on purpose.

  • Retry-safe: no

check-target-not-found

Check target not found. The check’s target Service, workload or pod does not exist in the namespace, or the workload has no ready pod.

  • Fix: Check the target name (kind/name) against the composition; for exec, wait until a pod is ready.

  • Retry-safe: yes

check-timed-out

Check timed out. One attempt took longer than the check’s timeout.

  • Fix: Raise timeout or retries, or find out why the endpoint or command is slow.

  • Retry-safe: yes

checks-rollback-failed

Automatic rollback failed. A release failed its checks and the automatic rollback to the previous release was refused, did not become ready or failed its own checks.

  • Fix: Run piceli release status and roll back by hand (piceli release rollback previous), with --skip-checks only in an emergency.

  • Retry-safe: no

checks-rollback-unavailable

No release to roll back to. A release failed its checks with rollback_on_failed_checks = true, but no other release has ever been ready here.

  • Fix: Fix the application and apply a new release; the failed release is left running and is not selected.

  • Retry-safe: no

Access and status from the model (piceli access, piceli status)

access-forwards-failed

Every forward failed. All supervised forwards gave up: the restart budget was spent, or a port was taken by another process while supervising.

  • Fix: Run piceli status TARGET to see whether the workloads are ready and who holds each port, fix it, then run piceli access again.

  • Retry-safe: yes

access-kubeconfig-invalid

Kubeconfig unusable. The target’s kubeconfig or context cannot be loaded (missing file or context, exec/auth-provider credentials, insecure or proxied transport).

  • Fix: Point the target at a kubeconfig file with a static-credential context; Piceli never falls back to the current context.

  • Retry-safe: no

access-kubectl-missing

kubectl required. piceli access runs kubectl port-forward and no kubectl was found or it is not executable.

  • Fix: Install kubectl or pass --kubectl PATH.

  • Retry-safe: no

access-none-declared

No access declared. The app declares no forward, so there is nothing to supervise. A composition function that returns app.composition(ctx) hides the App’s declarations.

  • Fix: Add access=app.access.forward(local=PORT) to a Service, and return the App itself from the composition function.

  • Retry-safe: no

access-operator-missing

Tailscale operator not installed. piceli access (0.19.1): no Deployment in Access.operator_namespace and no tailscale IngressClass, so nothing gives the companions a tailnet name.

  • Fix: The cluster owner installs the Tailscale Kubernetes operator in that namespace (see the access guide’s cluster owner checklist).

  • Retry-safe: no

access-operator-not-ready

Tailscale operator not ready. piceli access (0.19.1): the Tailscale operator has no ready replica or a pod is crash-looping. The operator has no readiness probe, so a rollout can look done while it fails.

  • Fix: Read the operator’s log until Startup complete, operator running; a 401 API token invalid usually means an OAuth secret with a trailing newline.

  • Retry-safe: no

access-operator-unknown

Tailscale operator not checked. piceli access (0.19.1): the operator’s namespace could not be read with these credentials, so its state is unknown.

  • Fix: Ask the cluster owner, or check with credentials that can read that namespace.

  • Retry-safe: no

access-policy-unchanged

NetworkPolicy not opened to the tailnet. A note of Access(tailnet=True) (0.19.1): an ingress NetworkPolicy that may select the exposed pods was left unchanged, so the Tailscale operator’s proxies may be blocked. why: selector-unevaluable (its podSelector uses an unknown operator or is malformed) or pods-not-in-release (no workload of the release has pods the Service selects, so the policies cannot be checked).

  • Fix: Fix the policy’s podSelector, or add a rule admitting the operator’s namespace (Access.operator_namespace) on the exposed target ports yourself.

  • Retry-safe: no

access-port-conflict

Declared local port already in use. A required forward’s local port (or the --dashboard port) is already held by another process. Piceli never takes a port over; the rejection lists each port’s owner by pid (holder: piceli-forward or piceli-server when it is Piceli’s own process for this app, else other; another process’s command line is never printed).

  • Fix: When Piceli’s own stale process holds it: piceli access stop --stale TARGET (add --port N for a dashboard port; for piceli access ui, piceli access stop --stale --cluster MODULE:ATTR or --profile NAME). Otherwise stop the listed pid yourself, or change local= in the model, then run the command again.

  • Retry-safe: no

access-stop-incomplete

A stale process did not stop. A Piceli process for this app got SIGTERM but its port was still held 5 seconds later (a supervised kubectl is left behind when its supervisor ends).

  • Fix: Run piceli access stop --stale TARGET again; it then stops the orphaned kubectl itself.

  • Retry-safe: yes

access-stop-needs-stale

Say which processes to stop. piceli access stop only stops Piceli’s own stale processes for the app, and needs --stale to say so.

  • Fix: Run piceli access stop --stale TARGET.

  • Retry-safe: no

access-tailnet-missing

No tailnet companion running. piceli access (0.19.1): the environment declares Access(tailnet=True) but its running release has no tailnet companion: it was rendered before the declaration, or every Service was skipped.

  • Fix: Deploy the environment again; its plan’s access.notes say why a Service is left out.

  • Retry-safe: no

access-tailnet-pending

Tailnet name not assigned yet. piceli access (0.19.1): a tailnet companion has no name in status.loadBalancer.ingress yet; the note carries the Tailscale operator’s latest Event on it (for example tags it may not use, or OAuth errors).

  • Fix: Wait a minute after a deploy; otherwise act on the event (tailnet policy tagOwners, the operator’s OAuth client) or ask the cluster owner.

  • Retry-safe: no

access-tailnet-skipped

Service not put on the tailnet. A note of Access(tailnet=True) in a plan’s access.notes (0.19.1): an exposed Service gets no tailnet companion. why: not-found (the release has no such Service), no-selector (a Service without a selector has no pods), no-matching-port (none of its ports is exposed), https-mixed-ports (with https=True, a Service exposing non-HTTP ports too keeps one plain companion).

  • Fix: Fix Access(services=...) or the forward declarations (app.access.forward), or give the Service a selector.

  • Retry-safe: no

access-target-invalid

Access target invalid. TARGET is neither a readable release.toml whose composition yields an App or composition, nor module:attr of an object with .app (a piceli App) and .target (explicit kubeconfig, context and namespace), or importing that module raised (the message names the exception).

  • Fix: Pass path/to/release.toml, or module:attr of a pipeline object; the message says which part is missing.

  • Retry-safe: no

access-unknown-forward

Unknown forward. --only names a forward id the app does not declare.

  • Fix: Use an id from piceli status TARGET --json (access.forwards[].id); it defaults to the Service name.

  • Retry-safe: no

forward-reconnecting

Local forward reconnecting. An owned loopback forward temporarily lost its ready probe.

  • Fix: Wait for Piceli to revalidate the target and reconnect, or stop the session.

  • Retry-safe: yes

status-checks-unreadable

Checks result unreadable. The target’s last_checks() hook raised.

  • Fix: Run the checks again; the rest of the status is still valid.

  • Retry-safe: yes

status-cluster-unreadable

Cluster unreadable. Reading a workload failed (network, authentication, RBAC or timeout). The detail is withheld because it could contain credentials.

  • Fix: Check that the target’s kubeconfig context reaches the cluster and may read Deployments and Pods in the namespace, then retry.

  • Retry-safe: yes

status-port-occupied

Forward port held by another process. A declared forward’s local port is held by a process Piceli did not start for this declaration (another project’s kubectl port-forward, a dev server, an orphaned forward). piceli status reports the forward as occupied with that process’s pid only, never its command line, and never as up.

  • Fix: Stop the process holding the port (lsof -nP -iTCP:PORT -sTCP:LISTEN) or change local=, then run piceli access TARGET.

  • Retry-safe: yes

status-release-unreadable

Release state unreadable. The release state directory (catalog, journal or history) could not be read.

  • Fix: Check [release] state_dir and run piceli release status --spec release.toml.

  • Retry-safe: no

ui-access-failed

Local access unavailable. The supervised forward did not bind and pass its health probe.

  • Fix: Check target connectivity and permissions, then start a new session.

  • Retry-safe: yes

ui-access-port-conflict

Local port occupied. Another process already owns the requested loopback port.

  • Fix: Choose another local port or stop the process that owns it; Piceli will not adopt it.

  • Retry-safe: no

Release target credentials ([target], kubeconfig exec plugins)

auth-provider-refused

Legacy auth-provider refused. The target context’s kubeconfig user uses a legacy auth-provider (gcp, oidc, azure). Piceli never runs these.

  • Fix: Regenerate the kubeconfig for the provider’s exec plugin (gke-gcloud-auth-plugin, kubelogin convert-kubeconfig, an OIDC exec plugin) and set allow_exec = true.

  • Retry-safe: no

exec-auth-not-allowed

Exec credential plugin not allowed. The target context’s kubeconfig user runs an exec credential plugin (for example gke-gcloud-auth-plugin, aws or kubelogin) and [target] does not set allow_exec = true. The plugin was not run.

  • Fix: Review the kubeconfig user’s exec command, then add allow_exec = true (and ideally exec_sha256) to [target]; see docs/managed_clusters.md.

  • Retry-safe: no

exec-command-not-found

Exec command not found. The exec plugin command is not in PATH (a bare name) or does not exist (a path, resolved from the kubeconfig’s directory).

  • Fix: Install the plugin, or put its directory on PATH, then run the command again.

  • Retry-safe: no

exec-command-unsafe

Exec command unsafe. The resolved exec command is not a regular executable file, exceeds 256 MB, or is writable by its group or other users.

  • Fix: Install the plugin somewhere only its owner can write (chmod go-w <file>), then run the command again.

  • Retry-safe: no

exec-config-invalid

Exec configuration invalid. The kubeconfig exec block is malformed (missing command, apiVersion other than client.authentication.k8s.io/v1 or v1beta1, bad args/env), its cluster CA data is not base64, or exec_sha256 is set for a user without an exec plugin.

  • Fix: Fix the kubeconfig user or the [target] exec keys (regenerate the kubeconfig with the provider’s CLI when in doubt).

  • Retry-safe: no

exec-credential-invalid

Exec credential invalid. The plugin’s output is not a valid ExecCredential of the configured apiVersion: not JSON, over 1 MB, no token or client certificate, invalid PEM, or an expiry in the past.

  • Fix: Run the plugin by hand and check its output format; upgrade the plugin if it is outdated.

  • Retry-safe: no

exec-interactive-required

Exec plugin needs a terminal. The kubeconfig exec block sets interactiveMode: Always; Piceli runs plugins without a terminal.

  • Fix: Log in with the plugin’s own command first (for example kubelogin get-token or gcloud auth login) and use interactiveMode: IfAvailable or Never.

  • Retry-safe: no

exec-pin-mismatch

Exec command pin mismatch. The resolved exec command’s sha256 differs from exec_sha256 in [target], or the file changed after Piceli pinned it during this run.

  • Fix: Check that the plugin upgrade is expected, then set exec_sha256 to the digest named in the message (shasum -a 256 <resolved path>).

  • Retry-safe: no

exec-plugin-failed

Exec plugin failed. The exec credential plugin could not start or exited with a non-zero status; its own message is on stderr.

  • Fix: Follow the plugin’s message (usually: log in again, for example gcloud auth login, aws sso login, az login), then run the command again.

  • Retry-safe: no

exec-plugin-timed-out

Exec plugin timed out. The exec credential plugin did not finish within exec_timeout_seconds and was stopped.

  • Fix: Run the command again; if it persists, check the plugin’s network access or raise exec_timeout_seconds.

  • Retry-safe: yes

profile-conflict

Profile and kubeconfig both given. --profile was passed together with --kubeconfig or --context; a command reaches a cluster by one or the other.

  • Fix: Pass either --profile NAME or --kubeconfig FILE --context CTX.

  • Retry-safe: no

profile-invalid

Credential profile invalid. A profile name, file or option is not acceptable: the name is not lowercase letters, digits, ., _ or -; the kubeconfig given to piceli login is missing, unreadable or does not define the context (or defines several and --context was omitted); a stored profile is damaged; or the in-cluster service account is incomplete. The message names the cause; nothing was changed.

  • Fix: Fix the name, the kubeconfig path or the context as the message says, then run piceli login NAME --kubeconfig FILE --context CTX again.

  • Retry-safe: no

profile-not-found

Credential profile not found. A target names a credential profile (Target.profile(...), credentials = "NAME", --profile NAME) that was never stored on this machine (and the process is not running inside a cluster, where the service account stands in for every profile).

  • Fix: Store it once with piceli login NAME --kubeconfig FILE --context CTX; piceli profiles lists the stored ones.

  • Retry-safe: no

target-refused

Cluster target refused. The kubeconfig or context is not acceptable (missing or ambiguous context, unsupported user fields, proxy, insecure TLS, non-https server, invalid certificate data) or the cluster’s observed identity differs from the expected one. The message names the cause; nothing was changed.

  • Fix: Fix the kubeconfig, the named context ([target] or --context) or the expected UIDs as the message says, then run the command again.

  • Retry-safe: no

Migration kit (piceli import live, piceli import yaml)

import-discovery-failed

Cluster read failed during import. Listing one of the imported kinds failed (the category, such as rbac-denied or api-unavailable, is shown on stderr). Nothing was written.

  • Fix: Grant list on ConfigMaps, Secrets, Services, PersistentVolumeClaims, Deployments and NetworkPolicies in the namespace, or retry when the API server is reachable.

  • Retry-safe: yes

import-manifests-invalid

Manifest directory invalid. piceli import yaml found no directory, a file that is not YAML or JSON, a document without apiVersion, kind and metadata.name, an object declared twice, or objects in more than one namespace.

  • Fix: Fix the file named on stderr, or pass --namespace to choose the namespace.

  • Retry-safe: no

import-name-invalid

Invalid app name. The app name (--name, or the namespace by default) is not a DNS label.

  • Fix: Pass --name with lowercase letters, digits and - (at most 63 characters).

  • Retry-safe: no

import-nothing-selected

Nothing to import. The namespace or directory holds no importable object, or no object matches --select.

  • Fix: Check the namespace or directory and the selectors (kinds are case-sensitive: Deployment/api).

  • Retry-safe: no

import-output-refused

Import output refused. The --out file already exists, or its directory does not exist.

  • Fix: Pass --force to overwrite the file, or choose another path.

  • Retry-safe: no

import-roundtrip-mismatch

Generated module does not reproduce the objects. The generated module did not render back to every imported field. This is a bug in the importer; nothing was written.

  • Fix: Report it with the object kinds involved; meanwhile import the other objects with --select.

  • Retry-safe: no

import-select-invalid

Invalid import selector. A --select value is neither Kind/name (for example Deployment/api) nor label=value.

  • Fix: Fix the selector; repeat --select to import several objects.

  • Retry-safe: no

import-target-invalid

Import target refused. The kubeconfig, context or namespace cannot be used: the file is missing or invalid, the context is unknown or uses exec/auth-provider credentials, the server is not https, or the namespace does not exist.

  • Fix: Pass an explicit --kubeconfig file and --context with static credentials, and an existing --namespace.

  • Retry-safe: no

Deploying a pipeline from source (piceli deploy)

deploy-events-config-invalid

Deploy events configuration unusable. Export of deploy events was asked for (--otlp-endpoint or OTEL_EXPORTER_OTLP_*) but the endpoint, headers, protocol, timeout or service name is malformed. Printed as a warning: the deploy itself is not affected and nothing is exported.

  • Fix: Fix the OTLP endpoint (http(s)://host:port, no credentials in the URL), OTEL_EXPORTER_OTLP_HEADERS (key=value,…) and OTEL_EXPORTER_OTLP_PROTOCOL (http/protobuf or http/json).

  • Retry-safe: no

deploy-events-export-failed

Deploy events not exported. The OTLP endpoint was unreachable, answered with an error or did not answer within the bound (3 s by default, OTEL_EXPORTER_OTLP_TIMEOUT, at most 10 s). Printed as a warning: the deploy itself is not affected and the events are not retried.

  • Fix: Check the endpoint and its network path from the runner; the next run exports its own events.

  • Retry-safe: yes

deploy-plan-file-invalid

Plan file unreadable. The file given to piceli deploy --apply is not a readable piceli.deploy-plan-file.v1 document (missing, truncated, another schema, or a malformed field).

  • Fix: Use the file piceli deploy … --plan --out FILE wrote, unchanged (for example the CI artifact of the plan job).

  • Retry-safe: no

deploy-plan-file-mismatch

Plan file does not match. --approve is not the plan file’s combined hash, or the plan file was made for another pipeline, owner or declared target.

  • Fix: Approve the combined hash printed with this plan file (its combined_hash), with the pipeline module it was planned from.

  • Retry-safe: no

deploy-plan-target-mismatch

Plan made against another cluster. The kubeconfig of the applying runner reaches a cluster or namespace whose UIDs differ from the ones the plan file recorded.

  • Fix: Apply with the kubeconfig the plan was made with, or plan again against this cluster.

  • Retry-safe: no

deploy-ref-ambiguous

Ambiguous –ref. A bare --ref REV needs a pipeline whose declared sources are all one repository, and cannot be combined with other --ref values; or two builds declare the same source name at different paths.

  • Fix: Name each source: --ref SOURCE=REV (repeat the option per source).

  • Retry-safe: no

deploy-ref-checkout-failed

Checking out the revision failed. git worktree add could not check the pinned commit out into a temporary directory (disk space, a checkout filter such as Git LFS without its objects, or file permissions).

  • Fix: Fix the cause git reports on stderr (for example git lfs fetch) and run the command again.

  • Retry-safe: yes

deploy-ref-invalid

Invalid –ref value. A --ref value is not SOURCE=REV or REV (a source name of [A-Za-z0-9._-], a revision without spaces, ranges or a leading -), or it names the same source twice.

  • Fix: Pass --ref SOURCE=REV once per source, for example --ref app=main or --ref app=$GITHUB_SHA.

  • Retry-safe: no

deploy-ref-model-differs

Pipeline module differs from the commit. With --ref the pipeline module is imported from the working tree, and its Python files (the module and the .py files beside it) must equal the pinned commit so the release is exactly that commit; they differ.

  • Fix: Commit (or stash) the module’s changes and plan again, or run the deploy from a checkout of that commit (as CI does).

  • Retry-safe: no

deploy-ref-source-unknown

–ref names an unknown source. --ref SOURCE=REV names a source that no build of the pipeline declares in its inputs.toml.

  • Fix: Use a source name from the builds’ inputs.toml (piceli deploy … --plan --json lists them under stages.inputs.sources).

  • Retry-safe: no

deploy-ref-unknown

Unknown revision. The revision given to --ref is not a commit in the source’s local repository (a typo, or a branch, tag or commit that was not fetched).

  • Fix: Fetch it (git fetch) or pass an existing branch, tag or full commit SHA.

  • Retry-safe: yes

pipeline-apply-crashloop

Release cannot start. The release was applied but a workload’s new pods cannot start (crash loop, image pull or configuration error; see apply-crashloop), so the apply stopped at once. The result’s diagnosis has one entry per failing workload with redacted log tails and events.

  • Fix: Fix the cause, then deploy again (or --resume), or roll back with piceli release rollback previous --spec MODULE:ATTR. piceli release status --spec MODULE:ATTR --run RUN_ID shows the causes again.

  • Retry-safe: no

pipeline-apply-not-ready

Release not ready. The release was applied but did not become ready in time; the result has the execution’s failure_category.

  • Fix: Fix the workload (image, probe, resources) and continue with piceli deploy MODULE:ATTR --resume, or deploy the previous source.

  • Retry-safe: yes

pipeline-check-not-referenceable

Python check cannot be named in the plan. A Checks.python(...) in the Pipeline calls a lambda, a local function or another object without a module-level name, so the plan and its hash cannot describe it.

  • Fix: Pass a module-level function, or a module:function / path/file.py:function entry string.

  • Retry-safe: no

pipeline-checks-failed

Post-deploy checks failed. The release was applied but at least one check failed, so the run is not ready. With rollback_on_failed_checks the previous release was re-applied (see checks.rollback in the result).

  • Fix: Read the check results in the result JSON, fix the application and deploy again.

  • Retry-safe: no

pipeline-checks-unavailable

Checks runner unavailable. The pipeline declares checks but piceli.checks is not available in this installation.

  • Fix: Install a Piceli version that ships piceli.checks, or remove checks= from the Pipeline.

  • Retry-safe: no

pipeline-delivery-failed

Image delivery failed. Delivering a built image did not succeed and its receipt carries no more specific code.

  • Fix: Check the registry or node, then continue with piceli deploy MODULE:ATTR --resume.

  • Retry-safe: yes

pipeline-image-not-pinned

Image not pinned. A workload uses an image that is neither a build handle nor pinned by digest, so the release could reference a tag that moves.

  • Fix: Pin it as repository@sha256:<digest> (for example from docker buildx imagetools inspect), or build it with the pipeline.

  • Retry-safe: no

pipeline-image-unknown

Build image unknown. The app uses a build image handle (build["name"]) that no build of the pipeline produces.

  • Fix: Use one of the build’s [[output.image]] names, or add the build that produces it to build=.

  • Retry-safe: no

pipeline-invalid

Pipeline declaration invalid. The Pipeline, Target, Build, delivery strategy or secrets are inconsistent (for example a build without deliver=, an unknown node alias or a multi-platform build).

  • Fix: Fix the declaration as the message on stderr describes; piceli deploy … --plan checks it again without executing anything.

  • Retry-safe: no

pipeline-load-failed

Pipeline module failed to import. Importing the pipeline’s module raised an exception (the rejection’s message names its type and text; never a traceback).

  • Fix: Fix the module until python path/to/app.py imports cleanly, then run the command again (PICELI_DEBUG=1 prints the traceback on stderr).

  • Retry-safe: no

pipeline-locked

Pipeline release locked. Another run holds the pipeline’s lock: another process using this state directory, or, with state="cluster", another runner holding the release’s Lease (the rejection’s lock names the holder and when its lease expires).

  • Fix: Wait for the other run to finish, then run the command again. A runner that died frees the lock when its lease expires (piceli state show shows the holder).

  • Retry-safe: yes

pipeline-mirror-failed

Image mirror failed. Copying a mirror= image did not succeed and its receipt carries no more specific code.

  • Fix: Check the source and delivery registries, then continue with piceli deploy MODULE:ATTR --resume.

  • Retry-safe: yes

pipeline-mirror-not-pinned

Mirror not pinned by digest. A mirror= entry of NodeLoopbackRegistry or Registry has no @sha256: digest. A tag can move, so only digest-pinned images are copied.

  • Fix: Pin the image, for example docker.io/library/redis@sha256:<digest> (find the digest with docker buildx imagetools inspect IMAGE:TAG).

  • Retry-safe: no

pipeline-not-delivered

Pipeline images not delivered. piceli release plan|preview|diff|apply --spec MODULE:ATTR plans a new release from the pipeline’s current model, but a build image it uses was not built from the current build inputs and delivered (or no image of the pipeline was ever delivered). The release commands never build.

  • Fix: Run piceli deploy MODULE:ATTR (it builds and delivers only what changed). Commands on existing releases (status, rollback, secret show, stop, resume, check) use the recorded images and need no new delivery.

  • Retry-safe: no

pipeline-not-found

Pipeline not found. The MODULE:ATTR given to piceli deploy (or to piceli release … --spec) does not name a file or module, or its attribute is not a Pipeline.

  • Fix: Pass path/to/app.py:pipeline or package.module:pipeline naming a piceli.Pipeline object.

  • Retry-safe: no

pipeline-nothing-to-resume

Nothing to resume. --resume found no interrupted or failed run in the pipeline’s state directory (the latest run finished, stopped at --until, or none exists).

  • Fix: Run piceli deploy MODULE:ATTR --plan and approve a new run; unchanged stages are skipped.

  • Retry-safe: no

pipeline-plan-changed

Combined plan changed. The hash passed to --approve is not the combined hash of the current plan: a source, image, cluster object or the pipeline changed since it was planned.

  • Fix: Run piceli deploy MODULE:ATTR --plan again, review it and approve the new combined hash.

  • Retry-safe: no

pipeline-preview-changed

Release plan exceeds the approved preview. The run was approved while its images did not exist, so the approval covered the placeholder preview’s ownership outcome. After delivery the real release plan adopts, replaces or deletes an object that the preview did not show (an object appeared, changed owner or was declared since). Nothing was applied; build and delivery are finished.

  • Fix: Run piceli deploy MODULE:ATTR --plan again (build and delivery are skipped), review the real release plan and approve its combined hash.

  • Retry-safe: no

pipeline-preview-not-approvable

Preview hash is not an approval. The hash passed to --approve is the preview_hash of a release preview computed with placeholder images (pending-build/pending-delivery). A preview shows structure and ownership only and is never approvable.

  • Fix: Approve the combined_hash from piceli deploy MODULE:ATTR --plan instead. It approves the build, the delivery and a release that adopts, replaces or deletes at most what the preview showed. To review the real release plan first, run --until deliver, then --plan again.

  • Retry-safe: no

pipeline-registry-incompatible

Existing registry cannot be adopted. NodeLoopbackRegistry(adopt=NAME) names a live Deployment that is not a compatible loopback registry: not on the host network, another port or node, data on other storage than the declared host_path=/existing_claim=, or a selector with match expressions.

  • Fix: Declare matching port=, host_path= or existing_claim=, or use replace=NAME to recreate the Deployment (the plan shows whether its data carries over).

  • Retry-safe: no

pipeline-registry-not-ready

Node-loopback registry not ready. The registry release of NodeLoopbackRegistry was applied but did not become ready (image pull, volume or node problem, or its port is held by a process outside the namespace).

  • Fix: Inspect the registry pod with a read-only tool, fix it, then run piceli deploy MODULE:ATTR --resume. A registry that already runs in the namespace is detected at plan time (pipeline-registry-takeover-required).

  • Retry-safe: yes

pipeline-registry-takeover-required

Existing registry needs takeover. Another Deployment in the namespace already holds the node-loopback registry’s port on its node, or a Deployment with the registry’s name exists and is not managed by the registry release; a second registry could never start.

  • Fix: Take the live registry over with NodeLoopbackRegistry(port=PORT, adopt="NAME") (its objects and data are kept) or replace="NAME" (its Deployment is backed up and recreated), or choose another port=/name=.

  • Retry-safe: no

pipeline-registry-unreadable

Registry state unreadable. Planning the node-loopback registry could not list the namespace’s Deployments or read the registry node (to find a live registry and the node platform).

  • Fix: Check that the kubeconfig user may list Deployments in the namespace and get the node, then plan again.

  • Retry-safe: yes

pipeline-release-refused

Release refused. The release engine refused the plan or apply stage (for example an unmanaged object that needs adoption); stderr has the reason and the blocking objects.

  • Fix: Apply the suggestion on stderr (for example adopt=["Kind/name"] or replace=[…] on the Pipeline), then plan again.

  • Retry-safe: no

pipeline-resume-changed

Pipeline changed since the run was approved. --resume would re-run a stage whose inputs no longer match the approved run (a build’s staged files, the release, or the app’s target or owner).

  • Fix: Plan and approve a new run: piceli deploy MODULE:ATTR --plan.

  • Retry-safe: no

pipeline-stage-error

Stage failed unexpectedly. A stage raised an unexpected local error (a file or tool could not be used); stderr has the error type.

  • Fix: Fix the local problem, then continue with piceli deploy MODULE:ATTR --resume.

  • Retry-safe: yes

prerollout-claim-exclusive

Upgrade check cannot share a ReadWriteOncePod claim. The upgrade check mounts the workload’s retained claim read-only in a second pod, but the claim is ReadWriteOncePod and a running pod holds it: Kubernetes allows only one pod to use it, so the check pod could never start.

  • Fix: Use ReadWriteOnce for a claim the upgrade check must open beside the running pod, drop UpgradeCheck for that workload, or check the store from inside the workload (a startup check).

  • Retry-safe: no

prerollout-failed

Pre-rollout check failed. The check Job (new image, the workload’s real Secrets, mounts and security context) exited non-zero. Nothing of the release was applied, so the running pods are unchanged. The run summary keeps the exit code and a bounded, scrubbed tail of the log.

  • Fix: Read stages.prerollout.output.checks in the run (piceli runs, piceli watch --json), fix the image or the configuration and deploy again.

  • Retry-safe: no

prerollout-mount-missing

Pre-rollout check would fail to start. A workload with a pre-rollout check (App.pre_rollout) reads a Secret or ConfigMap (environment, envFrom or a mount) that the release does not create and that is absent from the cluster or lacks the referenced key. The check Job would fail to start, and so would the workload’s pods. Planning refuses it; a run refuses it before creating the Job.

  • Fix: Create the Secret or ConfigMap (or add the key) in the target namespace, or declare it on the app so the release creates it, then plan again.

  • Retry-safe: no

prerollout-not-startable

Pre-rollout check pod could not start. The check pod never started: a Secret or ConfigMap could not be mounted or read, the image could not be pulled, or the pod could not be scheduled (for example a ReadWriteOnce claim on another node). The workload’s own pods would fail the same way. Nothing of the release was applied.

  • Fix: See category and reason in stages.prerollout.output.checks (mount, image, scheduling), fix the object, image or claim, and deploy again.

  • Retry-safe: no

prerollout-timeout

Pre-rollout check timed out. The check Job did not finish within its timeout_seconds (image pull, mount and command included). Nothing of the release was applied. The Job was removed.

  • Fix: Raise timeout_seconds on App.pre_rollout if the check is legitimately slow, or fix what makes it hang, then deploy again.

  • Retry-safe: yes

prerollout-unavailable

Pre-rollout check Job could not be created. The Kubernetes API refused to create the check Job (missing permission to create Jobs, quota or admission policy). The check is required, so the release is not applied.

  • Fix: Grant the deploying identity permission to create, read and delete Jobs and to read Pods and their logs in the target namespace, or remove the pre-rollout check.

  • Retry-safe: no

Shared deployment state and release locks (state = "cluster", piceli state …)

release-locked

Release locked. Another runner holds the release’s Lease in the namespace ([release] state = "cluster"); the rejection names the holder and when its lease expires.

  • Fix: Wait for the other run to finish, then run the command again. A runner that died frees the lock when its lease expires (piceli state show shows the holder).

  • Retry-safe: yes

state-access-denied

Shared state not permitted. The target’s kubeconfig may not read or write the shared state: it needs get, create, patch and delete on secrets and leases (coordination.k8s.io) in the release namespace.

  • Fix: Grant those verbs to the deploying identity in the namespace (see docs/state.md), then run the command again.

  • Retry-safe: no

state-corrupt

Shared state unreadable. The shared state in the namespace does not match its manifest (a missing or altered chunk Secret, an unknown schema) or a snapshot or export holds an unsafe member.

  • Fix: Do not edit piceli-state-* Secrets by hand. Restore the state from an export with piceli state import, or ask the owner.

  • Retry-safe: no

state-export-invalid

State export unreadable. The file given to piceli state import is not a piceli.state-export.v1 document, its digest does not match, or it was exported for another release or namespace.

  • Fix: Use the unchanged file piceli state export wrote for this release.

  • Retry-safe: no

state-import-changed

Import approval does not match. The --approve digest of piceli state import is not the digest of this export for this release and state backend.

  • Fix: Run piceli state import without --approve, review it, then approve the digest it prints.

  • Retry-safe: no

state-import-partial

State export without secrets. The export holds no secret material (secret store, stored discovery, execution journal, backups); importing it would make the next release generate new secret values.

  • Fix: Import an export made with --include-secrets --key-file, or pass --allow-partial when regenerating every secret is intended.

  • Retry-safe: no

state-key-required

State key needed. Exporting secret material (--include-secrets) or importing an export that holds it needs --key-file with the key (at least 32 characters, in a file only its owner can read); or the key does not decrypt the export.

  • Fix: Pass --key-file naming an owner-only (mode 0600) file with the key used for the export.

  • Retry-safe: no

state-layout-mismatch

Shared state of another kind. The namespace already holds shared state for this release name written by another kind of spec (a pipeline versus a release.toml).

  • Fix: Give the release another name, or keep using the spec that wrote the state.

  • Retry-safe: no

state-lock-lost

Release lock lost. This run’s release lock was taken over by another runner (its lease expired while this run could not renew it), so this run stopped writing the shared state (fencing).

  • Fix: Check who holds the lock with piceli state show; when that run finished, continue with piceli deploy … --resume (or piceli release resume).

  • Retry-safe: no

state-output-exists

Export file exists. piceli state export --out names a file that already exists.

  • Fix: Choose another path, or pass --force to overwrite it.

  • Retry-safe: no

state-too-large

Shared state too large. The compressed state is larger than the shared-state limit (64 chunks of 512 KiB).

  • Fix: Remove releases you no longer need from the catalog, or keep this release on state = "local".

  • Retry-safe: no

state-unavailable

Shared state unreachable. Reading or writing the shared state or its Lease in the release namespace failed (the API server was unreachable or answered an error).

  • Fix: Check that the cluster is reachable with the target’s kubeconfig, then run the command again.

  • Retry-safe: yes

Typed models from CRDs (piceli codegen crd)

codegen-cluster-read-failed

Reading the CRD from the cluster failed. The API server refused or failed the read of the CRD (an HTTP error such as 403, or a transport error). Details are withheld because they could contain credentials.

  • Fix: Check that the kubeconfig user may get customresourcedefinitions and that the cluster is reachable, then run the command again.

  • Retry-safe: yes

codegen-flags-conflict

Code generation options conflict. Pass either a CRD file or --from-cluster; --from-cluster needs --kubeconfig, --context and --crd, and the cluster options only apply with it.

  • Fix: Run piceli codegen crd FILE or piceli codegen crd --from-cluster --kubeconfig F --context C --crd NAME.

  • Retry-safe: no

codegen-output-refused

Code generation output refused. The --out directory does not exist, or the file exists and was not generated by Piceli.

  • Fix: Choose another path, create the directory, or pass --force to overwrite the file.

  • Retry-safe: no

crd-invalid

CRD invalid. The input is not an apiextensions.k8s.io/v1 CustomResourceDefinition with a structural schema for the requested version (unparsable YAML/JSON, no CRD, no group or kind, an unknown –version, or no openAPIV3Schema).

  • Fix: Pass the CRD manifest the operator publishes (for example its release’s CRD file) and, if needed, --version with a version the CRD lists.

  • Retry-safe: no

crd-not-found

CRD not found. --crd NAME names no CRD in the file or the cluster, or the file holds several CRDs and --crd was not given.

  • Fix: Pass --crd with the CRD’s name (plural.group, such as certificates.cert-manager.io) or its kind; kubectl get crd lists them.

  • Retry-safe: no

Environments (App.environment, --env, --diff-env)

environment-invalid

Environment override invalid. An environment override names no suitable declared object (a typo, or an override the object cannot take, such as replicas on a ConfigMap), is ambiguous, disables a component another workload still reads, or holds a value the object refuses.

  • Fix: Fix the override as the message says; piceli render MODULE:ATTR --env NAME shows the result without a cluster.

  • Retry-safe: no

environment-required

Environment required. The pipeline declares one target per environment, so the command must say which one (--env); or --diff-env was given without --env.

  • Fix: Add --env NAME (one of the pipeline’s environments).

  • Retry-safe: no

environment-unknown

Unknown environment. --env (or --diff-env) names an environment the app does not declare, or, for a pipeline, one it has no target for.

  • Fix: Use a declared name (app.environment(name, ...)); a pipeline needs target={name: Target...} for each environment it deploys.

  • Retry-safe: no

environment-unsupported

Environment not supported here. --env selects an environment of an App; the target is a DeploymentComposition, a composition function that does not return an App, or a release.toml spec.

  • Fix: Return the App from the composition function, or use a pipeline (--spec MODULE:ATTR) whose app declares the environment.

  • Retry-safe: no

Runner hygiene (piceli cache, piceli doctor, piceli runs, cache_budget=)

cache-arguments-conflict

Conflicting cache arguments. The command was given both a pipeline and --state-dir, or --env without a pipeline.

  • Fix: Name the pipeline (MODULE:ATTR, optionally with --env) or a state directory (--state-dir), not both.

  • Retry-safe: no

cache-budget-invalid

Cache budget invalid. --budget or Pipeline(cache_budget=...) is not a positive size.

  • Fix: Give bytes or a size with a unit, for example 20GiB, 500MB or 1073741824.

  • Retry-safe: no

cache-over-budget

State directory still over its budget. After removing everything a prune may remove, a state directory still uses more than its budget. What is left is the release state, receipts and the runs a resume or a rollback of the last releases needs, which are never pruned.

  • Fix: Run piceli cache status to see what is left, then raise the budget, lower --keep-last, or move the state directory to a larger disk.

  • Retry-safe: no

heavy-command-empty

No command to run. piceli heavy run was given no command after --.

  • Fix: Pass the command after --, for example piceli heavy run -- cargo test.

  • Retry-safe: no

heavy-command-missing

Command could not be started. The command given to piceli heavy run does not exist or is not executable in the current directory.

  • Fix: Check the program name and PATH; the command is run without a shell.

  • Retry-safe: no

heavy-lock-timeout

Heavy-work lock still held. Another process held the machine-wide heavy-work lock for the whole --wait.

  • Fix: Run piceli heavy status to see the holder, then retry with a larger --wait once it finishes.

  • Retry-safe: yes

runner-disk-low

Runner disk space low. The free space where the state directory or the temporary directory lives is below what the next build needs (estimated from the last build receipts).

  • Fix: Free space: piceli cache prune (add --budget), prune the container engine’s build cache, or use a runner with a larger disk.

  • Retry-safe: yes

runner-memory-low

Runner memory low. The runner’s available memory is below what the next build needs.

  • Fix: Stop other work on the runner or use a runner with more memory, then run the command again.

  • Retry-safe: yes

runner-tool-missing

Required tool missing. A tool the pipeline uses is not installed or does not run: docker or docker buildx for a build, kubectl for a node-loopback registry’s port forward.

  • Fix: Install the tool on the runner (and put it on PATH), then run piceli doctor again.

  • Retry-safe: no

watch-no-run

No deploy run to watch. piceli watch found no run journal in the pipeline’s state directory (none started yet, another state directory, or the --run id does not exist).

  • Fix: Start a run with piceli deploy MODULE:ATTR, check the pipeline or --state-dir, and list run ids with piceli runs; with shared state run piceli state pull first.

  • Retry-safe: yes

watch-timeout

Run had not settled. piceli watch --timeout passed while the run was still going; the run itself is unaffected.

  • Fix: Watch again (the run continues), or raise --timeout; read the last state with piceli watch --once.

  • Retry-safe: yes

Owner-declared approval policies (auto_approve, --approve-if-policy)

approval-policy-exceeded

Plan outside the approval policy. --approve-if-policy planned a change the owner’s policy does not cover: a delete, replace or adopt, a cluster-scoped object or drift the policy does not allow, or more changed objects than max_objects (the policy.violations list names each). Nothing was applied; the plan is stored and its hash printed.

  • Fix: Show the plan to the owner and, after they approve, run the printed command with --approve <hash>. Never widen the policy or split the change to fit it.

  • Retry-safe: no

approval-policy-invalid

Approval policy invalid. The auto_approve policy (ApprovalPolicy(...) in a pipeline, [release] auto_approve in a spec) names an unknown action class, allows delete, replace or adopt (which always need the owner’s approval of the hash), or has a max_objects outside 0-4096.

  • Fix: Only the owner changes the policy: use the classes create, apply, no-op, cluster_scoped and drift in allow, any class in deny, and an integer max_objects.

  • Retry-safe: no

approval-policy-missing

No approval policy declared. --approve-if-policy was given, but the pipeline (auto_approve=) or the spec ([release] auto_approve) declares no policy. Nothing was planned or changed.

  • Fix: Plan (piceli deploy MODULE:ATTR --plan or piceli release plan), show the plan to the owner and run it with --approve <hash> after they approve. Never add a policy yourself: only the owner declares one.

  • Retry-safe: no

approve-if-policy-flags-conflict

Flags cannot be combined with –approve-if-policy. release apply --approve-if-policy was combined with --approve, --auto-approve, --rotate, --adopt, --replace or --adopt-all-desired. Only the owner’s declared policy decides what applies without a human hash, so no flag may add to the plan.

  • Fix: Drop the other flags, or plan with them (piceli release plan …) and ask the owner to approve the hash.

  • Retry-safe: no

GitOps handoff (piceli publish, piceli render --out) and the GitOps controller (piceli gitops …, piceli promote)

candidate-rehearsal-failed

Candidate rehearsal failed. A release candidate rehearses each release of Candidate(rehearse=) (0.99.0): the build host moves the rehearsal host’s branch pointer to the prebuilt closure and waits for the host to deploy it and run its checks. The host reported failed, the wait timed out, or the build host could not start the rehearsal. The candidate is failed; its detail reads RELEASE: REASON: TEXT and the rehearsal lists its checks.

  • Fix: Read the rehearsal in piceli gitops candidate list --json and the host’s own status (piceli host status), fix the cause, then run piceli gitops candidate request COMMIT to rehearse again.

  • Retry-safe: yes

candidate-release-failed

Candidate prebuild failed. A release candidate prebuilds the NixReleases named in Candidate(releases=, rehearse=) (0.99.0), and the build host that claimed one answered build-failed: the source could not be fetched at the head of release_branch, the Nix build failed, or signing, pushing or uploading the manifest failed. A named release the composition no longer declares fails the same way. The candidate is failed; its detail reads RELEASE: REASON: TEXT.

  • Fix: Read the candidate’s releases in piceli gitops candidate list --json, fix the cause, then run piceli gitops candidate request COMMIT: only the failed parts start again.

  • Retry-safe: yes

candidate-release-not-pinned

Release branch pins another commit. A release candidate prebuilds a NixRelease at the head of its source’s release_branch (0.99.0), and only when that head’s flake.lock pins the gate’s input to the candidate’s commit. The head pins another commit (or the branch, or its flake.lock, could not be read), so the candidate waits in building; its detail names the head and what it pins.

  • Fix: Update the release branch so its flake.lock pins the candidate’s commit (for example nix flake lock --update-input app at that commit) and push it; the controller prebuilds on its next poll.

  • Retry-safe: yes

candidate-step-failed

Candidate step failed. A step of a release candidate (Candidate(steps=[Step(...)])) failed on its build host: its command exited non-zero or could not start, the host lacks one of the step’s secrets, the checkout was not at the branch’s head, or the host could not run it at all. Nothing was pushed; the later steps and the prebuilds wait.

  • Fix: Read the step’s reason and log tail in piceli gitops candidate list, fix the command or the build host, then run piceli gitops candidate request COMMIT.

  • Retry-safe: yes

candidate-step-push-rejected

Candidate step push refused. The build host could not push a candidate step’s commit: the branch moved again after one retry on its new head, the records conflict with the new head, the push credential is for another host, or the remote refused it (no write access).

  • Fix: Check the build host’s write git-token (piceli secrets git-token NAME --host HOST --prompt) and the branch’s protection, then piceli gitops candidate request COMMIT.

  • Retry-safe: yes

candidate-step-timeout

Candidate step timed out. A candidate step’s command ran longer than its Step(timeout=) and was stopped, or its build host did not answer in that time and 15 minutes more. Nothing was pushed by the stopped command.

  • Fix: Make the command faster or raise Step(timeout=); check that the build host is up; then piceli gitops candidate request COMMIT.

  • Retry-safe: yes

candidate-step-unrecorded-change

Candidate step changed other paths. A candidate step’s command changed a path that matches neither the step’s records= nor its source’s Source(records=), so its commit could start a run. Nothing was pushed.

  • Fix: Make the command write only its record files, or add their paths to Step(records=) and Source(records=); then piceli gitops candidate request COMMIT.

  • Retry-safe: no

checks-failed-rolled-back

Checks failed; rolled back and not retried. A GitOps controller deployed a revision whose post-deploy checks failed, and the release was rolled back (rollback_on_failed_checks). The controller does not try that revision again: retrying would apply it, fail and roll back again.

  • Fix: Read the failed checks in the run (piceli runs, the deployment history), push a fix (a new revision) or run piceli gitops sync ENV to try the same revision again.

  • Retry-safe: no

gitops-alarm-failed

Controller alarm not sent. A target of Controller(alarms=Alarms(...)) (ntfy or a webhook) refused the alarm, timed out, or its URL or token variable is unset (the key is missing from the Alarms(secret=) Secret). The poll and the deploys go on; the failure is listed under controller.alarms.failures in the status.

  • Fix: Check the target’s URL, that the Secret named by Alarms(secret=) has a key for each variable the targets name, and that the controller can reach the target; piceli gitops alarms shows the failed sends.

  • Retry-safe: yes

gitops-approval-stale

Approval does not match. piceli gitops approve ENV HASH named a plan hash the environment is not waiting for: a newer push or re-plan replaced the plan, or the environment is not waiting for approval.

  • Fix: Run piceli gitops status, review the pending plan and approve the hash it shows.

  • Retry-safe: yes

gitops-artifact-changed

Artifact changed since approval. --approve does not match the digest of this render’s artifact: the model, the options or the annotations changed.

  • Fix: Run piceli publish without --approve, review the new digest and approve it.

  • Retry-safe: no

gitops-build-cancelled

Build cancelled. piceli gitops cancel NAME (or the UI’s Cancel) dropped the build: unclaimed it was never built; a build host that held it stopped before its next stage and its answer was refused.

  • Fix: Start it again with piceli gitops build NAME (or piceli gitops sync NAME); a NixRelease also publishes its next new tag or head.

  • Retry-safe: yes

gitops-build-not-running

No build to cancel. piceli gitops cancel NAME named a NixRelease with no planned, queued or running publish, or an environment that waits for no build on a build host or in the cluster.

  • Fix: Run piceli gitops builds --target NAME --state active to see what runs; nothing needs cancelling when it lists nothing.

  • Retry-safe: yes

gitops-build-ref-unknown

Build names an unknown ref. piceli gitops build NAME --ref REF (or the UI’s Build now) named a ref the target does not have: a NixRelease builds a tag of its pattern, its followed branch or a full 40-character commit; an environment builds only the commit or ref it follows.

  • Fix: Run piceli gitops status for the tags and heads the controller sees, push the tag first, or promote another commit to the environment with piceli promote.

  • Retry-safe: yes

gitops-canary-failed

The new controller failed its canary. piceli gitops enable infra.py --approve HASH --canary ran the new controller image once, as a Job that imports the composition and plans every environment without applying anything, and it failed: the composition does not import on the new version, an environment does not resolve, load its build specs or plan (a refusal such as retained-content-differs), or the Job could not run (the image cannot be pulled, an image older than 0.28.0 has no gitops canary, or it timed out). The live controller was not replaced.

  • Fix: Read the first failure in the message and the canary object of the JSON; fix the composition or pick another image, then run the command again. --force replaces the controller anyway.

  • Retry-safe: no

gitops-cluster-failed

Cluster request failed. The kubeconfig was refused, the API server was unreachable, or it refused a request of the controller’s install, status or requests (the HTTP status is in the message).

  • Fix: Check the kubeconfig, context and your RBAC in the controller’s namespace, then run the command again.

  • Retry-safe: yes

gitops-config-invalid

Controller settings invalid. A piceli gitops enable option or the controller’s config file is invalid: the pipeline entry, a branch or tag glob, --poll (10s to 1h), the namespace, a platform, --storage or a Secret name.

  • Fix: Fix the option named in the message and run the command again.

  • Retry-safe: no

gitops-controller-locked

Controller already running. Another controller process holds the state directory’s lock (the Deployment’s pod, or a local gitops run).

  • Fix: Stop the other process, or use another --state-dir.

  • Retry-safe: yes

gitops-empty

Nothing to hand off. The render has no object left to publish (for example only Secrets, left out by --secrets external).

  • Fix: Check the target and --env; piceli render shows what it renders.

  • Retry-safe: no

gitops-env-stop-declared

Environment declared stopped. piceli env start ENV named an environment the composition declares Environment(stopped=True): the declaration wins over a start request, so the controller keeps it stopped.

  • Fix: Remove stopped=True from the environment in the composition and push it; the controller starts it on its next poll.

  • Retry-safe: no

gitops-git-failed

Git command failed. git ls-remote, clone, fetch or checkout failed or timed out (wrong URL, credentials, host key, network, or a commit missing from the mirror). Since 0.19.0 the message carries the last lines of Git’s stderr with the credentials masked (last_error_detail in piceli gitops status, the controller’s log, the piceli.controller.git.failed event); piceli gitops wait for a commit the controller cannot see fails with it after two failed polls.

  • Fix: Read the message (for example Invalid username or token: renew the token in the credentials Secret); otherwise check the URL, known_hosts for SSH and the network from the cluster. The controller retries on its next poll.

  • Retry-safe: yes

gitops-history-unavailable

No deployment history. piceli gitops history, show or compare found no piceli.gitops-history.v1 document: the controller has not published its history yet (the ConfigMap piceli-gitops-history, or history.json in --state-dir), or it is not a composition controller.

  • Fix: Wait for the controller’s next poll and check piceli gitops status; the history is published after each step.

  • Retry-safe: yes

gitops-image-unpinned

Controller image not pinned. --image is not pinned by digest. The controller never runs a moving tag such as latest.

  • Fix: Pass registry/repo@sha256:<digest> of a Piceli image (see the GitOps page for how to build one).

  • Retry-safe: no

gitops-image-unresolved

Placeholder image in a GitOps handoff. An object uses a placeholder image (a pipeline build that has not run, or an image the spec does not pin), which no controller can pull.

  • Fix: Render from a release.toml whose [images] or receipts pin every image by digest, or deploy the pipeline with piceli deploy.

  • Retry-safe: no

gitops-nix-release-failed

NixRelease publish failed. The build host that claimed a NixRelease’s publish answered build-failed: the source could not be fetched at the commit, the tag points at another commit, the Nix build failed, or signing, pushing or uploading the manifest failed. The release stays failed with the host’s reason and output tail in piceli gitops status.

  • Fix: Read the release’s failure (reason, log_tail) in piceli gitops status --json, fix the cause (a newer tag publishes again), or retry the same tag with piceli gitops sync NAME.

  • Retry-safe: yes

gitops-not-installed

No GitOps controller. The controller’s ConfigMap is not in the namespace (--namespace, default piceli-system): it was never enabled there, or it was disabled.

  • Fix: Install it with piceli gitops enable …, or pass the namespace it runs in.

  • Retry-safe: no

gitops-pipeline-invalid

Pipeline not loadable. The pipeline entry does not exist in the commit, raised while importing, or is not a Pipeline.

  • Fix: Fix the pipeline in the branch (it must load with piceli render PATH:ATTR at the repository root) and push again.

  • Retry-safe: yes

gitops-plan-changed

Controller plan changed. The hash given to --approve is not the hash of the current plan: the options or the live objects changed since the plan was reviewed.

  • Fix: Run the command without --approve, review the new plan and approve its hash.

  • Retry-safe: yes

gitops-port-unavailable

Environment support missing. The controller’s Piceli has no per-branch environments or cluster builds (an image older than this feature).

  • Fix: Run the controller with a Piceli image of this version or later (piceli gitops enable --image …).

  • Retry-safe: no

gitops-promote-not-allowed

Environment does not take promotions. piceli promote ENV BRANCH@SHA named an environment the controller does not know, or one whose follow has no Promote().

  • Fix: Promote to an environment that follows Promote() (piceli gitops status lists them), or add Promote() to its follow and run piceli gitops enable again.

  • Retry-safe: no

gitops-promote-unknown

Promotion refused. piceli promote BRANCH@SHA named a commit that is neither the head nor the deployed commit of a branch the controller watches, or the main branch matches no --branches glob.

  • Fix: Promote a commit the controller deployed on that branch (piceli gitops status shows them), or enable the controller with the main branch in --branches.

  • Retry-safe: no

gitops-push-failed

Artifact push failed. The registry refused or broke off the push. The detail is withheld because it could contain server messages.

  • Fix: Check the registry, the repository and --credentials, then run the same command again; pushes are content-addressed.

  • Retry-safe: yes

gitops-repo-invalid

Repository URL refused. The --repo URL is not an https://, ssh://, file:// or git@host:path URL, or it carries credentials (user:password@), which would end up in the ConfigMap, the status and process lists.

  • Fix: Pass the URL without credentials and put them in a Secret named by --credentials-secret (username/password or ssh-privatekey/known_hosts).

  • Retry-safe: no

gitops-request-invalid

Controller request invalid. An approval, promotion or pushed image request is malformed (a plan hash that is not sha256:<64 hex>, not BRANCH@SHA, an unknown kind) or names a branch the controller does not watch. The controller drops it and lists it under rejected_requests.

  • Fix: Fix the arguments (piceli gitops approve ENV sha256:…, piceli promote BRANCH@SHA) and send it again.

  • Retry-safe: no

gitops-run-interrupted

Deploy interrupted by a controller restart. The GitOps controller stopped (a crash, an out-of-memory kill, a node drain) while a deploy step or run was in progress; it marked the run interrupted when it started again.

  • Fix: Nothing to do: the controller retries the environment. Read piceli gitops status and the controller’s last exit (controller_live) for why it stopped.

  • Retry-safe: yes

gitops-run-unknown

Run or environment not in the history. The environment, run id or revision is not in the controller’s published history (it keeps the newest 20 runs per environment), or compare found fewer than two runs to compare.

  • Fix: List what the history holds with piceli gitops history [ENV] and pass a run’s id or run_id (a unique prefix works).

  • Retry-safe: no

gitops-secret-value

Secret value in a GitOps handoff. A non-Secret object holds a value Piceli redacts (a field or env var named like a password, token or credential) or injects at apply time from its secret store.

  • Fix: Move the value into a Secret provided outside the files, or list a field that is not secret in the object’s piceli.io/public-fields annotation.

  • Retry-safe: no

gitops-secrets-present

Secret in a GitOps handoff. The render holds a Secret object. A published artifact or rendered directory is applied by Flux or Argo CD as it is and must never carry secret values.

  • Fix: Provide the Secret outside the files (a SOPS-encrypted file, an ExternalSecret, or created by hand) and pass --secrets external to leave Secrets out.

  • Retry-safe: no

gitops-state-invalid

Controller state unreadable. The controller’s state or request file is not valid JSON or has an unknown schema (a newer Piceli wrote it, or the volume was edited).

  • Fix: Run the controller with the Piceli version that wrote the state, or move the state file aside to start over (branch environments are kept).

  • Retry-safe: no

gitops-step-failed

Controller step failed. A build, deploy or teardown of one branch failed with an error that has no code of its own. The controller retries with backoff and then leaves the branch failed until its next push; other branches are not affected.

  • Fix: Look at piceli gitops status and the controller’s log, fix the branch and push again.

  • Retry-safe: yes

gitops-target-invalid

Invalid publish target. --to is missing or not oci://host[:port]/repository[:tag], or an annotation value (--source, --revision) is not short printable text.

  • Fix: Pass --to oci://registry.example/team/app:tag (plain HTTP only for a loopback registry).

  • Retry-safe: no

gitops-target-required

No cluster or state directory named. The command needs a cluster (--kubeconfig FILE --context NAME; gitops run in its pod: --service-account) or a local controller (--state-dir), and got none or both.

  • Fix: Pass exactly one: --kubeconfig with --context, or --state-dir.

  • Retry-safe: no

gitops-token-expiring

Git token expires soon. A warning, not a failure (0.19.0): GitHub reports that the token in the controller’s credentials Secret expires within 7 days (controller.warnings in piceli gitops status, and the controller’s log). Once it expires every poll fails with gitops-git-failed.

  • Fix: Create a new token and update the password of the credentials Secret (--credentials-secret, in the controller’s namespace) before expires_at; the controller reads it on its next poll.

  • Retry-safe: no

gitops-traceparent-invalid

Traceparent invalid. --traceparent of piceli gitops build or piceli gitops approve is not a W3C Trace Context traceparent: 00-<32 hex>-<16 hex>-<2 hex>, lower case, with a trace id and a span id that are not all zeros.

  • Fix: Pass the traceparent of the trace that starts the release (for example 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01), or leave the option out and the controller starts a new trace.

  • Retry-safe: no

gitops-wait-timeout

Wait ran out of time. piceli gitops enable --wait or piceli promote HOST --from ENV --wait saw neither every target running the expected revision with its checks passed nor a failure before --timeout: a build may be slow, waiting for a build host or an approval, or the controller has not polled yet. The command exits 2.

  • Fix: Read the last progress lines; check piceli gitops status (and piceli host status for a host); wait longer with a larger --timeout.

  • Retry-safe: yes

nix-prebuilt-missing

Prebuilt release not in the cache. A publish or rehearsal that moves a release candidate’s prebuild (the plan’s prebuilt) found it missing or different in the cache: no manifest at piceli/NAME/COMMIT.json, a manifest not signed by the cache’s key or naming another build, commit, attribute, store path or NAR hash, or the store path’s .narinfo missing, unsigned or another path’s. Nothing was built and no pointer was written.

  • Fix: Check the cache (a garbage collection may have removed the prebuild), then prepare the candidate again (piceli gitops candidate request COMMIT) so it prebuilds the release again, or publish the tag without the prebuild (piceli gitops sync NAME).

  • Retry-safe: yes

nix-rehearsal-timeout

Rehearsal did not finish in time. The rehearsal host answered, but neither ran the candidate’s prebuild with its checks passed nor failed it before the rehearsal’s timeout: its agent did not poll, is pinned elsewhere, or is still realising a large closure.

  • Fix: Read piceli host status NAME --json on the rehearsal host, then retry the candidate (piceli gitops candidate request COMMIT).

  • Retry-safe: yes

nix-rehearsal-undeclared

Rehearsal not declared on the build host. A nix-rehearse build asked the build host to move the branch pointer of a release that the build host’s own composition does not declare in Candidate(rehearse=...), or names another host, branch or build than it declares. The build host refused it: a controller cannot make it move another host’s pointer.

  • Fix: Serve the build host from the same composition as the controller (piceli builder serve --cluster MODULE:ATTR), with the release in Candidate(rehearse=...) and its NixHost following that branch.

  • Retry-safe: no

nix-rehearsal-unreachable

Rehearsal host not reachable. The build host wrote the rehearsal host’s branch pointer, then could not read that host’s agent status over SSH until the rehearsal’s timeout: no route, a host key it does not know, a refused login, or no status file.

  • Fix: From the build host, as the user that runs piceli builder serve, check piceli host status NAME --infra MODULE works: its SSH key is in the host’s authorized keys and the host key is in ~/.ssh/known_hosts (or the server’s pinned keys in the infrastructure’s state). Then retry the candidate (piceli gitops candidate request COMMIT).

  • Retry-safe: yes

promote-dirty

Working copy has changes. The flake’s working copy has uncommitted changes to tracked files; the promotion commits flake.lock alone and refuses to mix them.

  • Fix: Commit or stash the changes, then plan again.

  • Retry-safe: yes

promote-git-failed

Git failed in the working copy. A Git command in the flake’s working copy failed (a fetch from its remote, a commit, a tag). A fetch, push, ls-remote or clone that failed in transport (a timeout, a refused or reset connection) was already retried, up to twice with a growing pause (0.78.0).

  • Fix: Run the same Git operation by hand to see Git’s message (remote access, hooks, signing), fix it and run the same piceli promote command again.

  • Retry-safe: yes

promote-invalid

Promotion request invalid. piceli promote names a host with no NixRelease in the composition, a NixRelease without gate=Promotion(...), an environment other than the gate’s (--from), or an unknown --bump.

  • Fix: Name the NixRelease’s host, give --from the gate’s environment and --bump major, minor or patch.

  • Retry-safe: no

promote-lock-failed

flake.lock not pinned. Pinning the input failed: nix flake lock --override-input failed, or (without nix) the input could not be cloned, has no such commit, is not a git, github or gitlab input, has submodules or export rules in .gitattributes; or the new lock does not pin the commit.

  • Fix: Install nix (preferred), or give this machine Git access to the input; check that the commit exists in the input’s repository.

  • Retry-safe: yes

promote-not-in-sync

Working copy not in sync with its remote. The flake’s branch is behind, ahead of or diverged from its upstream after a fetch, or it has no upstream (or HEAD is detached). Pushing would lose or publish commits the plan does not show.

  • Fix: Pull or push until the branch equals its upstream (git status), or set one with git push -u REMOTE BRANCH, then plan again.

  • Retry-safe: yes

promote-plan-changed

Promotion plan changed. The --approve digest is not the digest of the promotion plan computed now: the environment passed a newer commit, the branch or tags moved, or the computed lock differs. A newer run that verified the same commit does not change the digest (0.74.0).

  • Fix: Run piceli promote without --approve, review the new plan and approve its digest.

  • Retry-safe: no

promote-push-failed

Promotion push failed. The commit and the tag were created locally but the atomic push of both to the remote failed (access, a branch protection, a tag that already exists there). The remote is unchanged.

  • Fix: Fix the remote access and run the same piceli promote ... --approve DIGEST command again (approve_command in the output): it finds the local commit and tag and pushes them (0.74.0). Or delete the local tag, reset the commit and plan again.

  • Retry-safe: yes

promotion-history-unreachable

Environment history unreadable. The promotion gate could not read the controller’s history (piceli-gitops-history): the cluster or its credential profile is unreachable, the controller published no history yet, or the document is not piceli.gitops-history.v1. The gate fails closed: nothing is published or promoted.

  • Fix: Check that piceli gitops status reaches the controller with the same options (--kubeconfig/--context, --state-dir, or piceli login for the composition’s cluster), then retry.

  • Retry-safe: yes

promotion-input-missing

Flake input not locked. The release commit has no flake.lock, or its root inputs have no input with the gate’s name, or that input is locked to no Git commit (locked.rev).

  • Fix: Fix Promotion(input=) to name the input as flake.nix does, or commit a flake.lock that locks it (nix flake lock).

  • Retry-safe: no

promotion-not-verified

Commit not verified by the environment. A NixRelease with gate=Promotion(input=, environment=) was asked to publish a commit whose flake.lock pins the input to a commit the environment never ran with its release checks passed (a run that failed, degraded or rolled back does not count, nor one without checks). The controller leaves the release rejected and checks again on every poll; a hand-run dev nix build --publish --release refuses before any build; piceli promote refuses when the environment passed no commit.

  • Fix: Pin a verified commit: piceli promote HOST --from ENV pins the newest commit the environment passed (the refusal’s newest_passed), or wait until the environment runs the pinned commit with its checks passing.

  • Retry-safe: yes

rollout-stopped

Rollout stopped. A cluster of an earlier Rollout(order=...) wave failed this revision (failed, rolled back, degraded or held): the later clusters are held at their running release and do not deploy it.

  • Fix: Fix the cause (the earlier cluster’s checks and reason in piceli gitops status) and push a new revision, or piceli gitops sync ENV.

  • Retry-safe: no

rollout-waiting

Rollout waiting. A cluster of a later Rollout(order=...) wave waits until every cluster of the earlier waves runs this revision with its checks passed.

  • Fix: Nothing to do: it deploys after them. If an earlier cluster waits for an approval or is unreachable, resolve that first.

  • Retry-safe: yes

Builds without a container VM (Build.spec(builder="host")) and target node facts

base-image-invalid

Base image refused. The base image reference is malformed, or its registry served a manifest, config or layer whose bytes do not hash to the pinned digest.

  • Fix: Pin the base as image@sha256:<digest> of an image index or manifest the registry serves, then build again.

  • Retry-safe: no

base-image-unavailable

Base image unreachable. The base image’s registry could not be reached or refused the anonymous pull.

  • Fix: Check the network and the registry, then retry; blobs already fetched are kept in the host build cache.

  • Retry-safe: yes

base-layer-unsupported

Base image layer type unsupported. The base image uses layers a host build cannot append to (only tar and tar+gzip layers, no foreign urls).

  • Fix: Pin a base image published with gzip layers.

  • Retry-safe: no

base-platform-unavailable

Base image lacks the node platform. The pinned base image (index) has no manifest for the node’s platform, or its config reports another platform.

  • Fix: Pin a base image that publishes the node’s platform (linux/arm64 or linux/amd64).

  • Retry-safe: no

build-builder-mismatch

Build spec written for the other builder. A host-build.toml (piceli.host-build.v1) was declared with the docker builder, or a build.toml with builder="host".

  • Fix: Declare a host build spec with Build.spec(path, builder="host") and a build.toml with Build.spec(path).

  • Retry-safe: no

build-platforms-invalid

Invalid build platforms. A multi-platform host build names no platform, names one twice, names one other than linux/amd64 or linux/arm64, or names one that the spec’s build.platform or build.platforms does not allow.

  • Fix: Declare build.platforms = ["linux/amd64", "linux/arm64"] in the host-build.toml or pass --platform once per platform, each from the spec’s list.

  • Retry-safe: no

cluster-build-failed

Cluster build failed. The build Job ended without a receipt: it failed, timed out, could not start (image, mount or scheduling) or its delivery to the node registry did not succeed. The Job is removed; the cache claim is kept.

  • Fix: Read the scrubbed log tail in the output, fix the build or the builder node (labels, image, registry reachability), and run it again; the cache makes a retry cheap.

  • Retry-safe: yes

cluster-build-invalid

Cluster build input invalid. A cluster build (piceli build job, run_build_job) was given an input it refuses: a commit that is not a full Git commit id, an unsupported platform, a builder image that is not pinned by digest, a repository URL with credentials in it, a missing Git Secret (keys username and password), a pipeline without a host build, or an approved hash that no longer matches the plan.

  • Fix: Fix the input named in the message. The Git credentials belong in a Secret, never in the URL; plan again (piceli build job ... --plan) when the hash changed.

  • Retry-safe: no

collector-licence-missing

A collector module has no licence. A Go module linked into the collector has no LICENSE*, LICENCE*, COPYING* or NOTICE* file and no parent module in the list has one, or the pinned Go has no LICENSE. /THIRD-PARTY-NOTICES would be incomplete, so the image is not made.

  • Fix: Drop or replace that component, or pin a version that ships its licence.

  • Retry-safe: no

collector-notices-failed

Collector notices could not be written. After an OpenTelemetry Collector build (0.94.0, [output.image.collector]), go version -m failed or listed no modules, a linked module is not in the build cache’s module cache, a module is replaced by a local directory, or a licence file is larger than 1 MiB.

  • Fix: Check the binary and the toolchains.go pin; if the module cache is damaged, remove <cache>/go/mod and build again.

  • Retry-safe: yes

derived-base-invalid

Base of a derived image is invalid. The base manifest, index or config of a derived image does not match its digest, or its layers differ from its config.

  • Fix: Rebuild the base image with piceli gitops sync ENV --component BASE.

  • Retry-safe: no

derived-base-unavailable

Base of a derived image cannot be read. The registry did not serve the base image of a derived image by its recorded digest (it is gone, or the registry cannot be reached).

  • Fix: Check the registry, then sync again; if the base was removed, rebuild it with piceli gitops sync ENV --component BASE.

  • Retry-safe: yes

derived-base-unrecorded

Base image record of a derived image is missing. A derived image changed, and its base’s change key is the one the environment last recorded, but the controller no longer has the base’s image record. A derived image is only made from the base the environment already runs, so the controller does not build the base again on its own.

  • Fix: Rebuild the base on purpose with piceli gitops sync ENV --component BASE; the derived image is then made from the new base.

  • Retry-safe: no

derived-image-local-unsupported

Derived images are made by the composition controller. piceli artifacts build-spec run was given a host-build.toml with a derived image (from = ...). A local build does not append derived images.

  • Fix: Remove the derived images for the local build, or let a composition controller make them.

  • Retry-safe: no

env-push-invalid

Env push input invalid. piceli env push needs exactly one of --receipt FILE (a host-build receipt, local or from a cluster build) or --digest IMAGE=sha256:..., with a valid image name and digest, for the digests of a branch environment.

  • Fix: Pass a receipt file, or one or more --digest IMAGE=sha256:<64 hex> options.

  • Retry-safe: no

host-build-invalid

Host build output inconsistent. Two entries of one image layer claim the same path, or the assembled image did not read back with the digests it was written with.

  • Fix: Give each image file its own destination; if the error persists, delete the host build cache directory and build again.

  • Retry-safe: no

host-output-missing

Host build output missing. A path named by an image’s files or target_files (or an [[output.files]] entry’s target_files) does not exist after the build, is not a file or directory tree (a regular file for [[output.files]]), or holds a symlink that leaves it.

  • Fix: Check the build commands and the paths in [[output.image]] or [[output.files]] (target_files are relative to the shared target directory; placeholders such as {rust_arch} are substituted).

  • Retry-safe: no

host-tool-missing

Host tool not found. A tool named in a host build’s build.tools is not on PATH (or is not a regular file) when the pipeline plans.

  • Fix: Install the tool or put it on PATH (for example nix shell nixpkgs#zig nixpkgs#cargo-zigbuild), then plan again.

  • Retry-safe: no

host-toolchain-checksum

Toolchain download does not match its checksum. A node or binaryen tarball downloaded for build.toolchains does not match the sha256 its release publishes (SHASUMS256.txt, the .sha256 file): a corrupted download, a proxy rewriting it, or a changed release. Nothing was installed. The message names the file and both digests.

  • Fix: Run the build again; when it fails the same way, check the network path to nodejs.org and github.com.

  • Retry-safe: yes

host-toolchain-failed

Toolchain install failed. Piceli could not install a tool build.toolchains pins into the build cache: rustup or cargo is not on PATH, the download failed (no network, an unknown version, no build for this machine), or rustup toolchain install or cargo install wasm-bindgen-cli failed. The message has the version and the installer’s last lines.

  • Fix: Check the version exists for this machine (linux/darwin, amd64/arm64); the build needs public HTTPS to install a toolchain once. Put rustup next to cargo on PATH.

  • Retry-safe: yes

host-toolchain-invalid

Toolchain pin unreadable. A pin of build.toolchains cannot be read: the path is not a file a declared context includes (paths are relative to the stage root, <context>/<file>), the rust-toolchain.toml is not valid TOML or names a channel, target or component that is not a plain name, the .nvmrc holds no exact version (an alias or a major alone is not reproducible), or the Cargo.lock pins no single wasm-bindgen version. The message names the file.

  • Fix: Fix the file or the path; add the file to its context’s include. Versions are exact: node 24.11.0, binaryen 123, wasm-bindgen 0.2.114.

  • Retry-safe: no

node-facts-unavailable

Node facts unavailable. A host build reads its node’s architecture and kernel version from the Node object (status.nodeInfo); the node reports none, an unsupported architecture, the recorded facts are malformed, or the API is unreachable and no facts were cached from an earlier read or declared.

  • Fix: Check kubectl get node NODE -o jsonpath='{.status.nodeInfo}' with the pipeline’s kubeconfig; only amd64 and arm64 Linux nodes are supported. Declare the facts with Build.spec(..., node_facts=...) to build without the API.

  • Retry-safe: no

node-page-size-invalid

Node page-size label invalid. The node label piceli.io/page-size is not 4096, 16384 or 65536.

  • Fix: Run getconf PAGESIZE on the node and set the label to that value, or remove the label to use the kernel-release rule.

  • Retry-safe: no

node-platform-mismatch

Build platform differs from the node. A host build declares build.platform, but the target node reports another architecture.

  • Fix: Remove build.platform (the node’s platform is used) or build for the node the pipeline targets (Build.spec(..., node=ALIAS)).

  • Retry-safe: no

Restore points of retained data (restore_points=, piceli restore-points, piceli restore)

claim-expansion-failed

Claim did not grow. After the restore point, Piceli asked for the larger size, but the storage driver reported the expansion infeasible or the claim did not reach the size within timeout_seconds. The writers were started again on the claim; the requested size may stay on it.

  • Fix: Check the claim’s events and conditions (kubectl describe pvc NAME) and the CSI driver; plan and deploy again once it can grow, or move the data with migrate_from=.

  • Retry-safe: yes

claim-growth-needs-apply

Claim growth needs the apply. The release grows or moves a claim, but the run stops before the apply (--until backup): the apply switches the workload to the new claim and starts it. Nothing was stopped or copied.

  • Fix: Run the deploy without --until backup (or with --until apply or later).

  • Retry-safe: no

claim-growth-needs-restore-points

Claim growth needs restore points. The app declares ExistingClaim(expand_to=...) or migrate_from=, which the deploy’s backup stage carries out after a restore point, but the pipeline has no restore_points.

  • Fix: Add restore_points=RestorePoints() to the Pipeline.

  • Retry-safe: no

claim-migration-failed

Claim copy failed. Copying the restore point’s archive of the old claim into the new claim failed (helper Job, stream or extraction). The workload was not switched: its writers were started again on the old claim. The new claim stays, labelled piceli.io/migration=target.

  • Fix: Fix the cause (image, scheduling on the old claim’s node, room on the new volume) and deploy again: the new claim is emptied and filled again.

  • Retry-safe: yes

claim-migration-mismatch

Claim copy does not match. The new claim’s content digest, computed in the cluster after the copy, differs from the restore point’s digest of the old claim. The workload was not switched: its writers were started again on the old claim.

  • Fix: Check the new volume (room, file names with newlines or backslashes) and deploy again; the old claim is untouched.

  • Retry-safe: yes

claim-migration-required

Claim cannot grow in place. The release asks for a larger claim (or another storage class) and the claim’s StorageClass does not allow volume expansion (allowVolumeExpansion), or a class cannot change on an existing claim. Nothing was changed.

  • Fix: Move the data to a new claim: ClaimTemplate("<name>-2", size=..., migrate_from="<name>") with replace=["StatefulSet/<name>"], or ExistingClaim("<new>", size=..., migrate_from="<old>") (the message shows the declaration), then plan again.

  • Retry-safe: no

claim-migration-target-exists

New claim name is taken. A claim with the name a move would create already exists and was not made by Piceli for this move (no piceli.io/migrated-from annotation naming the old claim), or two moves name the same new claim. Nothing was changed.

  • Fix: Choose another name for the new claim (ClaimTemplate name or ExistingClaim claim) and plan again.

  • Retry-safe: no

claim-migration-verify-failed

Moved claim did not verify. The workload’s restore_verify command did not pass on the new claim (mounted read-only), or its Job could not start. Its output is not shown. The workload was not switched: its writers were started again on the old claim.

  • Fix: Run the check by hand on the new claim, fix the cause and deploy again; the old claim is untouched.

  • Retry-safe: yes

claim-shrink-refused

A claim would shrink. The release asks for a smaller claim than the live one (a smaller ClaimTemplate size, ExistingClaim(expand_to=...) below the claim’s size, or a move into a smaller claim). Kubernetes never shrinks a volume and Piceli never discards data to fit. Nothing was changed.

  • Fix: Keep the claim’s current size in the app, or move the data to a new, smaller claim by hand.

  • Retry-safe: no

restore-options-invalid

Restore options do not fit. piceli restore needs --point ID or --all; --all and --keep only go with --to-new-claim (a restore into the live claims takes one point).

  • Fix: Name one restore point with --point, or add --to-new-claim.

  • Retry-safe: no

restore-plan-changed

Restore plan changed. piceli restore --approve HASH was given a hash that is not the restore plan’s current hash (the record, the claims or the writers changed).

  • Fix: Run piceli restore MODULE:ATTR --point ID without --approve, review the plan and approve its hash.

  • Retry-safe: no

restore-point-archive-invalid

Archive is not valid. A restore point archive could not be read as a gzip tarball, or holds an absolute or parent-relative path, a device or another special file.

  • Fix: Do not restore it. Take a new restore point; keep the archive for inspection.

  • Retry-safe: no

restore-point-archive-missing

Archive is missing. The record of a restore point names an archive file that is not in its directory.

  • Fix: Restore the file from your copy of the restore point directory, or use another restore point (piceli restore-points).

  • Retry-safe: no

restore-point-busy

Restore point directory in use. Another process is taking a restore point into the same directory (two controllers, or a controller and a laptop, sharing it). Two takes at once would write and verify each other’s files, so nothing was stopped.

  • Fix: Wait for the other deploy to end, then run again. Give each runner its own restore point directory.

  • Retry-safe: yes

restore-point-checksum-mismatch

Archive does not verify. An archive’s SHA-256 differs from its record, or its content digest differs from the digest computed from the claim in the cluster: the file changed or the copy is incomplete.

  • Fix: Do not restore it. Use another restore point, or restore the file from your copy.

  • Retry-safe: no

restore-point-claim-missing

Claim does not exist. A claim of the restore point does not exist in the target namespace, so there is nothing to restore into. Piceli never creates claims.

  • Fix: Create the claim (or run the release that creates it), then plan the restore again.

  • Retry-safe: no

restore-point-claim-too-large

Claim over the restore point size guard. A claim the restore point would archive holds more than RestorePoints(max_claim_bytes=...) (measured by a read-only helper next to the running writer), and over_limit is "fail". Nothing was quiesced or stopped.

  • Fix: Bound the workload’s disk use, raise max_claim_bytes, set over_limit="skip" to leave such claims out with a warning, or turn restore points off for the environment (restore_points="off").

  • Retry-safe: no

restore-point-claim-unknown

Claim not in restore point. --claim names a claim the restore point has no archive of.

  • Fix: List the restore point’s claims with piceli restore-points MODULE:ATTR --json and pass one of them.

  • Retry-safe: no

restore-point-copy-failed

Claim copy failed. Streaming a claim’s archive or content digest from the helper pod failed: the exec was refused or unavailable, the command exited non-zero, or it ran longer than timeout_seconds. The partial archive was removed and the writers were started again.

  • Fix: Check that the helper image has the tools listed in the docs and that the runner may use pods/exec; retry, or raise timeout_seconds for large claims.

  • Retry-safe: yes

restore-point-exists

Archive already exists. An archive with the same restore point id and claim already exists. Restore points are never overwritten.

  • Fix: Run again: every attempt takes a new restore point id (a retry never writes into an earlier attempt’s point).

  • Retry-safe: yes

restore-point-helper-failed

Helper pod did not run. The helper Job that mounts a claim for the copy did not get a running pod in time (image not pullable, no node can mount the claim, or the pod ended), or no image was known for it. The writers were started again.

  • Fix: Check the Job’s events (kubectl describe job piceli-...); declare RestorePoints(image='...@sha256:...') with an image that has sh, tar, gzip, find, sort, sha256sum and head.

  • Retry-safe: yes

restore-point-not-verified

Restore point not verified. The restore point’s record is not in state verified (its run failed or was interrupted before every archive was verified).

  • Fix: Use a verified restore point (piceli restore-points).

  • Retry-safe: no

restore-point-plan-changed

Restore point differs from the plan. At run time the release touches claims (or needs writers stopped) that the approved plan’s backup stage did not show, for example after delivery. Nothing was stopped or copied.

  • Fix: Plan again (piceli deploy MODULE:ATTR --plan) and approve the new combined hash.

  • Retry-safe: no

restore-point-quiesce-failed

Quiesce hook failed. A quiesce hook (app.quiesce) did not succeed in a writer pod: the HTTP request answered another status or no answer, or the command exited non-zero or timed out. Its output is never shown. Writers already stopped were started again.

  • Fix: Check the hook against a running pod, fix it or the app, then run again (piceli deploy --resume continues the run).

  • Retry-safe: yes

restore-point-restart-failed

Writer not started again. A writer that was scaled to zero for a restore point or restore could not be scaled back. The other writers were started.

  • Fix: Scale it back by hand to the replica count the restore point record names (kubectl scale).

  • Retry-safe: yes

restore-point-restore-failed

Restore failed. Extracting an archive into a claim failed (the helper exited non-zero, the exec was unavailable or timed out). The claim may be partly restored; the writers were started again.

  • Fix: Fix the cause (image tools, pods/exec permission, timeout_seconds) and run the same restore again; it empties the claim first.

  • Retry-safe: yes

restore-point-restore-mismatch

Restored claim does not verify. After the extraction, the content digest computed from the claim in the cluster differs from the restore point’s. The writers were started again.

  • Fix: Run the restore again; if it persists, look for another writer of the claim.

  • Retry-safe: yes

restore-point-target-mismatch

Restore point from another namespace. The restore point was taken in another namespace than the pipeline’s target.

  • Fix: Select the matching environment (--env) or pipeline.

  • Retry-safe: no

restore-point-unknown

Unknown restore point. No restore point with that id exists in the pipeline’s restore point directory, or its record is unreadable.

  • Fix: List them with piceli restore-points MODULE:ATTR and pass one of the ids.

  • Retry-safe: no

restore-point-writer-unsupported

Writer cannot be stopped. A claim the release touches (or a restore touches) is mounted writably by a workload Piceli cannot stop for a consistent copy: a DaemonSet, Job or CronJob, or a workload the release does not declare. Nothing was stopped or copied.

  • Fix: Stop that workload yourself (or mount the claim read-only in it), then plan again.

  • Retry-safe: no

restore-point-writers-remain

Writer pods still exist. After the writers were scaled to zero, pods (running or terminating) still mounted a claim writably when the restore point’s timeout_seconds passed. Nothing was copied; the writers were started again.

  • Fix: Find the pods named in the message (kubectl get pods), wait for or remove them, or raise RestorePoints(timeout_seconds=...), then run again.

  • Retry-safe: yes

restore-verify-cleanup-failed

Scratch claim not deleted. A scratch claim created for the verify could not be deleted (or did not go away in time). It holds a copy of restored data.

  • Fix: Delete it with kubectl delete pvc NAME (the error and the receipt name it; label piceli.io/scratch=true).

  • Retry-safe: yes

restore-verify-failed

Restore verify failed. At least one claim is FAIL: its copy did not restore, did not match, or the app’s read-only verify command did not exit 0 (or could not start). The command’s output is never printed. Live data was not touched; the scratch claims were deleted unless --keep.

  • Fix: Read each claim’s result, reason and verify state in the receipt; run it again with --keep and inspect the scratch claim yourself.

  • Retry-safe: yes

restore-verify-mismatch

Restored copy does not match. After extracting the archive into its scratch claim, the content digest computed in the cluster differs from the restore point’s. Live data was not touched; the scratch claims were deleted.

  • Fix: Run it again; if it persists, the archive or the storage is damaged: take a new restore point.

  • Retry-safe: yes

restore-verify-plan-changed

Restore verify plan changed. piceli restore --to-new-claim --approve HASH was given a hash that is not the verify plan’s current hash (the record, the source claims, the declared verify commands or the workloads’ images changed). Nothing was created.

  • Fix: Run the command again without --approve, review the plan and approve its hash.

  • Retry-safe: no

restore-verify-scratch-exists

Scratch claim already exists. A scratch claim the verify plan would create already exists, usually kept by an earlier --keep run. Nothing was created.

  • Fix: Delete the scratch claim (label piceli.io/scratch=true) with kubectl delete pvc NAME, then plan again.

  • Retry-safe: yes

restore-verify-scratch-failed

Restore into scratch claim failed. The archive could not be extracted into a scratch claim (the helper pod did not start, the claim did not bind, or the extraction exited non-zero). Live claims and writers were not touched; the scratch claims were deleted.

  • Fix: Read the per-claim reason in the receipt, check the storage class and the helper image (--image), then run it again.

  • Retry-safe: yes

restore-verify-scratch-unsupported

No scratch claim like this one. The source claim is bound to a static volume (empty storage class) or has no size, so Piceli cannot create a scratch claim of the same shape. Nothing was created.

  • Fix: Verify with piceli restore-points --verify (offline), or give the claim a storage class that provisions volumes.

  • Retry-safe: no

restore-verify-workload-missing

Verify workload missing. A workload declares app.restore_verify(...) but it does not exist in the namespace, or no longer mounts the restored claim, so there is no image and mount path to verify with. Nothing was created.

  • Fix: Deploy the workload first, or restrict the verify to other claims with --claim.

  • Retry-safe: no

Development builds on a cluster builder (Cluster(dev=DevBuilds(...)), piceli dev …)

builder-service-failed

Service manager call failed. piceli builder install or uninstall (0.28.0) wrote or removed the unit, but systemctl or launchctl failed. The message holds the command and its output.

  • Fix: Read the output; check the unit with systemctl status piceli-builder-HOST (or launchctl print), fix the cause and run the command again.

  • Retry-safe: yes

builder-service-invalid

Build host service refused. piceli builder install (0.28.0) wrote nothing: this machine has no systemd or launchd, a program builder serve runs (docker, git, kubectl) is not in PATH, it ran as root without --user USER (or with --user without root), or the running piceli program cannot be found. The message says which.

  • Fix: Install the missing program or add its directory to PATH; as root pass --user USER, else drop --user; then run piceli builder install again (--print shows the unit without writing it).

  • Retry-safe: no

builder-version-mismatch

Build host runs another Piceli version. piceli builder serve (0.33.0) runs another Piceli version than the GitOps controller (controller.version in its status). A build step may use a command or format only one of them knows, so the host claims nothing; the controller builds in the cluster (its fallback) meanwhile, and builder serve exits 75.

  • Fix: Install the controller’s Piceli version on the build host (builder serve --version-file PATH writes it into PATH for its service, for example uv tool install --force "piceli==$(cat PATH)" before it starts) and start builder serve again; piceli builder status shows each host’s version.

  • Retry-safe: yes

dev-cache-clear-failed

Cache clear did not finish. The cache-clear Job of piceli dev cache clear ended without a result (it could not start on the builder node, or ran out of time).

  • Fix: Check kubectl -n piceli-dev get pods on the builder node and run it again.

  • Retry-safe: yes

dev-cache-over-cap

Run’s cache lineage over its cap. 0.38.1: while the command ran, its lineage (the run’s tree and cargo target in the shared cache) grew past its cap, the cache’s budget (cache_budget of cache_size) less what the rest of the cache holds, or the cache’s disk fell under 15% free while the lineage grew. 0.53.0: only when no other run held a lineage (while others do, the youngest run pauses and the rest continue), so this lineage alone is larger than the budget. The run was stopped and the lineage evicted, so the next run builds it cold. On local-path storage a claim’s size is never enforced: without this stop one run could fill the node’s disk.

  • Fix: Run again (it builds cold). If it stops again, the build needs more room than the budget gives: raise DevBuilds(cache_size=) or cache_budget, or build less at once (fewer targets or features).

  • Retry-safe: yes

dev-command-failed

Command failed. The command ran and exited non-zero (a compile error or a failing test). The result has exit_code, tests and the last log lines.

  • Fix: Read log_tail (or piceli dev logs RUN), fix the code, run again.

  • Retry-safe: yes

dev-host-publish-only

The build host only publishes. piceli builder serve ran on a build host declared BuildHost(..., runs=False) (0.25.0) without --publish MODULE:ATTR, or with --no-publish-only: such a host only publishes Nix releases and never takes an image build.

  • Fix: Run piceli builder serve --host NAME --publish MODULE:ATTR on it (--publish-only is implied), and serve image builds from another host; or declare it without runs=False.

  • Retry-safe: no

dev-host-unavailable

Build host unavailable. No declared build host could take the run (0.20.0): a docker host’s engine did not answer (not running, ssh:// unreachable, the CLI missing), the image could not be pulled, or the in-cluster builder node is down or cordoned. The message names each host and why; piceli dev run already tried the next host.

  • Fix: Start the engine (Docker Desktop, OrbStack, colima), check piceli dev hosts, or pass --host for one that is up.

  • Retry-safe: no

dev-host-unknown

No such build host. --host names a host DevBuilds(hosts=[...]) does not declare (0.20.0).

  • Fix: Use a name from piceli dev hosts, or declare the host.

  • Retry-safe: no

dev-isolation-not-enforced

Run not isolated. The run’s pod could still reach the API server a minute after it started: the cluster does not enforce the NetworkPolicy of namespace piceli-dev (a CNI without NetworkPolicy support). No code from the repository ran.

  • Fix: Use a CNI that enforces NetworkPolicy (k3s’s default does; on kind, kindnet does), then run again.

  • Retry-safe: no

dev-lineage-damaged

Run’s cache lineage on a damaged disk. 0.71.0: syncing the run’s tree into its lineage failed with a filesystem error inside it (EUCLEAN “Structure needs cleaning”, EIO, EBADMSG, EROFS, ENOTEMPTY). The first such lineage is set aside in cache/quarantine/ and the run continues on a fresh one; this error means the fresh one failed too, or the damaged lineage could be neither moved nor marked.

  • Fix: Check the cache’s disk (the kernel log, fsck). Remove the lineages listed under cache/quarantine/ by hand once it is repaired, then run again.

  • Retry-safe: yes

dev-nix-cache-invalid

Nix cache declaration refused. NixCache needs a public key NAME:base64 (or key_name= until it exists), one of bucket= or url= (s3://, file://, or a read-only https://), an S3 endpoint and credentials= for an S3 cache; or --publish did not name a NixCache, or names a read-only cache.

  • Fix: Fix the declaration; publish to the cache’s s3:// or file:// URL.

  • Retry-safe: no

dev-nix-cache-key-unset

Nix cache public key not declared yet. The NixCache names its key with key_name= alone (the key does not exist yet), and publishing, dev nix gc and a host’s module need the public key hosts trust. A NixRelease of that cache stays rejected with this reason in the controller (its composition still loads), and nothing is published for it.

  • Fix: Run piceli secrets setup MODULE (or piceli secrets nix-cache NAME --generate) and put the public key it prints into NixCache(public_key=).

  • Retry-safe: no

dev-nix-gc-failed

Nix cache cleanup failed. Listing, reading or deleting objects of the cache failed (credentials, endpoint, network); manifests go first, so no kept build lost a path.

  • Fix: Check the write credential and the endpoint, then plan piceli dev nix gc again and approve the new digest.

  • Retry-safe: yes

dev-nix-host-unsupported

Build host cannot run Nix builds. Nix builds run on docker or native build hosts (the host’s own Nix); the chosen host is the cluster’s builder node, or none is declared.

  • Fix: Declare BuildHost.docker(...) (a host with Nix, over ssh://) or BuildHost.native(...) and pass --host.

  • Retry-safe: no

dev-nix-invalid

Nix build request refused. piceli dev nix build got an output that is not a flake attribute of the source (.#ATTR), a bad --name, --publish without --ref or --name, --approve without --publish, a profile without nix=True, or a docker build host with no image for the Nix steps (the input fetch, the publisher).

  • Fix: Give ATTR or .#ATTR, a DNS-label --name, a commit with --ref when publishing, and declare DevProfile.for_nix(); give the docker host, the profile or DevBuilds an image.

  • Retry-safe: no

dev-nix-key-invalid

Nix key refused. A Nix key is NAME:base64 (a secret key of 64 bytes, a public key of 32); the value given or stored is not one.

  • Fix: Generate one with piceli secrets nix-cache NAME --generate, or paste a key from nix key generate-secret with --prompt.

  • Retry-safe: no

dev-nix-key-mismatch

Signing key does not match the cache. The stored signing key’s public key is not NixCache(public_key=): hosts that trust the declared key would refuse what it signs.

  • Fix: Print the stored key’s public key with piceli secrets nix-cache NAME and fix the declaration or NixCache(signing_key=).

  • Retry-safe: no

dev-nix-manifest-failed

Build manifest not stored. The closure is in the cache but uploading piceli/NAME/REV.json failed.

  • Fix: Check the S3 credential’s write access and run the approved command again.

  • Retry-safe: yes

dev-nix-no-output

Nix build gave no output. The build passed but printed no store path, or --image found no disk image file in the output.

  • Fix: Check that the attribute builds a derivation (nix build .#ATTR --print-out-paths) and, with --image, that it is an image output.

  • Retry-safe: no

dev-nix-plan-changed

Publish plan changed. The --approve digest is not the digest of the publish plan computed now (the commit, the output, the host, the cache or the key changed).

  • Fix: Run the command without --approve, review the new plan and approve its digest.

  • Retry-safe: no

dev-nix-publish-failed

Pushing to the Nix cache failed. nix copy to the cache, or reading back the store path’s signed narinfo, failed on the build host (credentials, endpoint, network, or no nix on the host).

  • Fix: Read the masked lines on stderr, check the bucket, the S3 credential and the endpoint, then run the approved command again (paths already in the cache are skipped).

  • Retry-safe: yes

dev-not-enabled

Development builds not installed. The cluster has no piceli-dev-config ConfigMap in namespace piceli-dev: Cluster(dev=DevBuilds(...)) is not declared, or piceli cluster init has not applied it.

  • Fix: Declare dev=DevBuilds(node=..., image=...) on the Cluster, then piceli cluster init MODULE:ATTR and approve its plan.

  • Retry-safe: no

dev-profile-unknown

Unknown dev profile. --profile names no DevProfile of the installed DevBuilds.

  • Fix: Use one of the profiles the error lists, or declare it and run piceli cluster init again.

  • Retry-safe: no

dev-queue-timeout

Run did not start in time. The run waited longer than --queue-timeout for a slot or for its pod to be scheduled.

  • Fix: Wait for the queue (piceli dev status), raise --queue-timeout, or add slots (DevBuilds(slots=...)).

  • Retry-safe: yes

dev-ref-unknown

Ref not in the local repository. The ref does not name a commit of the local repository; runs ship commits from the client, the cluster never fetches.

  • Fix: git fetch the commit (or branch) first, then run again.

  • Retry-safe: no

dev-registry-src-damaged

A crate’s extracted source is damaged. 0.77.0: cargo or rustc could not read or parse a file of a crate cargo extracted into the cache’s cargo home (registry/src/): a byte that changed at rest. The run removes that crate’s directory (cargo extracts it again from its checked .crate file) and runs once more; this error means the fresh copy was damaged again, so the build host is likely corrupting files, or the directory could not be removed (cargo’s package cache lock stayed held).

  • Fix: Check the build host’s disk and memory (a memory test, the kernel log for disk or machine-check errors, a filesystem check). piceli dev cache clear --registry-src (or --crate NAME) removes extracted sources by hand; then run again.

  • Retry-safe: yes

dev-run-abandoned

Queued run abandoned. 0.54.0: the client waiting for this queued run stopped saying it waits (no beat for 5 minutes), or it waited past its queue timeout; the scheduler removed it.

  • Fix: Run again when wanted.

  • Retry-safe: yes

dev-run-cancelled

Run cancelled. The run’s Job was deleted (piceli dev cancel, Ctrl-C) before it finished.

  • Fix: Run again when wanted.

  • Retry-safe: yes

dev-run-failed

Run pod failed. The run’s pod ended without a result, could not start (image pull, admission) or ended before its upload.

  • Fix: Check the profile’s image and the builder node; piceli dev logs RUN shows what the pod printed.

  • Retry-safe: yes

dev-run-invalid

Run request refused. No command after --, an unknown priority, a --cwd outside the root source, or a --node other than the declared builder.

  • Fix: Fix the arguments the message names.

  • Retry-safe: no

dev-run-out-of-memory

Run out of memory. The kernel killed the run’s container at its memory limit (OOMKilled).

  • Fix: Raise the profile’s memory (or DevBuilds(run_memory=...)), or lower the build’s parallelism (CARGO_BUILD_JOBS).

  • Retry-safe: yes

dev-run-timed-out

Run over its time. The command ran longer than the profile’s timeout and its process group was killed, or no lineage became free in that time.

  • Fix: Raise the profile’s timeout, split the command, or find what hangs (the log tail shows the last output).

  • Retry-safe: yes

dev-run-unknown

Unknown run. No run with that id is queued, running or recorded in piceli-dev-status (the last 50 finished runs).

  • Fix: List runs with piceli dev status.

  • Retry-safe: no

dev-run-unschedulable

Run’s pod cannot be scheduled. The scheduler found no node for the run’s pod for --unschedulable-seconds (default 60): the builder node is under disk or memory pressure, tainted, cordoned, or lacks the CPU or memory a run requests. The message carries the scheduler’s reason.

  • Fix: Read the reason: under disk pressure, free the cache (piceli dev cache clear); otherwise free or add capacity on the node, or lower DevBuilds(run_cpu=, run_memory=).

  • Retry-safe: yes

dev-source-invalid

Source not usable. A source is not NAME=PATH[@REF], its path is not in a Git repository, two sources share a name, or a working tree could not be read.

  • Fix: Give each source a directory name and a path inside a Git repository (--source app-sdk=../sdk@<sha>).

  • Retry-safe: no

dev-tool-missing

Tool missing in the image. A tool the profile declares (DevProfile(tools=...)) is not on the image’s PATH.

  • Fix: Use an image with the tool or remove it from the profile.

  • Retry-safe: no

dev-toolchain-checksum

Toolchain download does not match its checksum. A node or binaryen tarball the profile pins (DevProfile(toolchains=...), 0.22.0) does not match the sha256 its release publishes. Nothing was installed. The message names the file and both digests.

  • Fix: Run again; when it fails the same way, check the network path to nodejs.org and github.com.

  • Retry-safe: yes

dev-toolchain-failed

Toolchain install failed. rustup could not install the toolchain the source pins into the cache (0.20.0): no network (a profile with network="none"), an unknown channel or a target or component that does not exist for it; or a tool of DevProfile(toolchains=...) could not be downloaded or built (0.22.0). The message has the installer’s last lines.

  • Fix: Check the pin’s channel, targets and components; runs need public HTTPS to install a toolchain once.

  • Retry-safe: no

dev-toolchain-invalid

Toolchain pin unreadable. The source’s rust-toolchain.toml (or rust-toolchain) is not valid TOML, or its channel, targets or components are not plain names (0.20.0); or a pin of DevProfile(toolchains=...) cannot be read (0.22.0: no such file in the tree, no exact node version, no single wasm-bindgen in the Cargo.lock). The message names the file.

  • Fix: Fix the file; channel is a version (1.97.0), stable, beta or nightly-YYYY-MM-DD.

  • Retry-safe: no

dev-tree-mismatch

Run’s tree does not match the uploaded commit. 0.72.0: after the sync of a delta upload (the commit plus the uncommitted diff), the run’s lineage still lacked a file the commit tracks, also after re-reading the files that differed from the head. The command did not run on the wrong tree. missing lists a few of the paths.

  • Fix: Run again: the lineage’s next sync is a full one. If it fails again, clear the lineage (piceli dev cache clear) and report the paths.

  • Retry-safe: yes

dev-upload-failed

Upload failed. The archive did not reach the run’s pod (exec refused or broken), did not match its SHA-256, held an unsafe path, or did not arrive in time.

  • Fix: Run again; check that your credentials allow pods/exec in namespace piceli-dev.

  • Retry-safe: yes

infra-nix-input-unreachable

Private flake input not fetched. Before a Nix build (a NixRelease on its build host, or piceli dev nix build), the build host fetches the flake’s private inputs (the promotion gate’s input, the inputs whose repository is a Source of the composition, and NixRelease(inputs=) or --input) into its Nix store, and one of them could not be fetched: the message names the input, its URL (never a credential) and the credential tried. Or the plan names an input that flake.lock at the commit does not lock at that URL. Nothing was built.

  • Fix: Store the Git token on the machine that runs the build (piceli secrets git-token NAME --host HOST --prompt, or piceli secrets restore of a backup made with --only NAME), check it can read the repository, map the input to that credential (NixRelease(inputs={"app": "NAME"}) or --input app=NAME), then retry (piceli gitops sync NAME or the same command).

  • Retry-safe: yes

Helm charts and manifests with values (piceli chart …)

chart-artifact-changed

Chart changed since approval. --approve does not match the digest of this chart: the model, the options or the version changed.

  • Fix: Run piceli chart publish without --approve, review the new digest and approve it.

  • Retry-safe: no

chart-empty

Nothing to chart. The render has no object left for a chart (Secrets are never part of it).

  • Fix: Check the target and --env; piceli render shows what it renders.

  • Retry-safe: no

chart-invalid

Invalid chart. The chart name or version is invalid (a name is lowercase letters, digits and -, starting with a letter; a version is SemVer 2), no name could be derived from the render, or a mapping key holds {{.

  • Fix: Pass --name my-app and --version 1.2.3; piceli render shows the objects.

  • Retry-safe: no

chart-out-refused

Chart output refused. --out is missing, holds files piceli chart render did not write, or an archive of the same name and version with other content exists.

  • Fix: Pass a new or empty directory, or the directory of a previous chart render (it holds .piceli-chart); bump --version for changed content.

  • Retry-safe: no

chart-push-failed

Chart push failed. The registry refused or broke off the push. The detail is withheld because it could contain server messages.

  • Fix: Check the registry, the path and --credentials, then run the same command again; pushes are content-addressed.

  • Retry-safe: yes

chart-secret-value

Secret value outside a Secret. An object other than a Secret holds a value Piceli redacts or injects at apply time; a chart never carries secret values.

  • Fix: Move the value into a Secret (the chart references it by name) or, if it is not secret, list the field in the piceli.io/public-fields annotation.

  • Retry-safe: no

chart-target-invalid

Invalid chart publish target. --to is missing, not oci://host[:port]/path, or names a tag (the chart is pushed as path/<name>:<version>).

  • Fix: Pass --to oci://registry.example/team/charts (plain HTTP only for a loopback registry).

  • Retry-safe: no

chart-values-invalid

Values do not match the chart. A values file is not a YAML mapping, or the merged values break the chart’s schema (a missing required image, an unknown key, a wrong type or format). The message names the path and the rule, never the value.

  • Fix: Fix the values file; values.schema.json of piceli chart render documents every key.

  • Retry-safe: no

Publishing multi-platform images to a hosted registry (piceli artifacts publish)

copy-failed

Copying an image failed. The copy stopped for a reason the registry did not name, or the image has more referrers than one copy takes (256).

  • Fix: Read the receipt’s reason, fix the registry access and copy again (safe to retry: only missing blobs are sent).

  • Retry-safe: yes

copy-invalid

Invalid copy request. piceli artifacts copy needs --from oci://host[:port]/repository@sha256:<digest> (a digest, not a tag) and --to oci://host[:port]/repository[:tag]; --move-tag needs a tag, and --to cannot be the --from repository without a tag.

  • Fix: Fix the option, for example --from oci://127.0.0.1:5000/shop/api@sha256:<digest> --to oci://ghcr.io/example/api:1.4.0.

  • Retry-safe: no

copy-not-approved

Copy plan not approved. --approve is not the digest of this exact copy plan (source digest, target, tag, referrers and --move-tag).

  • Fix: Run piceli artifacts copy without --approve, review the plan and pass its plan_digest to --approve.

  • Retry-safe: yes

copy-tag-exists

Target tag names another image. The --to tag already names another digest in the target repository. Copying would silently replace what that tag installs. Nothing was pushed.

  • Fix: Copy under a new tag, or pass --move-tag (part of the approved plan) when replacing it is intended; the receipt records the previous digest.

  • Retry-safe: no

copy-verification-failed

Copied image did not verify. Reading back the target did not match the source: the tag does not name the digest, the bytes differ, a platform manifest is missing or a referrer (SBOM, provenance, signature) is not listed.

  • Fix: Check that nothing else writes to the repository at the same time and that the registry supports OCI image indexes, then copy again (content-addressed, so a retry is safe).

  • Retry-safe: yes

cosign-tool-required

cosign not found. Signing needs the cosign binary (3.0 or later) on PATH or given with --cosign, and it is not there or not a regular executable.

  • Fix: Install cosign (nix shell nixpkgs#cosign, a release binary or a package), or pass --cosign PATH.

  • Retry-safe: no

credential-helper-failed

Credential helper failed. The Docker credential helper named for the registry (docker-credential-<name>) is not on PATH, failed or did not answer with Username/Secret JSON. Its output is never printed.

  • Fix: Run docker-credential-<name> get yourself (registry host on stdin) to check it, log in again, or use --credentials FILE.

  • Retry-safe: yes

invalid-docker-config

Invalid Docker config. --docker-config is not an absolute path to a readable Docker config.json of at most 1 MiB, its auths entry for the registry is not base64 user:password, or a credential helper name is not a plain name.

  • Fix: Pass the path of a valid Docker config.json (docker login writes one), or use --credentials FILE.

  • Retry-safe: no

publish-failed

Publishing an image failed. Pushing one platform’s image failed for a reason the delivery could not name.

  • Fix: Read the delivery reason in the receipt when present, fix the registry access, and publish again (safe to retry).

  • Retry-safe: yes

publish-input-changed

Build output changed since the build. An SBOM or provenance file named by the build receipt is missing or its sha256 differs from the receipt, so it no longer describes the build.

  • Fix: Rebuild (piceli artifacts build-spec run) and publish the new receipt.

  • Retry-safe: no

publish-invalid

Invalid publish request. --to is not oci://host[:port]/prefix (a tag belongs in --tag), the version tag is not a valid OCI tag (a + is not allowed), --image names an image the build did not produce, or two images would land in the same repository (the last path segment of their repositories is equal).

  • Fix: Fix the option: --to oci://registry.example/prefix --tag 1.4.0; rename a repository in the build spec so each image has its own last segment.

  • Retry-safe: no

publish-not-approved

Publish plan not approved. --approve is missing or is not the digest of this exact publish plan (receipt, images, registry, tag, attestations and signing key). Something changed since the plan was printed, or the digest belongs to another plan.

  • Fix: Run piceli artifacts publish without --approve, review the plan, and pass its digest to --approve.

  • Retry-safe: yes

publish-tag-exists

Version tag names another image. The version tag already names another image index in the target repository. Publishing would silently replace what clients install for that version.

  • Fix: Publish under a new version tag, or pass --move-tag (part of the approved plan) when replacing it is intended; the receipt records the previous digest.

  • Retry-safe: no

publish-verification-failed

Published image did not verify. Reading back what the registry serves did not match what was pushed: the tag does not name the index, a manifest’s bytes or config differ, a platform manifest is missing, an attestation is not listed as a referrer, or the index differs from the one the build recorded.

  • Fix: Check that nothing else writes to the repository at the same time and that the registry supports OCI image indexes, then publish again (pushes are content-addressed, so a retry is safe).

  • Retry-safe: yes

sign-failed

Signing failed. cosign sign exited with an error for one of the published digests: a wrong key password (COSIGN_PASSWORD), a cosign older than 3.0, or the registry refused the signature. Its output is not printed. The version tag was not moved.

  • Fix: Check the key and its password (cosign sign --key cosign.key <image>@<digest> by hand shows the cause), then publish again (safe to retry).

  • Retry-safe: yes

sign-file-invalid

Cannot sign that file. piceli sign-file needs regular files it can read and a directory where it can write FILE.sig, exactly one of --key NAME or --agent KEY.pub, and a namespace of letters, digits and @._+-.

  • Fix: Check the paths and the options, then sign again (safe to retry: the signature is replaced).

  • Retry-safe: no

sign-key-invalid

Invalid signing key. --sign-key is not an absolute path to a regular file of at most 64 KiB readable only by its owner (mode 0600), or the key changed since the plan was printed.

  • Fix: chmod 600 cosign.key (from cosign generate-key-pair), then plan and approve again.

  • Retry-safe: no

signing-agent-failed

The SSH agent did not sign. piceli sign-file --agent found no agent (SSH_AUTH_SOCK or --agent-socket), the agent does not hold the key of that public key file, it refused (a declined confirmation), or its signature did not verify with that public key.

  • Fix: ssh-add -L lists the keys the agent holds; ssh-add KEY loads one. Then sign again.

  • Retry-safe: yes

Registry retention (piceli artifacts retention)

registry-delete-disabled

Registry does not allow deletes. The registry refused DELETE on a manifest (HTTP 405 or UNSUPPORTED). Distribution registries delete only with REGISTRY_STORAGE_DELETE_ENABLED=true (storage.delete.enabled); hosted registries have their own retention settings.

  • Fix: Enable deletes on the registry (Piceli’s node-local registry already does), or use the hosted registry’s own lifecycle policy. Manifests deleted before the refusal are listed in the receipt.

  • Retry-safe: no

registry-storage-unreadable

In-cluster registry storage not listed. piceli artifacts retention --cluster lists every manifest the in-cluster registry stores (digest-only ones have no API) by running a read-only find in the registry pod over pods/exec, and piceli registry status measures the claim with du the same way. No registry pod was running, or the exec was refused (the credential lacks get/create on pods/exec in the registry’s namespace) or failed. Retention then only finds manifests something still names; nothing else changes.

  • Fix: Grant pods/exec (verbs get and create) and list on pods in the registry’s namespace to the credential, check that the registry pod is Running (piceli registry status), and run the command again.

  • Retry-safe: yes

retention-invalid

Invalid retention input. A piceli artifacts retention input is malformed: --keep below 0 (or --keep 0 without the cluster read, --kubeconfig with --context, that alone protects what is live), an unreadable or invalid --budget (use 10GiB, 500MB), a pin that is not a sha256: digest, a receipt that is not JSON, or an option combination that does not go together (--approve without --delete, --kubeconfig without --context).

  • Fix: Correct the option named in the command’s help and run it again; nothing was changed.

  • Retry-safe: no

retention-live-unknown

Live workload digests unknown. Deleting needs to know which digests running workloads use. Either no source was given (--kubeconfig with --context, or --live-file) or reading the pods, workload templates or Piceli’s environment ConfigMaps failed. An unknown inventory never licenses a deletion.

  • Fix: Pass --kubeconfig FILE --context NAME (the cluster whose workloads pull from this registry) or --live-file, and check that the context can list pods, workloads and ConfigMaps.

  • Retry-safe: yes

retention-not-approved

Retention plan not approved. --approve is not the hash of the plan computed now. The registry, the receipts, the pins, the keep policy or the live workloads changed since the plan was printed, so the set of manifests to delete is not the one that was reviewed.

  • Fix: Run piceli artifacts retention --delete without --approve, review the new plan and pass its digest to --approve.

  • Retry-safe: yes

Per-branch environments (piceli env, piceli envs, piceli logs)

env-branch-invalid

Invalid branch name. The branch name is empty, longer than 250 characters, or has no letter or digit to name a namespace with.

  • Fix: Use a branch name with letters or digits.

  • Retry-safe: no

env-branch-not-allowed

Branch without an environment. The branch matches none of the EnvConfig(branches=...) patterns.

  • Fix: Use a matching branch name, or add a pattern to branches in the pipeline.

  • Retry-safe: no

env-budget-full

Environment budget full. max_envs branch environments already run, and --wait asked not to stop the least recently pushed one.

  • Fix: Retry later, run piceli env down on an unused branch, or drop --wait to stop the least recently pushed environment.

  • Retry-safe: yes

env-cluster-unavailable

Kubernetes API refused. The Kubernetes API refused or failed an environment request (the HTTP status is printed, never the server’s message).

  • Fix: Check the target’s kubeconfig, context and permissions (namespaces, ConfigMaps, claims, volumes), then run the command again.

  • Retry-safe: yes

env-config-invalid

Invalid environment declaration. The pipeline’s EnvConfig is invalid: a prefix that is not a lowercase DNS label start, max_envs outside 1-100, a claim size that is not a quantity or names no claim or workload of the app, or an app component named piceli-env.

  • Fix: Fix the EnvConfig(...) declaration in the pipeline module.

  • Retry-safe: no

env-image-invalid

Image not pinned by digest. A digest or build receipt entry is not repository@sha256:<64 hex>, or the receipt has no image table.

  • Fix: Give each image as NAME=REPOSITORY@sha256:<64 hex>.

  • Retry-safe: no

env-image-missing

No image for a build handle. The app uses a build image in a branch environment and no digest was given for it; branch environments never build or deliver themselves.

  • Fix: Pass --digest NAME=REPOSITORY@sha256:... (or a build receipt with --receipt FILE) for every build image.

  • Retry-safe: no

env-isolation-absolute-service

Service named in another namespace. A branch environment’s object names a Service absolutely in another namespace (api.shop.svc.cluster.local), which would reach main or another branch.

  • Fix: Name Services by their relative name (api), or build the name from the release namespace.

  • Retry-safe: no

env-isolation-cluster-scoped

Cluster object shared by every branch. A branch environment declares a CustomResourceDefinition or Namespace, which cannot get a per-namespace name.

  • Fix: Install cluster-wide objects with the main release only (or a separate release).

  • Retry-safe: no

env-isolation-cross-namespace

Binding or policy across namespaces. A branch environment’s role binding names a subject of another namespace, or its NetworkPolicy allows traffic from or to every namespace, main’s or another branch’s.

  • Fix: Bind subjects of the release namespace only; select other namespaces by a label of their own (an ingress controller’s), not all of them.

  • Retry-safe: no

env-isolation-host-path

Node directory in a branch environment. A branch environment’s pod mounts a hostPath volume, shared by every branch on that node.

  • Fix: Use a claim (ClaimTemplate) instead of a node directory.

  • Retry-safe: no

env-isolation-host-port

Host port in a branch environment. A branch environment’s pod binds a hostPort or uses hostNetwork, hostPID or hostIPC, which collide across branches on a node.

  • Fix: Remove the host port or host namespace from the app (or from its branch environment).

  • Retry-safe: no

env-isolation-node-port

Node port in a branch environment. A branch environment declares a NodePort or LoadBalancer Service (or a nodePort), which opens a port on every node shared by all branches.

  • Fix: Use a ClusterIP Service and reach the branch with piceli access BRANCH.

  • Retry-safe: no

env-isolation-shared-volume

Claim bound to another volume. A branch environment’s claim binds a named volume the app does not declare (another environment’s data).

  • Fix: Let branch claims be provisioned (a size in EnvConfig(claim_sizes=...)), or seed them with piceli env seed.

  • Retry-safe: no

env-main-namespace-missing

Main namespace missing. The main branch’s namespace does not exist; env commands never create it.

  • Fix: Create it (or deploy main with piceli deploy) first.

  • Retry-safe: no

env-main-protected

Main environment protected. An environment command would delete, stop, seed or overwrite the main branch’s environment or namespace, or a named environment’s (EnvConfig(environments=...)); env commands never do.

  • Fix: Operate the main release with piceli deploy and piceli restore.

  • Retry-safe: no

env-namespace-collision

Two branches, one namespace. Another branch already owns the namespace this branch maps to (their names differ only in characters a namespace cannot hold).

  • Fix: Rename the branch.

  • Retry-safe: no

env-namespace-not-managed

Namespace is not this app’s environment. The branch’s namespace exists without this app’s piceli.io/env-of label, or belongs to another branch. Nothing was changed or deleted.

  • Fix: Choose another EnvConfig(prefix=...), or remove the foreign namespace yourself.

  • Retry-safe: no

env-nodes-conflict

Workload pinned outside the environment’s nodes. A workload is pinned to a node (its node=, or the delivery node of a node-loopback registry) or selects a node label that the environment’s on_nodes (or EnvConfig(branch_nodes=...)) excludes.

  • Fix: Include that node in on_nodes, unpin the workload, or deliver through a registry every node can pull from.

  • Retry-safe: no

env-not-configured

No per-branch environments. The pipeline declares no envs=EnvConfig(...), or it has one target per environment (per-branch environments need one target).

  • Fix: Declare Pipeline(..., envs=EnvConfig(prefix=...)) with a single Target.

  • Retry-safe: no

env-not-found

No such environment. The branch has no environment yet.

  • Fix: Run piceli env up BRANCH first.

  • Retry-safe: no

env-pipeline-missing

No pipeline named. An environment command needs the pipeline and neither --pipeline MODULE:ATTR nor PICELI_PIPELINE names it.

  • Fix: Pass --pipeline deploy/app.py:pipeline or set PICELI_PIPELINE.

  • Retry-safe: no

env-plan-changed

Environment plan changed. The approved hash is not the environment’s current plan (the deploy plan, the namespace, the budget, the seed or the claims to delete changed).

  • Fix: Plan again and approve the new env_hash.

  • Retry-safe: no

env-seed-no-restore-point

No restore point to seed from. There is no verified restore point of the main namespace in the pipeline’s restore point directory, or the source is not the main branch.

  • Fix: Deploy main with restore_points=RestorePoints() (a stateful change takes one), then seed again.

  • Retry-safe: no

env-stack-incomplete

Stack leaves out a dependency. A workload or object the environment’s Stack keeps depends on a component or workload the stack leaves out (app.depends(...), or a config of another workload’s component).

  • Fix: Add the dependency’s workload to the Stack, or drop the dependency.

  • Retry-safe: no

env-stack-unknown

Stack names an unknown workload. A Stack(...) of an environment names a workload the app does not declare (Deployment, StatefulSet, DaemonSet, Job or CronJob). Nothing was planned.

  • Fix: Name the app’s workloads in the Stack, or remove the name.

  • Retry-safe: no

env-workload-unknown

Unknown workload. piceli logs names a workload the app does not declare.

  • Fix: Use a Deployment, StatefulSet, DaemonSet, Job or CronJob name of the app (piceli envs --json lists them).

  • Retry-safe: no

The in-cluster registry every node pulls from (Registry.in_cluster, piceli registry …)

cluster-registry-cluster-failed

Cluster refused a registry request. The Kubernetes API refused a read or a change of the registry objects (permissions, admission, an invalid object), or was unreachable.

  • Fix: Check access with a read-only tool and the message’s resource, then plan again.

  • Retry-safe: yes

cluster-registry-invalid

In-cluster registry input invalid. Registry.in_cluster(...) or piceli registry got a value it refuses: no node (on=/--on), a size that is not like 20Gi, a port, name or namespace that is not valid, an image not pinned by digest, a NodePort outside 30000-32767, a relative mirror_dir, options given together with a MODULE:ATTR that already declares the registry, or a MODULE:ATTR that is neither the registry nor a pipeline delivering to it.

  • Fix: Fix the value named in the message; with MODULE:ATTR, change the declaration instead of passing options.

  • Retry-safe: no

cluster-registry-not-installed

In-cluster registry not installed. The pipeline delivers to Registry.in_cluster(...) but its Deployment is not in the namespace: it is installed once per cluster, never by piceli deploy.

  • Fix: Install it with piceli registry install MODULE:ATTR (plan, then --approve HASH) and plan the deploy again.

  • Retry-safe: no

cluster-registry-not-ready

In-cluster registry not ready. The in-cluster registry is installed but no pod is ready (still starting, the image cannot be pulled, its claim is not bound, or its node is down).

  • Fix: Look at piceli registry status, fix what it shows, and plan the deploy again when it is ready.

  • Retry-safe: yes

cluster-registry-plan-changed

Registry plan changed. The hash given to --approve is not the hash of the current install or uninstall plan: the options or the live objects changed since the plan was reviewed.

  • Fix: Run the command without --approve, review the new plan and approve its hash.

  • Retry-safe: yes

cluster-registry-target-required

No cluster named. piceli registry needs the cluster: --kubeconfig FILE --context NAME (or --profile NAME), or a pipeline MODULE:ATTR whose target names it. It never uses the current context.

  • Fix: Pass --kubeconfig and --context (or --profile), or the pipeline.

  • Retry-safe: no

Declared clusters (piceli.infra.Cluster, piceli cluster …, piceli secrets git)

cluster-api-failed

Cluster API failed. The API server could not be reached, refused a request (the message names the method and the HTTP status), or the profile’s kubeconfig could not be used.

  • Fix: Check the profile (piceli profiles), the network and the account’s permissions, then retry.

  • Retry-safe: yes

cluster-api-mismatch

Profile points at another cluster. The credential profile (Cluster(credentials=) or --profile) names a kubeconfig context whose API server is not Cluster(api=) (scheme, host and port compared). Nothing was read from or written to the cluster.

  • Fix: Point the profile at the right context (piceli login NAME --kubeconfig FILE --context CTX), or correct api= in the declaration.

  • Retry-safe: no

cluster-credentials-missing

Cluster credentials missing. The controller found no readable credential Secret piceli-cluster-<name> (key kubeconfig) for another cluster of its composition, or the Secret holds no kubeconfig.

  • Fix: Run piceli secrets cluster --cluster MODULE:ATTR --kubeconfig FILE --context NAME (or --prompt for a token), then piceli gitops enable if the cluster is new.

  • Retry-safe: yes

cluster-credentials-refused

Cluster credentials refused. Another cluster’s API server answered 401 or 403 to the controller’s credentials (an expired or revoked token or certificate).

  • Fix: Store fresh credentials with piceli secrets cluster --cluster MODULE:ATTR ...; the next poll uses them.

  • Retry-safe: yes

cluster-credentials-unsupported

Cluster credentials unsupported. The kubeconfig given for another cluster uses an exec plugin, an auth provider, a token file, a user name and password or skips TLS verification, or has no token and no client certificate; the controller runs no plugin and holds no file of its own.

  • Fix: Give a kubeconfig context with a client certificate or a token (for example a service account token with --prompt).

  • Retry-safe: no

cluster-init-partial

Cluster init applied only part of its plan. piceli cluster init --approve (0.92.0) applied every object it could; the API refused the ones listed in failed (each with the API’s own reason). Before 0.92.0 the first refusal stopped the rest of the plan.

  • Fix: Read each reason: an RBAC refusal needs the account’s rights, an object in use is applied once it is free. Then run piceli cluster init again: it plans only what is left.

  • Retry-safe: yes

cluster-invalid

Cluster declaration invalid. A Cluster, Node, Controller or Ui got a value it refuses: a name that is not a DNS label or node name, an api that is not an http(s) URL, credentials that is not a profile name, an arch other than amd64/arm64, a role that is not a label-safe word, a node declared twice, a registry that is not Registry.in_cluster(...), an on= of the registry or controller that names an undeclared node, or a poll under 10 seconds (the UI’s own values are refused by its installer, ui-install-*).

  • Fix: Fix the value named in the message in the composition module.

  • Retry-safe: no

cluster-load-failed

Composition failed to import. Importing the module that declares the cluster raised an exception.

  • Fix: Run the module with Python to see the error, fix it, and retry.

  • Retry-safe: no

cluster-node-arch-mismatch

Node architecture differs. A node’s status.nodeInfo.architecture is not the arch the declaration gives it.

  • Fix: Correct arch= in the declaration (builds and placement rely on it) and plan again.

  • Retry-safe: no

cluster-node-missing

Declared node not in the cluster. A Node(...) of the declaration has no Node object of that name (kubernetes.io/hostname) in the cluster.

  • Fix: Join the node, or correct or remove it in the declaration, and plan again.

  • Retry-safe: no

cluster-not-found

Cluster not found. MODULE:ATTR does not name an importable piceli.infra.Cluster (no such file, module or attribute, or the attribute is something else).

  • Fix: Pass the composition module and the attribute that holds the Cluster(...), e.g. infra.py:my_cluster.

  • Retry-safe: no

cluster-not-initialized

Cluster not initialized. The command needs what piceli cluster init installs (the namespace piceli-system and its ConfigMap piceli-cluster), and it is not there.

  • Fix: Run piceli cluster init MODULE:ATTR (plan, then --approve HASH) first.

  • Retry-safe: no

cluster-plan-changed

Cluster init plan changed. The --approve hash is not the current plan’s: the declaration or the cluster changed since the plan (or the hash is wrong), or a node or object changed while the plan ran.

  • Fix: Run piceli cluster init MODULE:ATTR again, review the new plan and approve its hash.

  • Retry-safe: yes

cluster-registry-copy-failed

Copy into a cluster’s registry failed. The controller could not copy an image by digest from the home cluster’s registry into another cluster’s in-cluster registry through that cluster’s API server (the registry is not installed or not ready there, or the transfer failed).

  • Fix: Run piceli cluster init against that cluster (it installs Registry.in_cluster), check piceli cluster status, then piceli gitops sync ENV.

  • Retry-safe: yes

cluster-unreachable

Cluster unreachable. The GitOps controller could not reach another cluster of its composition (its API server did not answer GET /version in time, or a deploy step lost it). That cluster’s record is put off and retried with backoff; the environment’s other clusters go on; gitops status shows state: unreachable and its last_contact.

  • Fix: Check the network path from the controller to the cluster’s API (Cluster(api=), or the --server of piceli secrets cluster); the controller converges when it answers again.

  • Retry-safe: yes

secrets-invalid

Secret input invalid. --username is empty, longer than 256 characters, or holds spaces or control characters.

  • Fix: Pass a plain user name (e.g. git).

  • Retry-safe: no

secrets-prompt-required

Token prompt not requested. piceli secrets git reads the token only with --prompt, so it never waits on stdin unexpectedly.

  • Fix: Add --prompt and type the token (or pipe it on stdin).

  • Retry-safe: no

secrets-token-empty

No token read. --prompt read an empty line (or end of input) from stdin, or the value held a control character.

  • Fix: Run it again and type or pipe the token.

  • Retry-safe: no

secrets-token-refused

Token passed where it could leak. piceli secrets git got an extra argument or option, or PICELI_GIT_TOKEN is set: a token is never taken from the command line or the environment, where process listings, shell history and logs keep it. The value is not printed.

  • Fix: Unset the variable, drop the argument, and pass --prompt: type the token (no echo) or pipe it on stdin.

  • Retry-safe: no

Compositions: sources, component contracts (piceli.toml) and change-aware builds (piceli.infra, piceli gitops enable infra.py)

build-host-engine-failed

Build host’s container engine could not start builds. A build host’s container engine could not start the build container (0.75.0; docker run exited 125, for example a runtime hook error). The host hands the build to another host or the in-cluster fallback and is backed off: 5 minutes, then twice as long at each next failure in a row. After 3 in a row it is blocked and claims no image build; its next build that starts clears the count. piceli gitops hosts shows the backoff or block, and piceli gitops alarms raises build-host-blocked.

  • Fix: Check the container engine on the host (docker run --rm hello-world, the engine’s log), then piceli gitops release-host HOST.

  • Retry-safe: yes

build-host-fallback-only

Every image build went to the in-cluster fallback. The last image builds of an environment all went to the in-cluster fallback (0.75.0, Alarms(fallback_after=3, fallback_for="6h")): no build host built them. The hosts may be offline, blocked or on another Piceli version.

  • Fix: Run piceli gitops hosts and piceli builder status to see why the hosts do not build, fix it, and the alarm resolves with the next build a host delivers.

  • Retry-safe: yes

build-host-quarantined

Builder node quarantined. The GitOps controller builds nothing on its cluster builder node: the node is quarantined (0.22.0) after repeated machine-health signs in failed builds (an internal compiler error, a segfault, an illegal instruction, a machine check). The message names the node, the events and since when.

  • Fix: Check the node’s hardware (memory test, dmesg for machine checks), or build on hosts (Controller(builds=("hosts", ...))). piceli gitops release-host NODE ends the quarantine; piceli gitops suspects --host NODE lists the images it built.

  • Retry-safe: yes

build-host-source-failed

Build host could not fetch a source. A build host could not fetch a source of a build before its first command (0.29.0): it hands the build over and claims no build that needs that source. 0.75.0: the block ends after 24 hours, when the host tries the source again; piceli gitops hosts shows it, and piceli gitops alarms raises build-host-blocked.

  • Fix: Check that the host reaches the source’s repository (its URL, its credentials, its local mirror), then piceli gitops release-host HOST.

  • Retry-safe: yes

component-build-failed

Component build failed. Building or mirroring a component’s image failed: the host build failed, the build Job ended without a receipt, or the push to the registry did not succeed.

  • Fix: Look at the controller’s log and the build Job’s pod log; the controller retries with backoff and on the next revision.

  • Retry-safe: yes

component-build-unsupported

Component build not supported here. The component’s build cannot run where the controller builds: a dockerfile build needs a Docker engine, which the build Job and the controller do not have.

  • Fix: Use a rust, python or files build in piceli.toml.

  • Retry-safe: no

component-contract-invalid

Component contract refused. A [component.<name>] table of a source’s piceli.toml has an unknown key, a bad value, an unpinned image.base, or the file is not valid TOML.

  • Fix: Fix piceli.toml in the component’s repository (see docs/components.md) and push; the environment deploys on the next revision.

  • Retry-safe: no

component-contract-missing

Component contract missing. The source, at the commit the environment resolves to, has no piceli.toml or no [component.<name>] table for a component the environment runs.

  • Fix: Add the component’s table to piceli.toml in that repository, or take the component out of the environment’s stack.

  • Retry-safe: no

component-need-unmet

Component need unmet. A component’s needs names a component the environment’s stack does not run, or a Secret (secret:NAME) the environment does not list in secrets=.

  • Fix: Add the component to the stack or the Secret to the environment’s secrets= (and create it in the namespace), or mark the need optional with ? in piceli.toml.

  • Retry-safe: no

composition-invalid

Composition refused. The composition module (infra.py) or its controller config is malformed: no environments = [...], an environment without a follow={Source: rule} mapping, a component whose source the environment does not follow, two sources or components with one name, or more than one cluster or branch rule.

  • Fix: Fix the module as the message says and run piceli gitops enable infra.py again.

  • Retry-safe: no

composition-ref-unresolved

Environment ref not found. An environment’s follow names a branch or tag pattern that the source does not have (yet), so the environment has no commit for that source and is not deployed.

  • Fix: Push the branch or the tag the environment follows, or change its follow rule.

  • Retry-safe: yes

The UI installed in the cluster (Ui(access="forward"), piceli access ui, its Sync button)

access-ui-cluster-invalid

Not a Cluster. --cluster MODULE:ATTR did not import, or does not name a piceli.infra.Cluster.

  • Fix: Point --cluster at the module attribute that holds the Cluster(...), for example infra.py:my_cluster.

  • Retry-safe: no

access-ui-forbidden

Profile cannot read the UI. The profile’s credentials may not read the piceli-ui Service or its launch Secret in piceli-system.

  • Fix: Use a profile allowed to read that Service and Secret (the one that ran piceli cluster init).

  • Retry-safe: no

access-ui-not-declared

Cluster declares no UI. The Cluster has no ui=Ui(...), so piceli cluster init installs no UI for it.

  • Fix: Add ui=Ui(access="forward") to the cluster, run piceli cluster init (plan, then approve), then piceli access ui again.

  • Retry-safe: no

access-ui-not-installed

UI not installed in the cluster. The UI Service piceli-ui or its launch Secret is not in piceli-system.

  • Fix: Install it with piceli cluster init MODULE:ATTR (plan, then --approve HASH) and run piceli access ui again.

  • Retry-safe: no

access-ui-not-ready

UI has not started yet. The UI is installed but has not written its launch token: its pod is still starting, cannot pull its image, or its node is down.

  • Fix: Wait for the piceli-ui pod in piceli-system to run, then run piceli access ui again.

  • Retry-safe: yes

access-ui-target-required

Which cluster’s UI. piceli access ui (and piceli access stop --stale for the UI forward, instead of TARGET) needs exactly one of --cluster MODULE:ATTR (a composition’s Cluster) or --profile NAME (a piceli login profile).

  • Fix: Run piceli access ui --cluster infra.py:my_cluster or piceli access ui --profile my-cluster.

  • Retry-safe: no

access-ui-unreachable

Cluster API unreachable. The Kubernetes API of the profile did not answer, or answered with an error, while reading the UI’s Service or launch Secret.

  • Fix: Check the network and the profile (piceli profiles), then run piceli access ui again.

  • Retry-safe: yes

ui-controller-absent

No GitOps controller status. The UI reads the controller’s status ConfigMap piceli-gitops-status, and no controller has published one yet (GitOps is not enabled, or the controller has not finished its first poll).

  • Fix: Enable GitOps for the composition (piceli gitops enable MODULE), wait for its first poll, then refresh.

  • Retry-safe: yes

ui-install-access-unsupported

UI access mode not supported. The in-cluster UI is reached only through a port-forward: Ui(access="forward").

  • Fix: Use Ui(access="forward") and open it with piceli access ui.

  • Retry-safe: no

ui-install-image-unpinned

UI image not pinned. The in-cluster UI runs a Piceli image, and neither Ui(image=...) nor Controller(image=...) names one pinned by digest.

  • Fix: Set Ui(image="registry/piceli@sha256:<64 hex>") (or the controller’s image) and plan piceli cluster init again.

  • Retry-safe: no

ui-install-node-unknown

UI node not declared. Ui(on=...) (or, when it is unset, Controller(on=...)) names a node that is not in Cluster(nodes=[...]).

  • Fix: Name a declared node, or declare the node, and plan piceli cluster init again.

  • Retry-safe: no

ui-sync-target-unknown

Sync target not in the status. A Sync named an environment or component that the controller’s published status does not list (it was removed, renamed, or the page is out of date).

  • Fix: Refresh the page and sync an environment or component it shows; piceli gitops status lists them.

  • Retry-safe: no

ui-sync-unavailable

Sync request not written. The UI could not write the request into the ConfigMap piceli-gitops-requests (it is missing, the UI’s service account lacks its narrow write permission, or the API was unreachable).

  • Fix: Run piceli cluster init again (it recreates the inbox and the UI’s role), then retry; piceli gitops sync ENV writes the same request.

  • Retry-safe: yes

Client bundles and support bundles (piceli bundle, piceli support-bundle)

bundle-empty

Nothing to bundle. The render has no object for a bundle (Secrets are made by prepare.sh, never shipped).

  • Fix: Check the target and --env; piceli render shows what it renders.

  • Retry-safe: no

bundle-image-archive-missing

Image has no archive. The receipt records an image left in the local Docker engine, not an archive the bundle can copy.

  • Fix: Build it with the host builder (builder="host"), whose receipt holds OCI archives, then bundle again.

  • Retry-safe: no

bundle-image-mismatch

Image archive differs from the receipt. An image archive, SBOM or provenance file is not what the build receipt records (digest, layers or sha256).

  • Fix: Build again (piceli artifacts build-spec run) and bundle with the new receipt.

  • Retry-safe: no

bundle-image-platform-missing

Platform not built. The receipt holds no build of an image for a platform --platform asks for (default linux/amd64).

  • Fix: Build that platform, or pass the built ones with --platform (or --all-platforms).

  • Retry-safe: no

bundle-image-unpinned

Image without a digest. A workload names an image by tag only; a bundle pins every image.

  • Fix: Name the image repository@sha256:... (or use a build image).

  • Retry-safe: no

bundle-image-unresolved

Build image not in the receipt. A workload uses a build image that --receipt does not hold (or no receipt was given).

  • Fix: Build the images (piceli artifacts build-spec run) and pass the receipt with --receipt.

  • Retry-safe: no

bundle-invalid

Invalid bundle request. The bundle name, version or flags are invalid, the render declares a Namespace, or its objects carry two different app.kubernetes.io/part-of labels.

  • Fix: Pass a lowercase --name and an X.Y.Z --version, choose --platform or --all-platforms, and keep one part-of label per app.

  • Retry-safe: no

bundle-out-refused

Bundle directory refused. --out exists and is not an empty directory, or the bundle could not be written there (nothing is left behind).

  • Fix: Name an absent or empty directory with --out.

  • Retry-safe: no

bundle-receipt-invalid

Unreadable build receipt. --receipt is not a readable build receipt, or a path in it leaves its directory or cannot be read.

  • Fix: Pass the receipt piceli artifacts build-spec run wrote (and --output-dir when it moved).

  • Retry-safe: no

bundle-secret-unsupported

Secret prepare.sh cannot make. A Secret key is not bound to a generator output, or names an output no generator of the pipeline declares.

  • Fix: Bind every key to an output of the pipeline’s Secrets(...) (Static for public values); bundle a Pipeline, not a bare App, when the app has Secrets.

  • Retry-safe: no

bundle-secret-value

Secret value outside a Secret. An object other than a Secret holds a value Piceli redacts or injects at apply time; a bundle never carries secret values.

  • Fix: Move the value into a Secret bound to a generator output (app.secret(name, {key: secrets.ref(...)})).

  • Retry-safe: no

bundle-unsafe-network

Ingress from outside the namespace. A NetworkPolicy of the app admits ingress from any source, another namespace or an IP range; a bundle admits nothing from outside its namespace.

  • Fix: Allow only pods of the namespace (allow_from=, allow_from_selector=), or waive the rule for that object with app.safety_exception(policy, "network", reason=...).

  • Retry-safe: no

bundle-unsafe-no-privilege

Privileged pod. A pod of the bundle is privileged, allows privilege escalation, adds capabilities, uses the node’s network, PID or IPC namespace, or mounts a node directory.

  • Fix: Set allow_privilege_escalation=False and drop the host settings and added capabilities, or waive the rule for that object with app.safety_exception(item, "no-privilege", reason=...).

  • Retry-safe: no

bundle-unsafe-node-port

Port open on the nodes. A Service of the bundle is NodePort or LoadBalancer, or a container binds a host port.

  • Fix: Use a ClusterIP Service (the client reaches it with kubectl port-forward), or waive the rule for that object with app.safety_exception(item, "node-port", reason=...).

  • Retry-safe: no

bundle-unsafe-non-root

Container may run as root. A container of the bundle may run as UID 0: it sets neither runAsNonRoot: true nor a non-zero runAsUser (pod or container).

  • Fix: Run it as a non-root user (Security.restricted(user=10001) in pod_defaults or the workload’s security=), or waive the rule for that object with app.safety_exception(item, "non-root", reason=...).

  • Retry-safe: no

bundle-unsafe-rbac

RBAC beyond least privilege. A role or binding of the bundle uses a wildcard, escalate, bind or impersonate, writes or reads Secrets cluster-wide, or binds a role the bundle does not declare.

  • Fix: List only the verbs and resources the workload needs (Rule(...); cluster rules read-only), or waive the rule for that object with app.safety_exception(account, "rbac", reason=...).

  • Retry-safe: no

bundle-unsafe-read-only-root

Writable root filesystem. A container of the bundle does not set readOnlyRootFilesystem: true.

  • Fix: Set Security(read_only_root_filesystem=True) and mount a MemoryVolume where the process writes, or waive the rule for that object with app.safety_exception(item, "read-only-root", reason=...).

  • Retry-safe: no

bundle-unsafe-resources

Missing requests or limits. A container of the bundle does not request and limit both cpu and memory.

  • Fix: Give every container (init containers and sidecars too) Resources(cpu=, memory=, cpu_limit=, memory_limit=), or waive the rule for that object with app.safety_exception(item, "resources", reason=...).

  • Retry-safe: no

support-bundle-namespace-missing

Namespace not found. The namespace does not exist, or the context may not read it.

  • Fix: Check --namespace and that the context may read it (kubectl auth can-i get pods -n NS).

  • Retry-safe: no

support-bundle-out-refused

Support bundle file refused. --out already exists or cannot be created; a support bundle never overwrites a file.

  • Fix: Name a new file with --out.

  • Retry-safe: no

support-bundle-unreachable

Cluster API unreachable. The API server did not answer, or answered with an error, while the support bundle was read.

  • Fix: Check the network, --kubeconfig and --context, then run piceli support-bundle again.

  • Retry-safe: yes

support-bundle-write-refused

Write refused. The support bundle only reads; a request with another method than GET was refused before it was sent.

  • Fix: Report it: the collector never writes, and nothing was changed.

  • Retry-safe: no

Machines provisioned with OpenTofu (piceli.infra.Infrastructure, piceli infra …, piceli secrets provider|state-key|backup|restore)

infra-apply-failed

OpenTofu apply failed. tofu apply of the approved plan exited with an error. When part of it was applied, the output has partially_applied and lists what was applied (address, action, the provider’s id) and what was not; the next plan shows what remains. failed_on names the resources it failed on and tofu_log holds OpenTofu’s whole output, redacted.

  • Fix: Read the tofu: lines on stderr, fix the cause, then plan again (piceli infra plan MODULE:ATTR) and approve the new hash.

  • Retry-safe: no

infra-backend-changed

State backend changed. Infrastructure(backend=) differs from the backend the state was created with; running would start an empty state and create everything again.

  • Fix: Restore the previous backend, or move the state yourself (tofu init -migrate-state in the state directory) and update backend.json there.

  • Retry-safe: no

infra-credential-exists

State key already stored. A state passphrase with that name exists; replacing it makes the state it encrypts unreadable.

  • Fix: Keep the existing key, or pass --replace if the state it protected is gone.

  • Retry-safe: no

infra-credential-incomplete

Credential lacks a part. A stored credential holds fewer parts than its provider needs (one part of a Porkbun API key pair, an OpenStack application credential or S3 keys), or another provider’s parts. It was refused before any API call.

  • Fix: Run the command in the message (piceli secrets provider NAME --prompt); it replaces the stored credential without a separate delete.

  • Retry-safe: no

infra-credential-invalid

Invalid credential. A credential name is not a valid name, its file is damaged or of another kind, or the value read is empty, has control characters, or is a state passphrase shorter than 16 characters, or --provider (or --infra) does not name one provider.

  • Fix: Store the credential again with piceli secrets provider|state-key NAME --prompt.

  • Retry-safe: no

infra-credential-missing

Credential not stored. The provider token or state passphrase the declaration names is not in the credentials directory ($PICELI_CREDENTIALS_DIR, default ~/.config/piceli/credentials).

  • Fix: Store it: piceli secrets provider NAME --prompt for a token, piceli secrets state-key NAME --generate (or --prompt) for a state passphrase.

  • Retry-safe: no

infra-credential-part-invalid

Credential part refused. One part of a credential (named in part: api_key, secret_api_key, application_credential_id, application_credential_secret, access_key_id, secret_access_key, token) is empty, has a space around it, holds a : (two parts pasted as one ID:SECRET line), is not the provider’s shape (a Porkbun API key starts with pk1_, its secret API key with sk1_; an OpenStack application credential ID is 32 hex characters), is the other part pasted in its place, or its variable is not set (--from-env). The value is not printed; nothing was stored.

  • Fix: Run piceli secrets provider NAME --prompt (or piceli secrets s3 NAME --prompt) again and give each part on its own line, as its prompt names it.

  • Retry-safe: no

infra-credential-refused

Secret passed the unsafe way. A secret was given as a command-line argument, or is in the environment (HCLOUD_TOKEN, OS_APPLICATION_CREDENTIAL_SECRET, PORKBUN_API_KEY, PORKBUN_SECRET_API_KEY, PICELI_PROVIDER_TOKEN, PICELI_STATE_KEY) without --from-env, where it leaks into process listings and logs. It was not stored or echoed.

  • Fix: Unset the variable and run piceli secrets provider|state-key NAME --prompt, then type the value (or pipe it on stdin); for a script, piceli secrets provider NAME --from-env reads the provider’s own variables on purpose.

  • Retry-safe: no

infra-credential-unsafe

Credential readable by others. A credential file is readable or writable by other users.

  • Fix: Run chmod 600 on the file named in the message (and chmod 700 on its directory), then run the command again.

  • Retry-safe: no

infra-dns-api-disabled

DNS provider API access is off for the domain. API access is not turned on for a record’s domain (Porkbun turns it on per domain). A plan checks it for each domain it changes; an apply that meets it after changing something exits 1 with partially_applied and what it applied.

  • Fix: Turn API access on for the domain in the provider’s console (Porkbun: Domain Management → Details → API Access), then plan again and approve the new hash.

  • Retry-safe: no

infra-dns-check-failed

DNS provider API access could not be confirmed. The plan changes records at a DNS provider whose API access it checks before approval (Porkbun: per domain), and the check could not confirm it: no key pair was loaded, the API did not answer in time, or it refused the request (a wrong key pair, a domain not in the account). The plan does not pass a check it did not run. Nothing was applied.

  • Fix: Check the network and the key pair (piceli secrets provider NAME --prompt; a domain in that account), then plan again.

  • Retry-safe: yes

infra-dns-record-conflict

DNS records Piceli did not create are in the way. The zone holds records Piceli did not create (not in its ledger) where the plan creates one: a CNAME or ALIAS at the same name (a registrar’s parking record at the apex), any record at a name where Piceli creates a CNAME, or a record of the same name and type (for TXT, the same content). The apply would fail or answer beside them, and Piceli never touches records it did not create. The output’s conflicts lists each (type, name, content). Nothing was applied.

  • Fix: Remove or change those records at the registrar (Porkbun: Domain Management → DNS), or declare another name, then plan again and approve the new hash.

  • Retry-safe: no

infra-foreign-resource

Plan touches a resource Piceli did not create. The plan would update, replace or delete a resource that is not in Piceli’s ownership ledger or does not carry piceli.io/managed-by=piceli and piceli.io/infra=<name> (for example one imported into the state by hand). Nothing ran.

  • Fix: Remove the resource from the state with tofu state rm in the state directory (it is then left alone), or delete it at the provider yourself; then plan again.

  • Retry-safe: no

infra-image-build-invalid

Image build sidecar unreadable. Image.from_build(NAME, PATH) got a file that is missing, not JSON, or not a piceli.nix-image.v1 sidecar (a relative file, a 64-hex sha256, a known format).

  • Fix: Build the image with piceli dev nix build ... --image (it writes NAME.image.json in --artifacts-dir) and point from_build at that file.

  • Retry-safe: no

infra-image-checksum

Image checksum mismatch. The file or download of an Image does not have the declared sha256; nothing was uploaded and nothing was applied. Since 0.25.3 also: after an upload, the image service’s checksum (checksum, os_hash_value) was not the hash of the bytes sent; that image was deleted.

  • Fix: Check that file= or url= is the image you meant and that sha256= is its checksum (sha256sum FILE), then plan and approve again.

  • Retry-safe: no

infra-image-unavailable

Image file unavailable. The file= of an Image cannot be read, or its url= cannot be downloaded, or (0.25.3) the build host that built it no longer holds it (its Nix store collected it); nothing was uploaded.

  • Fix: Make the file readable or the URL reachable from this machine, or build the image again (piceli dev nix build ... --image), or upload the local copy with Image.from_build(..., upload="local"); then plan and apply again.

  • Retry-safe: yes

infra-image-upload-failed

Image upload failed. Piceli sent the image to the cloud’s image service (Glance) and every attempt failed (a dropped connection, a refused request), or Glance did not make it active. Each failed attempt’s half-made image was deleted; nothing else was applied. The full log is image-upload-<name>.log in the state directory.

  • Fix: Read the log, check the link from where the image is sent (the build host, or this machine), then plan and apply again: the upload starts over.

  • Retry-safe: yes

infra-install-changed

Install command changed. The rendered install command (or its server’s addresses) is not the one approved, or the digest is wrong.

  • Fix: Run piceli infra install MODULE:ATTR SERVER again, review the command and approve its digest.

  • Retry-safe: yes

infra-install-failed

Install hook failed. The approved install command could not start, exited with an error, or ran longer than Hook(timeout=) and was stopped. Its output went to stderr.

  • Fix: Fix the cause shown by the command’s output, then run piceli infra install again (plan, then approve).

  • Retry-safe: no

infra-install-unavailable

No install hook to run. The server declares no install=Hook(...), or its hook uses a placeholder the server has no value for (for example {ipv4} without IPv4).

  • Fix: Declare Server(..., install=Hook([...])) with placeholders the server has, or install the OS by hand.

  • Retry-safe: no

infra-invalid

Invalid machine declaration. A Server, PrimaryIp, Firewall, Rule, DnsRecord, Hook, Ssh, provider or Infrastructure has a value Piceli refuses (a name that is not a DNS label, a port out of range, a CIDR with host bits, a server type the provider does not accept, an option of piceli infra out of range).

  • Fix: Fix the declaration as the message says, then run the command again.

  • Retry-safe: no

infra-k3s-not-ready

k3s did not become ready. Before --wait seconds passed, the kubeconfig could not be read over SSH, or the API at Cluster(api=) did not answer with a Ready node (k3s still installing, the API address not reachable, or not in k3s’s TLS SANs).

  • Fix: Check k3s on the server and that Cluster(api=) is reachable and listed in k3s’s --tls-san, then run piceli infra register again (a longer --wait if it is still starting).

  • Retry-safe: yes

infra-kubeconfig-invalid

Kubeconfig unusable. The kubeconfig (given or read over SSH) is not YAML, is larger than 1 MB, or does not define exactly one usable context (or the --context given).

  • Fix: Give a kubeconfig with one context (or --context NAME), as k3s writes it to /etc/rancher/k3s/k3s.yaml.

  • Retry-safe: no

infra-load-failed

Infrastructure module failed to import. Importing the module named by MODULE:ATTR raised an exception.

  • Fix: Fix the module (run it with python to see the error, or set PICELI_DEBUG=1 for the traceback) and run the command again.

  • Retry-safe: no

infra-no-cluster

Server declares no cluster. piceli infra register --kubeconfig needs Server(cluster=Cluster(...)): the cluster the server’s k3s becomes. Without a cluster, register only pins the server’s SSH host keys.

  • Fix: Add cluster=Cluster(name, api=..., credentials=...) to the server, or drop --kubeconfig to pin its host keys only.

  • Retry-safe: no

infra-not-applied

Server not created yet. The server has no id or address in the state directory’s inventory: it was never applied, or was destroyed.

  • Fix: Run piceli infra apply MODULE:ATTR (plan, then --approve HASH) first.

  • Retry-safe: no

infra-not-found

Not an Infrastructure. MODULE:ATTR does not import, or does not name a piceli.infra.Infrastructure.

  • Fix: Point the command at the module attribute that holds the Infrastructure(...), for example machines.py:infra.

  • Retry-safe: no

infra-plan-changed

Infrastructure plan changed. The fresh plan’s hash is not the approved one: the declaration, the pinned providers, the state or the resources at the provider changed since the plan (or the hash is wrong).

  • Fix: Run piceli infra plan MODULE:ATTR (or destroy without --approve) again, review the new plan and approve its hash.

  • Retry-safe: yes

infra-prompt-required

Secret source not chosen. piceli secrets provider needs exactly one of --prompt or --from-env; piceli secrets state-key needs exactly one of --prompt or --generate.

  • Fix: Add --prompt (and type the value, or pipe it on stdin) or --generate.

  • Retry-safe: no

infra-register-changed

Registration changed since approval. The host keys, the kubeconfig or the profile that register would write are not those approved, or the digest is wrong. A changed host key can mean another machine answers at that address.

  • Fix: Run piceli infra register MODULE:ATTR SERVER again, check the fingerprints, and approve the new digest.

  • Retry-safe: yes

infra-s3-key-refused

Cloud refused to create S3 keys. OpenStack’s identity service refused to create an EC2 credential (S3 keys) with the provider’s application credential. Since Keystone’s OSSA-2026-005 fix, a restricted application credential (the default) may not create EC2 credentials.

  • Fix: Create an unrestricted application credential and store it (piceli secrets provider NAME --prompt), then plan again; or remove keys=, create the keys yourself (openstack ec2 credentials create) and store them with piceli secrets s3 NAME --prompt.

  • Retry-safe: yes

infra-s3-keys-unsupported

Provider cannot create S3 keys. The declaration has Bucket(keys=[S3Key(...)]) at a provider where Piceli cannot create S3 key pairs. At Infomaniak the API lets only the account’s own user create S3 (EC2) credentials, never an application credential, restricted or not (0.25.3).

  • Fix: Remove keys= and make each pair by hand: signed in as the project’s user (not an application credential), run openstack ec2 credentials create; store it with piceli secrets s3 NAME --prompt; then declare NixCache(bucket=..., write_credentials=WRITE, read_credentials=READ). piceli host secrets installs the read pair on the host, and piceli secrets status lists both until they are stored.

  • Retry-safe: no

infra-server-unknown

Server not declared. No server of the Infrastructure has that name.

  • Fix: Use a name from piceli infra status MODULE:ATTR.

  • Retry-safe: no

infra-ssh-missing

SSH tools not found. ssh or ssh-keyscan is not on PATH.

  • Fix: Install OpenSSH’s client, or give the kubeconfig yourself with --kubeconfig FILE.

  • Retry-safe: no

infra-ssh-unreachable

Server’s SSH not reachable. No host key could be read from the server’s SSH address (it is down, the OS install has not finished, or the firewall does not allow SSH from here).

  • Fix: Check that the server runs and that Ssh(address=) is reachable from this machine, then run the command again.

  • Retry-safe: yes

infra-state-in-git

State directory inside a Git work tree. The OpenTofu state directory (Infrastructure(state_dir=) or the default) is inside a Git work tree, where it could be committed.

  • Fix: Set Infrastructure(state_dir=...) to a directory outside any repository, or keep the default ~/.local/state/piceli/infra/<name>.

  • Retry-safe: no

infra-state-locked

Infrastructure state in use. Another piceli infra command holds the state directory’s lock: one operator at a time.

  • Fix: Wait for the other command to end, then run this one again.

  • Retry-safe: yes

infra-state-unencrypted

S3 keys need an encrypted state. The declaration has Bucket(keys=[S3Key(...)]): their secrets go into the OpenTofu state and plan files, and the encryption configuration does not encrypt and enforce both.

  • Fix: Run it through piceli infra plan and apply, which always encrypt the state with Infrastructure(state_key=); or remove keys= and store keys yourself with piceli secrets s3 NAME --prompt.

  • Retry-safe: no

infra-state-unexpected

Unexpected files in the state directory. The state directory holds OpenTofu configuration or variable files (*.tf, *.tf.json, *.tofu, *.tfvars) besides Piceli’s main.tf.json; OpenTofu would load them together with the declaration.

  • Fix: Move the files named in the message out of the state directory (Piceli writes only main.tf.json there), then run the command again.

  • Retry-safe: no

infra-tofu-failed

OpenTofu command failed. tofu init, plan or show exited with an error (a provider download, a provider API refusal, a data source lookup that found nothing, a wrong state passphrase, an unreachable state backend). Nothing was applied. Its diagnostics are on stderr, each with the address of the resource or data source it failed on (also in failed_on), with secrets redacted; OpenTofu’s whole output, redacted, is in tofu_log in the state directory.

  • Fix: Read the tofu: lines on stderr (or the file in tofu_log, or run again with --verbose), fix the cause, and run the command again.

  • Retry-safe: yes

infra-tofu-missing

OpenTofu not found. No tofu binary: not given with --tofu, not in $PICELI_TOFU, not on PATH, or not executable.

  • Fix: Install OpenTofu 1.8 or later (for example nix shell nixpkgs#opentofu) or pass --tofu PATH.

  • Retry-safe: no

infra-tofu-unsupported

Not a supported OpenTofu. The binary did not report OpenTofu vX.Y.Z, or its version is older than 1.8. Piceli needs OpenTofu’s state encryption; another tool would write the state in the clear.

  • Fix: Install OpenTofu 1.8 or later and pass it with --tofu PATH.

  • Retry-safe: no

infra-user-data-missing

User data not stored. The plan creates (or replaces) a server declared with UserData(secret=NAME), and no credential NAME holds its user data. Plans that do not create the server never need it.

  • Fix: Store it, then plan again: piceli secrets user-data NAME --file PATH (or --prompt). For a bootstrap key, mint a single-use key that expires within the hour just before.

  • Retry-safe: yes

secrets-age-missing

age is not installed. piceli secrets backup|restore encrypt and decrypt with the age command (the standard age format, plugins for hardware keys), and it is not on PATH or at $PICELI_AGE; piceli secrets backup-key needs age-keygen ($PICELI_AGE_KEYGEN, next to $PICELI_AGE, or on PATH).

  • Fix: Install age (nix profile install nixpkgs#age, brew install age, apt install age) or set PICELI_AGE to its path.

  • Retry-safe: no

secrets-backup-empty

Secret store empty. $PICELI_CREDENTIALS_DIR holds no file, so there is nothing to back up.

  • Fix: Store a credential first (piceli secrets provider|state-key|...), or point PICELI_CREDENTIALS_DIR at the store.

  • Retry-safe: no

secrets-backup-exists

Backup file exists. piceli secrets backup --to PATH never replaces an existing file on its own.

  • Fix: Choose another path, or pass --force to replace it.

  • Retry-safe: no

secrets-backup-failed

age refused to encrypt. age exited with an error: a recipient it cannot use (a missing plugin such as age-plugin-yubikey) or a write error. Nothing was written.

  • Fix: Check the recipients and that each plugin is on PATH, then run the backup again.

  • Retry-safe: no

secrets-backup-invalid

Backup destination refused. The backup would be written inside the secret store or the profiles, or its directory does not exist.

  • Fix: Choose a file outside the store in an existing directory (an external drive, a synced folder).

  • Retry-safe: no

secrets-backup-key-exists

Offline key file exists. piceli secrets backup-key --out PATH never replaces an existing file on its own: it may be the only copy of a key.

  • Fix: Choose another path, or pass --force once you are sure the old key is not needed.

  • Retry-safe: no

secrets-backup-key-failed

Offline key not created. age-keygen exited with an error or printed no key. Nothing was written.

  • Fix: Check the age installation (age-keygen on PATH, or PICELI_AGE_KEYGEN), then run the command again.

  • Retry-safe: yes

secrets-backup-key-invalid

Offline key destination refused. piceli secrets backup-key --out PATH would write the key inside the secret store or the profiles it protects, or PATH’s directory does not exist. Nothing was written.

  • Fix: Choose a path outside the store in an existing directory (a USB drive), or one you delete after printing the key.

  • Retry-safe: no

secrets-backup-only-unknown

Credential to transfer not found. piceli secrets backup --only NAME named a credential the store does not hold (only NAME.json credentials of $PICELI_CREDENTIALS_DIR can be named). Nothing was written.

  • Fix: Check the names with piceli secrets status MODULE; create a missing one first (its next command), then run the transfer again.

  • Retry-safe: yes

secrets-backup-recipient-invalid

Backup recipient not a public key. A recipient is not an age (age1..., age1yubikey1...) or SSH (ssh-ed25519 ..., ssh-rsa ...) public key, or the recipients file is unreadable. The value is not printed: a pasted identity must not reach a log.

  • Fix: Pass the public key (age-keygen -y KEY, age-plugin-yubikey --list), never an identity.

  • Retry-safe: no

secrets-backup-recipients-missing

No backup recipients. piceli secrets backup got no --recipient or --recipients-file, and no earlier backup remembered any.

  • Fix: Pass --recipient age1... (repeatable, at least two keys kept apart: piceli secrets backup-key --out PATH --add creates the offline one) or --recipients-file FILE; later backups reuse them.

  • Retry-safe: no

secrets-backup-single-recipient

Backup for one recipient. piceli secrets backup got a single recipient: losing that one key loses the secret store and its backup together. Nothing was written.

  • Fix: Add a second recipient kept apart: an offline age key (piceli secrets backup-key --out PATH --add, kept on paper or USB) or an age-plugin-yubikey identity, next to the age key in your password manager. To accept one recipient anyway, pass --single-recipient (recorded in the backup and its marker).

  • Retry-safe: no

secrets-nothing-declared

No declaration that needs secrets. piceli secrets status or setup got a module (or MODULE:ATTR) that declares no Infrastructure, Bucket, NixCache, NixHost, NixRelease, DevBuilds or Cluster. Nothing was read or stored.

  • Fix: Name the module that declares them (piceli secrets status web_1.py), or the attribute of one declaration (web_1.py:host).

  • Retry-safe: yes

secrets-restore-archive-invalid

Backup archive refused. The file is missing, is not a Piceli secret-store backup, or holds an unsafe member (an absolute path, .., a link, a special file, a name twice, a file outside the store). Nothing was written.

  • Fix: Restore from a file written by piceli secrets backup; never extract a crafted archive into the store.

  • Retry-safe: no

secrets-restore-decrypt-failed

Backup not decrypted. age could not decrypt the backup: the identity is not one of its recipients, the passphrase or hardware key was refused, or the file is damaged. Nothing was written.

  • Fix: Pass --identity FILE with a key the backup was made for (or plug in the hardware key with its plugin on PATH).

  • Retry-safe: no

secrets-restore-plan-changed

Restore plan changed. --approve does not match the restore plan of this archive and this store: the store or the archive changed since the plan was shown.

  • Fix: Run piceli secrets restore PATH without --approve and approve the digest it prints.

  • Retry-safe: no

Nix host releases (piceli.infra.NixHost, the host agent, piceli host …)

host-address-unknown

Host address unknown. The host’s Server has no Ssh(address=), and no --infra names the infrastructure whose applied state has its address.

  • Fix: Pass --infra MODULE:ATTR, declare Ssh(address=), or give an SSH target.

  • Retry-safe: no

host-build-bad

Build marked bad. The build failed on this host before (a refusal, a failed switch or check); the agent skips it until a newer pointer for it.

  • Fix: Publish a fixed build, or publish the same commit again to retry it.

  • Retry-safe: no

host-busy

Host agent busy. A poll held the agent’s lock (a deploy in progress) for the whole wait of piceli host pin, unpin or rollback.

  • Fix: Wait for the deploy (piceli host status), then run the command again.

  • Retry-safe: yes

host-cache-unreachable

Nix cache not reachable. Reading the cache (a pointer, a listing, a manifest or a narinfo) failed or the object is missing (network, endpoint, read credentials, or a gc that ran meanwhile).

  • Fix: The agent tries again at its next poll; check the cache’s endpoint and the read-only credentials file.

  • Retry-safe: yes

host-check-failed

Host check failed. A check did not pass before its timeout after the switch; the agent switched back to the previous system.

  • Fix: Read the check in piceli host status --json, fix the service and publish a new build.

  • Retry-safe: no

host-check-invalid

Host check refused. A HostCheck is HostCheck.unit(NAME), HostCheck.http(URL) (http(s), no credentials) or HostCheck.command(ARG, ...), with a timeout of 1 to 3600 s and a unique DNS-label name.

  • Fix: Fix the check.

  • Retry-safe: no

host-control-unsupported

Host agent cannot run the command. The host has no piceli-host-agent command, or it did not answer with a result: its module was rendered by an older Piceli, or sudo -n is not allowed for the SSH user.

  • Fix: Render the module again with piceli host module, switch the host once, and log in as root (or allow sudo -n).

  • Retry-safe: no

host-credentials-exposed

Host credentials file readable by others. A credentials or headers file on the host is readable by its group or others; the agent does not use it.

  • Fix: chmod 600 the file (owned by root).

  • Retry-safe: yes

host-credentials-missing

Host credentials file missing. The cache’s read-only credentials file (AWS_ACCESS_KEY_ID=, AWS_SECRET_ACCESS_KEY=), or the report’s headers file, is absent or incomplete on the host.

  • Fix: Put the read-only keys (never the write keys) into the file, 0600 root, as docs/nix_hosts.md shows.

  • Retry-safe: yes

host-deploy-failed

Host refused or failed the build. The host agent’s last attempt at this build was refused (signature, manifest, system) or failed before the switch; the host still runs its previous system.

  • Fix: Read the attempt’s stages and reason with piceli host status --json and piceli explain of that reason.

  • Retry-safe: no

host-deploy-interrupted

Deploy interrupted. The agent’s run died with an attempt pending, after activating the new system and before its checks passed: its own switch stopped it, a check hung the process, or the host rebooted. Its next run rolled back (or found the previous system running after a reboot) and marked the build bad.

  • Fix: Read piceli host status --json (the attempt’s stages) and the host’s journal (journalctl -u piceli-host-agent); fix the configuration and publish a new build, or publish the same commit again to retry it.

  • Retry-safe: no

host-invalid

Nix host declaration refused. NixHost needs a DNS-label name, a Server or an ssh://user@host target, flake= as .#NAME or .#ATTR, follow=Tag(...) or Branch(...), a NixCache (an s3:// or file:// one to follow tags), and absolute paths for its files; or HostReport got an endpoint that is not http(s), or plain http:// to another machine without insecure=True.

  • Fix: Fix the declaration; piceli explain host-invalid and docs/nix_hosts.md list each field.

  • Retry-safe: no

host-manifest-mismatch

Build manifest does not match. The manifest’s sha256 is not the pointer’s, or it names another build, commit, store path or flake attribute than the host’s NixHost(flake=).

  • Fix: Publish the host’s attribute under its build name (piceli dev nix build .#nixosConfigurations.NAME.config.system.build.toplevel --name NAME --publish ...).

  • Retry-safe: no

host-narinfo-mismatch

Narinfo does not match the manifest. The store path’s narinfo (or the realised path) has another StorePath or NarHash than the signed manifest.

  • Fix: Publish the build again; if it repeats, the cache holds a corrupt or replaced object.

  • Retry-safe: no

host-not-found

Not a Nix host. The MODULE:ATTR given to piceli host did not load, or is not a piceli.infra.NixHost.

  • Fix: Point at the NixHost (hosts.py:web), or give an SSH target (ssh://root@host).

  • Retry-safe: no

host-pin-not-found

No build of that tag. piceli host pin names a tag with no published build for the host’s build name in the cache (or not a tag name).

  • Fix: Publish the tag’s build (piceli dev nix build --ref TAG --publish ...) or pin a published tag.

  • Retry-safe: no

host-pinned

Host is pinned. The host holds a build (piceli host pin, or piceli host rollback) and deploys no other until piceli host unpin; piceli host wait stops instead of timing out.

  • Fix: Run piceli host unpin HOST to follow the declared ref again, or wait for the held build.

  • Retry-safe: no

host-pointer-replayed

Old ref pointer refused. The ref pointer’s published_at is older than one the agent already saw for that ref: an old, validly signed pointer was put back.

  • Fix: Publish the build again (a new pointer is newer); check who can write to the cache.

  • Retry-safe: no

host-promotion-missing

Build without its verified pin. The host declares gate=Promotion(...) and the build’s signed manifest carries no pinned of that input and environment: it was published without the promotion gate (an older Piceli, or a publish that skipped it). The agent does not switch to it.

  • Fix: Publish the build through the gate: the controller’s NixRelease, or piceli dev nix build --publish of the gated host (the gate runs automatically), after piceli promote HOST --from ENV pinned a verified commit.

  • Retry-safe: no

host-prune-failed

Old systems not pruned. After a deploy that passed its checks, deleting the system generations beyond NixHost(generations=) (nix-env --delete-generations) or collecting the store (nix-store --gc) failed or timed out. The deploy stands; the host keeps more systems and the disk fills sooner.

  • Fix: Read prune in piceli host status --json and the host’s journal (journalctl -u piceli-host-agent); the next deploy tries again.

  • Retry-safe: yes

host-realise-failed

Fetching the build failed. nix copy --from the cache failed: the network, the read credentials, or a path missing from the cache. The host never builds.

  • Fix: The agent tries again at its next poll; check the cache and that the whole closure was published.

  • Retry-safe: yes

host-report-failed

Report endpoint not reached. The OTLP endpoint did not accept the agent’s events within 2 s; they wait in a bounded queue for the next run and the deploy goes on.

  • Fix: Check the endpoint and its headers file; nothing else is needed.

  • Retry-safe: yes

host-rollback-failed

Rollback failed. Switching back to the previous system failed after a failed switch or check; the host may run a mix of both.

  • Fix: Log in, run /nix/var/nix/profiles/system/bin/switch-to-configuration switch (0.26.2: the profile is still the previous system unless the boot step had started) or reboot.

  • Retry-safe: no

host-rollback-unavailable

No previous system to roll back to. The agent has recorded no previous system, it is the one running, or it is no longer in the host’s store (collected).

  • Fix: Pin a published tag instead (piceli host pin HOST TAG).

  • Retry-safe: no

host-rolled-back

Host rolled the build back. The build was switched to, but the switch or a check failed and the agent switched back to the previous system; the build is marked bad and not tried again until a newer pointer.

  • Fix: Read the failed check in piceli host status --json, fix it, publish a new build (or publish the same commit again to retry it).

  • Retry-safe: no

host-secret-activation-failed

Host activation failed after the key. The key was written, but re-running the system’s activation (switch-to-configuration switch) failed, so sops-nix may not have decrypted.

  • Fix: Read the host’s journal, then run /run/current-system/bin/switch-to-configuration switch on it.

  • Retry-safe: yes

host-secret-exists

Host holds another age key. The host’s key file holds a different age identity; replacing it changes what sops-nix can decrypt.

  • Fix: Check which key .sops.yaml lists; pass --replace to the plan if the new one is meant, after re-encrypting the secrets to it.

  • Retry-safe: no

host-secret-plan-changed

Host secrets plan changed. What piceli host secrets would write (the key, the host’s file, --replace) changed since the digest was approved.

  • Fix: Plan again and approve the new digest.

  • Retry-safe: no

host-secret-undeclared

Host declares no secret to install. piceli host secrets needs a NixHost with age_identity= (a credential from piceli secrets age NAME --generate) or a cache whose bucket declares S3Key(access="read") (0.25.0).

  • Fix: Declare NixHost(age_identity=NAME) or the bucket’s read key, and give the NixHost (MODULE:ATTR).

  • Retry-safe: no

host-secret-write-failed

Writing the host’s key failed. Over SSH, checking or writing the key file failed: a read-only path, no root (or sudo -n), or missing sh, sha256sum or mktemp.

  • Fix: Check that ssh USER@HOST runs commands as root, then plan again.

  • Retry-safe: yes

host-signature-invalid

Build signature refused. A ref pointer, build manifest or narinfo is not signed by the cache’s public key the host trusts; nothing was realised.

  • Fix: Publish with the key whose public key the NixCache declares; if nobody did, someone wrote to the cache: rotate its write keys.

  • Retry-safe: no

host-ssh-failed

Host SSH session failed. ssh connected and logged in, then the session broke: it closed with no exit status, was closed by the host, or did not finish in time (0.26.2: a status read gives up after 30 s). A host whose switch broke its login shell, PAM or sshd looks like this.

  • Fix: Read the agent’s own reports at the host’s HostReport endpoint when it declares one, or the console; a broken switch is rolled back by the agent, and a reboot comes up on the previous system. Then run the command again.

  • Retry-safe: yes

host-status-missing

Host agent status missing. The host answered but has no readable /var/lib/piceli-host/status.json: the agent’s module is not imported yet, or it has not run once.

  • Fix: Render the module with piceli host module, import it, rebuild the host once; the agent writes its status at its first run (a minute after boot).

  • Retry-safe: yes

host-switch-failed

Switch failed. switch-to-configuration test of the new system failed or hung, or, after its checks passed, nix-env --set or switch-to-configuration boot; the agent activated the previous system again (0.26.2: the boot default moves only after the checks).

  • Fix: Read the host’s journal (journalctl -u piceli-host-agent), fix the configuration and publish a new build.

  • Retry-safe: no

host-system-mismatch

Build is for another system. The manifest’s system (x86_64-linux, aarch64-linux) is not the host’s.

  • Fix: Build the host’s configuration for its own system.

  • Retry-safe: no

host-unreachable

Host not reachable over SSH. ssh failed: no route, a closed port, an unknown or changed host key (only known keys are accepted), or a refused login; or ssh is not installed.

  • Fix: Check that ssh USER@HOST works without a prompt (its host key in ~/.ssh/known_hosts, or pinned by piceli infra register), then run the command again.

  • Retry-safe: yes

host-wait-timeout

Host did not reach the build in time. piceli host wait saw neither the build running with its checks passed nor a failed attempt before --timeout: the build may not be published yet, or the agent has not polled.

  • Fix: Check piceli host status, that the build was published (piceli dev nix build --publish) and its pointer names the ref the host follows; wait longer.

  • Retry-safe: yes

targets-input-required

No targets named. piceli targets was given no module and no controller, so it has nothing to show.

  • Fix: Pass --composition MODULE (environments and NixReleases), --infra MODULE (NixHosts and their servers) and, to read another controller than the composition’s home cluster’s (its piceli login profile), --kubeconfig FILE --context NAME or --state-dir.

  • Retry-safe: no

The pre-merge train (piceli.train.Train, piceli train)

train-branch-unknown

Unknown candidate branch. A candidate does not name a commit, is named twice, or is the train’s base or tested branch.

  • Fix: Pass existing feature branches, each once.

  • Retry-safe: no

train-branches-required

No candidate branches. piceli train needs at least one branch to merge.

  • Fix: Name the branches: piceli train APP --branches a b c.

  • Retry-safe: no

train-busy

Train already running. Another run of the same train holds its lock in the state directory.

  • Fix: Wait for that run to finish, then run the train again.

  • Retry-safe: yes

train-checkout-dirty

Branch checked out with changes. The base or tested branch is checked out in a worktree with uncommitted changes, so it cannot be fast-forwarded there. Nothing was tagged or moved.

  • Fix: Commit or stash the changes in that worktree, then run the train again.

  • Retry-safe: yes

train-compare-invalid

Train compare request not valid. –compare runs the old command and the train side by side and never moves or pushes anything, so it refuses –promote, –push, –queue, –retire and –promote-run; it also needs a non-empty command, a valid –compare-phase expression and a scratch clone of the repository.

  • Fix: Drop the flags the message names, or run the train without –compare.

  • Retry-safe: no

train-git-failed

Git command failed. A Git command the train needed failed (a worktree, a ref update, a diff).

  • Fix: Run git status and git worktree prune in the repository, then run the train again.

  • Retry-safe: yes

train-host-unavailable

No host could take a train step. Every host a step may run on (its hosts, else the train’s) was down, quarantined or unavailable at start, and no fallback to this machine applies (Train(fallback=None), or this machine was already tried).

  • Fix: Check piceli dev hosts, release a quarantined host once fixed, or allow the fallback with Train(fallback=“local”); then run the train again.

  • Retry-safe: yes

train-images-failed

Train images not built or offered. The images step could not compute the controller’s change keys, build an image, push it to the cluster’s registry, or offer it to the controller. The promotion stands; the controller builds the images itself as before.

  • Fix: Read the images step’s log; check the composition, the build host and the cluster’s registry, then run piceli train APP --promote-run last again or let the controller build.

  • Retry-safe: yes

train-init-exists

Train spec file already exists. piceli train-init would overwrite a file that is already there.

  • Fix: Pick another path, or add –force to overwrite it.

  • Retry-safe: no

train-init-invalid

Train init input not usable. The script given to –from cannot be read, or an option is not valid: –images is not a composition module path (infra.py[:ATTR]), –repository was given without –images, –host is not a build host name, –builds is not MODULE:ATTR with –host, or –name is not a DNS label.

  • Fix: Fix the option named in the message and run piceli train-init again.

  • Retry-safe: no

train-interrupted

Train run stopped before it finished. The run’s record still says running but no process holds the train’s lock: the run was killed.

  • Fix: Read its last state with piceli trains NAME, then run the train again.

  • Retry-safe: no

train-invalid

Train declaration invalid. The Train(...) or one of its steps is invalid: a name that is not a DNS label, two steps with one name, no test step, a tag without {n}, an empty argv.

  • Fix: Fix the declaration as the message says.

  • Retry-safe: no

train-load-failed

Train module failed to load. Importing the train’s spec module raised an exception or took too long.

  • Fix: Run python path/to/module.py to see the error, fix the module, then run the train again.

  • Retry-safe: no

train-merge-conflict

Branch conflicts with the train. Merging the branch onto the train’s head (the base plus the branches already joined) conflicts. The train never resolves a conflict.

  • Fix: Merge or rebase the branch on the base, resolve the conflict, then queue it again.

  • Retry-safe: no

train-merge-failed

Merging the branch failed. Git could not make the merge commit for a reason other than a conflict (a damaged object, a full disk, a refused ref). The result gives Git’s message. A missing Git identity is not one: the train then commits as Piceli train train@piceli.invalid.

  • Fix: Read Git’s message in the result, fix the repository or the machine, then queue the branch again.

  • Retry-safe: no

train-not-fast-forward

Promotion is not a fast-forward. The base or tested branch moved outside the train during the run (or was never an ancestor of the train’s head), so moving it to the head would drop commits. Nothing was tagged or moved.

  • Fix: Bring the branch back onto the train’s history (merge it into the base by the train), then run the train again.

  • Retry-safe: no

train-not-found

Train not found. The module given to piceli train cannot be imported, has no such attribute, the attribute is not a piceli.train.Train, or the module declares no Train or several.

  • Fix: Pass MODULE:ATTR or path/to/file.py:ATTR naming one Train.

  • Retry-safe: no

train-notify-failed

Train notification failed. A notifier of the train (a command, a webhook or the desktop) failed or ran past its timeout. The run’s result is unchanged.

  • Fix: Check the notifier’s command, URL or environment variables; the run’s outcome is in piceli train-wait RUN and piceli trains.

  • Retry-safe: yes

train-publish-failed

Publish step failed. The promotion happened (the tag and branches moved), but a publish step exited non-zero.

  • Fix: Read the publish step’s log and run the publish script by hand for the tag.

  • Retry-safe: yes

train-push-failed

Train push failed. git push --atomic of the tag, tested and the base was refused or failed; nothing was pushed. The local promotion stands.

  • Fix: Fetch, check whether the remote’s base moved, then push the tag and branches, or run the train again.

  • Retry-safe: yes

train-push-needs-promote

–push without –promote. --push pushes a promotion (the tag, tested and the base), so it needs --promote.

  • Fix: Add --promote, or leave out --push.

  • Retry-safe: no

train-queue-cancelled

Queued request cancelled. The request was cancelled with piceli train-queue NAME --cancel ID before it ran.

  • Fix: Queue the branches again with piceli train APP --branches … --queue if they should still join.

  • Retry-safe: no

train-queue-not-found

No such queued request. No train under the state root has a queued request with that id.

  • Fix: List the queue with piceli train-queue NAME, and pass the –state-dir the train used.

  • Retry-safe: no

train-queue-not-waiting

Request no longer waiting. Only a waiting request can be cancelled; this one is running or finished.

  • Fix: Wait for it with piceli train-wait ID; a run in progress is stopped by its own process.

  • Retry-safe: no

train-repo-invalid

Train repository invalid. The train’s repo is not a Git repository, or its base branch does not exist.

  • Fix: Point Train(repo=...) at the repository (relative to the spec module) and create the base branch.

  • Retry-safe: no

train-retire-invalid

–retire without a promotion, or –retire-remote without –push. --retire renames the branches a promotion joined, so it needs --promote (or --promote-run); --retire-remote also deletes them on the remote once the push made them redundant, so it needs --push.

  • Fix: Add --promote (and --push for --retire-remote), or leave out the retire flag.

  • Retry-safe: no

train-run-cancelled

Train run cancelled. The run was interrupted (Ctrl-C) after it started. It is recorded as failed (run-failed) and its notifications were sent; no ref moved after the interruption.

  • Fix: Run the train again when you want the branches judged.

  • Retry-safe: yes

train-run-failed

Train run failed midway. The run raised an unexpected error after it started. It is recorded as failed (run-failed), with what had joined so far, and its notifications were sent.

  • Fix: Read the run with piceli trains NAME and its step logs, then run the train again; report the error if it repeats.

  • Retry-safe: yes

train-run-not-found

No such train run. No train under the state root has a run with that id, and no train has that name.

  • Fix: Take the run id from piceli train --json or piceli trains, and pass the –state-dir the train used.

  • Retry-safe: no

train-run-unknown

No such train run to promote. --promote-run names a run with no record under the train’s state directory, one that did not finish, or one that joined nothing.

  • Fix: Name a finished run that joined branches (its id is in the result and under runs/), or last.

  • Retry-safe: no

train-spec-invalid

Spec of the merged tree invalid. The train’s spec module is missing from the merged tree, or fails to import there, or no longer declares the Train.

  • Fix: Fix the spec module on the branch (it is read from the commit under test).

  • Retry-safe: no

train-step-failed

A train step failed. A step of the merged tree’s spec exited non-zero (a failed build, a test that failed again on its retry, a check). The result names the step, its log and an output tail.

  • Fix: Read the step’s log, fix the branch on top of the current base, then queue it again.

  • Retry-safe: no

train-step-timeout

A train step timed out. A step ran longer than its timeout and was stopped with its process group.

  • Fix: Find what hangs in the step’s log, or raise the step’s timeout.

  • Retry-safe: yes

train-telemetry-failed

Train telemetry not exported. The OTLP collector was unreachable, slow or refused the spans, or the telemetry configuration is unusable. The run is unaffected.

  • Fix: Check that the collector listens on the configured OTLP/HTTP endpoint and OTEL_EXPORTER_OTLP_* settings.

  • Retry-safe: yes

train-telemetry-unavailable

Train telemetry needs the telemetry extra. The spec declares Train(telemetry=Otlp(..., protocol="http/protobuf")), which is sent as protobuf, and the OTLP protobuf classes (opentelemetry-proto) are not installed. The train refuses before it runs rather than send JSON a protobuf-only collector would reject.

  • Fix: Install the extra (pip install 'piceli[telemetry]', or uv tool install 'piceli[telemetry]'), or remove telemetry= from the spec.

  • Retry-safe: no

train-unknown

No such train. No train of that name has run with this state root, so it has no state directory.

  • Fix: Run piceli trains to list the trains, or pass the –state-dir the train used.

  • Retry-safe: no

train-wait-timeout

Train run still running. The run had not ended when the –timeout of piceli train-wait ran out.

  • Fix: Wait again (piceli train-wait RUN), or follow it with piceli trains NAME --follow.

  • Retry-safe: yes