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 |
|---|---|---|
execution |
no |
|
access |
yes |
|
access |
no |
|
access |
no |
|
access |
no |
|
access |
no |
|
access |
no |
|
access |
no |
|
access |
no |
|
access |
no |
|
access |
yes |
|
access |
no |
|
access |
no |
|
access |
no |
|
access |
no |
|
access |
no |
|
cluster-ui |
no |
|
cluster-ui |
no |
|
cluster-ui |
no |
|
cluster-ui |
no |
|
cluster-ui |
yes |
|
cluster-ui |
no |
|
cluster-ui |
yes |
|
access |
no |
|
release |
no |
|
release |
no |
|
execution |
no |
|
execution |
no |
|
execution |
no |
|
kubernetes |
yes |
|
execution |
no |
|
execution |
no |
|
approval |
no |
|
approval |
no |
|
approval |
no |
|
approval |
no |
|
release |
no |
|
target |
no |
|
execution |
no |
|
observe |
no |
|
host-build |
no |
|
host-build |
yes |
|
host-build |
no |
|
host-build |
no |
|
artifacts-registry |
yes |
|
artifacts-registry |
no |
|
artifacts-registry |
yes |
|
host-build |
no |
|
build-spec |
no |
|
composition |
yes |
|
composition |
yes |
|
composition |
yes |
|
composition |
yes |
|
host-build |
no |
|
build-spec |
yes |
|
build-spec |
no |
|
dev |
yes |
|
dev |
no |
|
dev |
yes |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
no |
|
maintenance |
no |
|
maintenance |
no |
|
maintenance |
no |
|
artifacts-delivery |
yes |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
no |
|
chart |
no |
|
chart |
no |
|
chart |
no |
|
chart |
no |
|
chart |
yes |
|
chart |
no |
|
chart |
no |
|
chart |
no |
|
checks |
yes |
|
checks |
no |
|
checks |
no |
|
checks |
yes |
|
checks |
yes |
|
checks |
no |
|
checks |
no |
|
checks |
no |
|
checks |
no |
|
checks |
yes |
|
checks |
yes |
|
gitops |
no |
|
checks |
no |
|
checks |
no |
|
restore |
yes |
|
restore |
no |
|
restore |
no |
|
restore |
yes |
|
restore |
yes |
|
restore |
no |
|
restore |
no |
|
restore |
yes |
|
restore |
no |
|
cluster |
yes |
|
cluster |
no |
|
host-build |
yes |
|
host-build |
no |
|
cluster |
yes |
|
cluster |
yes |
|
cluster |
no |
|
release |
no |
|
kubernetes |
yes |
|
cluster |
yes |
|
cluster |
no |
|
cluster |
no |
|
cluster |
no |
|
cluster |
no |
|
cluster |
no |
|
cluster |
no |
|
cluster |
yes |
|
cluster-registry |
yes |
|
cluster |
yes |
|
cluster-registry |
no |
|
cluster-registry |
no |
|
cluster-registry |
yes |
|
cluster-registry |
yes |
|
cluster-registry |
no |
|
cluster |
yes |
|
codegen |
yes |
|
codegen |
no |
|
codegen |
no |
|
host-build |
no |
|
host-build |
yes |
|
artifacts-delivery |
yes |
|
artifacts-delivery |
no |
|
artifacts-delivery |
no |
|
artifacts-delivery |
yes |
|
execution |
no |
|
composition |
yes |
|
composition |
no |
|
composition |
no |
|
composition |
no |
|
composition |
no |
|
composition |
no |
|
composition |
yes |
|
kubernetes |
no |
|
build-spec |
no |
|
build-spec |
yes |
|
build-spec |
no |
|
build-spec |
no |
|
build-spec |
no |
|
publish |
yes |
|
publish |
no |
|
publish |
yes |
|
publish |
no |
|
publish |
yes |
|
publish |
no |
|
codegen |
no |
|
codegen |
no |
|
publish |
yes |
|
artifacts-input |
no |
|
artifacts-registry |
no |
|
cli |
no |
|
kubernetes |
yes |
|
execution |
no |
|
images |
no |
|
pipeline |
no |
|
pipeline |
yes |
|
cli |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
yes |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
yes |
|
cli |
no |
|
host-build |
no |
|
host-build |
yes |
|
host-build |
no |
|
host-build |
no |
|
dev |
yes |
|
dev |
yes |
|
dev |
yes |
|
dev |
no |
|
dev |
no |
|
dev |
no |
|
dev |
no |
|
dev |
yes |
|
dev |
no |
|
dev |
no |
|
dev |
yes |
|
dev |
no |
|
dev |
no |
|
dev |
no |
|
dev |
no |
|
dev |
yes |
|
dev |
no |
|
dev |
no |
|
dev |
yes |
|
dev |
no |
|
dev |
no |
|
dev |
yes |
|
dev |
no |
|
dev |
yes |
|
dev |
yes |
|
dev |
yes |
|
dev |
yes |
|
dev |
no |
|
dev |
yes |
|
dev |
yes |
|
dev |
no |
|
dev |
yes |
|
dev |
no |
|
dev |
no |
|
dev |
yes |
|
dev |
no |
|
dev |
no |
|
dev |
yes |
|
dev |
yes |
|
artifacts-delivery |
no |
|
release |
yes |
|
artifacts-input |
no |
|
artifacts-input |
no |
|
build-spec |
yes |
|
build-spec |
no |
|
kubernetes |
no |
|
kubernetes |
no |
|
envs |
no |
|
envs |
no |
|
envs |
yes |
|
envs |
yes |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
host-build |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
envs |
no |
|
environments |
no |
|
environments |
no |
|
environments |
no |
|
environments |
no |
|
render |
no |
|
render |
no |
|
render |
no |
|
render |
no |
|
render |
no |
|
render |
no |
|
render |
no |
|
render |
no |
|
target |
no |
|
target |
no |
|
target |
no |
|
target |
no |
|
target |
no |
|
target |
no |
|
target |
no |
|
target |
no |
|
target |
yes |
|
release |
no |
|
release |
no |
|
release |
no |
|
release |
no |
|
release |
no |
|
cli |
no |
|
execution |
no |
|
artifacts-input |
no |
|
artifacts-input |
no |
|
observe |
yes |
|
artifacts-delivery |
yes |
|
access |
yes |
|
artifacts-input |
no |
|
artifacts-delivery |
yes |
|
observe |
yes |
|
execution |
no |
|
inputs |
yes |
|
inputs |
no |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
no |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
no |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
no |
|
gitops |
no |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
no |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
no |
|
gitops |
no |
|
gitops |
no |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
no |
|
gitops |
no |
|
gitops |
no |
|
gitops |
yes |
|
build-spec |
yes |
|
artifacts-input |
yes |
|
maintenance |
no |
|
maintenance |
no |
|
maintenance |
yes |
|
hosts |
no |
|
hosts |
no |
|
host-build |
no |
|
build-spec |
no |
|
hosts |
yes |
|
hosts |
yes |
|
hosts |
no |
|
hosts |
no |
|
hosts |
no |
|
hosts |
yes |
|
hosts |
yes |
|
hosts |
no |
|
hosts |
no |
|
hosts |
no |
|
hosts |
no |
|
hosts |
no |
|
hosts |
no |
|
host-build |
no |
|
hosts |
no |
|
hosts |
no |
|
hosts |
no |
|
hosts |
no |
|
hosts |
yes |
|
hosts |
yes |
|
hosts |
yes |
|
hosts |
no |
|
hosts |
no |
|
hosts |
no |
|
hosts |
yes |
|
hosts |
no |
|
hosts |
no |
|
hosts |
no |
|
hosts |
yes |
|
hosts |
no |
|
hosts |
yes |
|
hosts |
yes |
|
hosts |
no |
|
hosts |
no |
|
host-build |
no |
|
host-build |
yes |
|
host-build |
yes |
|
host-build |
no |
|
hosts |
yes |
|
hosts |
yes |
|
kubernetes |
no |
|
images |
no |
|
images |
no |
|
build-spec |
no |
|
build-spec |
no |
|
images |
no |
|
artifacts-registry |
yes |
|
artifacts-registry |
yes |
|
artifacts-registry |
no |
|
release |
no |
|
artifacts-delivery |
yes |
|
import |
yes |
|
artifacts-delivery |
yes |
|
import |
no |
|
import |
no |
|
import |
no |
|
artifacts-delivery |
no |
|
import |
no |
|
import |
no |
|
import |
no |
|
import |
no |
|
artifacts-delivery |
yes |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
yes |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
yes |
|
infra |
yes |
|
infra |
yes |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
yes |
|
infra |
no |
|
infra |
no |
|
dev |
yes |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
yes |
|
infra |
no |
|
infra |
yes |
|
infra |
yes |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
yes |
|
infra |
no |
|
infra |
yes |
|
infra |
no |
|
infra |
no |
|
infra |
yes |
|
infra |
no |
|
infra |
no |
|
infra |
yes |
|
inputs |
yes |
|
inputs |
no |
|
observe |
no |
|
release |
no |
|
artifacts-input |
no |
|
artifacts-delivery |
no |
|
artifacts-registry |
no |
|
artifacts-input |
no |
|
release |
no |
|
artifacts-input |
no |
|
artifacts-input |
no |
|
publish |
no |
|
kubernetes |
yes |
|
execution |
no |
|
kubernetes |
no |
|
artifacts-input |
no |
|
observe |
no |
|
build-spec |
no |
|
artifacts-delivery |
no |
|
build-spec |
no |
|
inputs |
no |
|
observe |
no |
|
kubernetes |
no |
|
artifacts-input |
no |
|
cli |
no |
|
build-spec |
no |
|
kubernetes |
yes |
|
release |
no |
|
observe |
no |
|
kubernetes |
no |
|
build-spec |
no |
|
artifacts-input |
no |
|
observe |
no |
|
release |
no |
|
kubernetes |
no |
|
secrets |
no |
|
observe |
no |
|
artifacts-input |
no |
|
build-spec |
no |
|
artifacts-input |
no |
|
artifacts-input |
no |
|
artifacts-input |
no |
|
artifacts-registry |
no |
|
build-spec |
no |
|
kubernetes |
no |
|
kubernetes |
no |
|
artifacts-input |
no |
|
kubernetes |
no |
|
observe |
yes |
|
artifacts-registry |
yes |
|
artifacts-registry |
no |
|
artifacts-registry |
no |
|
artifacts-registry |
no |
|
artifacts-registry |
no |
|
kubernetes |
no |
|
kubernetes |
no |
|
build-spec |
no |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
yes |
|
release |
no |
|
execution |
no |
|
release |
no |
|
release |
no |
|
observe |
no |
|
host-build |
no |
|
kubernetes |
no |
|
kubernetes |
no |
|
artifacts-input |
no |
|
host-build |
no |
|
host-build |
no |
|
artifacts-delivery |
yes |
|
artifacts-input |
no |
|
kubernetes |
no |
|
release |
no |
|
kubernetes |
no |
|
release |
no |
|
execution |
no |
|
observe |
no |
|
release |
no |
|
release |
yes |
|
release |
yes |
|
release |
no |
|
release |
yes |
|
build-spec |
no |
|
execution |
no |
|
pipeline |
no |
|
pipeline |
yes |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
yes |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
yes |
|
pipeline |
yes |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
yes |
|
pipeline |
no |
|
pipeline |
yes |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
yes |
|
artifacts-input |
no |
|
artifacts-registry |
no |
|
release |
no |
|
release |
no |
|
release |
no |
|
build-spec |
no |
|
release |
no |
|
release |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
no |
|
pipeline |
yes |
|
pipeline |
no |
|
target |
no |
|
target |
no |
|
target |
no |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
yes |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
yes |
|
observe |
no |
|
gitops |
yes |
|
gitops |
no |
|
gitops |
yes |
|
kubernetes |
yes |
|
publish |
yes |
|
publish |
no |
|
publish |
no |
|
publish |
yes |
|
publish |
no |
|
publish |
yes |
|
kubernetes |
no |
|
execution |
no |
|
execution |
no |
|
images |
no |
|
images |
no |
|
execution |
no |
|
artifacts-input |
no |
|
retention |
no |
|
artifacts-registry |
no |
|
artifacts-registry |
yes |
|
artifacts-registry |
no |
|
artifacts-registry |
no |
|
artifacts-input |
no |
|
artifacts-registry |
no |
|
retention |
yes |
|
artifacts-registry |
no |
|
artifacts-registry |
yes |
|
release |
no |
|
release |
no |
|
state |
yes |
|
release |
no |
|
release |
no |
|
release |
no |
|
release |
no |
|
release |
no |
|
release |
yes |
|
render |
no |
|
render |
no |
|
render |
no |
|
execution |
yes |
|
execution |
no |
|
execution |
yes |
|
release |
no |
|
execution |
no |
|
execution |
no |
|
release |
no |
|
kubernetes |
no |
|
execution |
no |
|
release |
no |
|
release |
no |
|
kubernetes |
no |
|
restore |
no |
|
restore |
no |
|
restore |
no |
|
restore |
no |
|
restore |
yes |
|
restore |
no |
|
restore |
no |
|
restore |
no |
|
restore |
no |
|
restore |
yes |
|
restore |
yes |
|
restore |
yes |
|
restore |
no |
|
restore |
no |
|
restore |
yes |
|
restore |
yes |
|
restore |
yes |
|
restore |
yes |
|
restore |
no |
|
restore |
no |
|
restore |
no |
|
restore |
yes |
|
observe |
no |
|
restore |
yes |
|
restore |
yes |
|
restore |
yes |
|
restore |
no |
|
restore |
yes |
|
restore |
yes |
|
restore |
no |
|
restore |
no |
|
release |
no |
|
execution |
no |
|
release |
no |
|
execution |
no |
|
execution |
no |
|
retention |
no |
|
retention |
yes |
|
retention |
yes |
|
gitops |
no |
|
gitops |
yes |
|
release |
no |
|
maintenance |
yes |
|
maintenance |
yes |
|
maintenance |
no |
|
artifacts-registry |
no |
|
kubernetes |
no |
|
secrets |
no |
|
secrets |
no |
|
secrets |
no |
|
secrets |
yes |
|
secrets |
yes |
|
secrets |
no |
|
secrets |
no |
|
secrets |
no |
|
secrets |
no |
|
secrets |
no |
|
secrets |
no |
|
secrets |
no |
|
secrets |
yes |
|
secrets |
no |
|
secrets |
yes |
|
secrets |
no |
|
secrets |
no |
|
secrets |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
infra |
yes |
|
infra |
no |
|
infra |
yes |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
cluster |
no |
|
infra |
yes |
|
cluster |
no |
|
infra |
no |
|
infra |
no |
|
infra |
no |
|
cluster |
no |
|
cluster |
no |
|
kubernetes |
no |
|
publish |
yes |
|
publish |
no |
|
publish |
no |
|
publish |
yes |
|
build-spec |
no |
|
build-spec |
no |
|
build-spec |
no |
|
build-spec |
no |
|
inputs |
no |
|
artifacts-delivery |
yes |
|
inputs |
no |
|
build-spec |
no |
|
inputs |
no |
|
build-spec |
no |
|
inputs |
no |
|
inputs |
no |
|
inputs |
no |
|
inputs |
no |
|
artifacts-delivery |
yes |
|
build-spec |
yes |
|
build-spec |
no |
|
artifacts-input |
no |
|
state |
no |
|
state |
no |
|
state |
no |
|
state |
no |
|
state |
no |
|
state |
no |
|
state |
no |
|
state |
no |
|
observe |
yes |
|
state |
no |
|
state |
no |
|
state |
yes |
|
access |
yes |
|
access |
yes |
|
access |
yes |
|
access |
no |
|
release |
no |
|
release |
no |
|
release |
no |
|
bundle |
no |
|
bundle |
no |
|
bundle |
yes |
|
bundle |
no |
|
kubernetes |
no |
|
kubernetes |
no |
|
target |
no |
|
hosts |
no |
|
artifacts-delivery |
yes |
|
artifacts-registry |
yes |
|
artifacts-input |
no |
|
train |
no |
|
train |
no |
|
train |
yes |
|
train |
yes |
|
train |
no |
|
train |
yes |
|
train |
yes |
|
train |
yes |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
yes |
|
train |
yes |
|
train |
yes |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
yes |
|
train |
yes |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
no |
|
train |
yes |
|
train |
yes |
|
train |
no |
|
train |
no |
|
train |
yes |
|
kubernetes |
yes |
|
access |
yes |
|
access |
no |
|
observe |
no |
|
observe |
no |
|
cluster-ui |
yes |
|
observe |
no |
|
observe |
no |
|
observe |
no |
|
cluster-ui |
no |
|
cluster-ui |
no |
|
cluster-ui |
no |
|
observe |
no |
|
observe |
yes |
|
observe |
no |
|
observe |
yes |
|
observe |
yes |
|
observe |
no |
|
observe |
no |
|
observe |
no |
|
observe |
no |
|
observe |
no |
|
observe |
no |
|
cluster-ui |
no |
|
cluster-ui |
yes |
|
execution |
no |
|
kubernetes |
no |
|
cli |
no |
|
release |
no |
|
observe |
no |
|
release |
no |
|
release |
no |
|
observe |
no |
|
inputs |
no |
|
artifacts-registry |
yes |
|
artifacts-delivery |
yes |
|
release |
no |
|
maintenance |
yes |
|
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--jsonor--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-approvealone; or--resumealone (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:ATTRfor a pipeline), orpiceli release status --spec … --run ID.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-jsonand 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 600on 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.sockor pointDOCKER_HOSTat 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-sha256to 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/NAMEor 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
--timeoutif 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 theConfigofmanifest.jsonindocker 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/NAMEwith a valid--namespace,--forward-remote-portand 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-sha256to 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-sha256to 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
--*-sha256pin 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
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 saveor an OCI build and check it withpiceli 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
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 imagesor 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 = falseor--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
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
--toat 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
--topoints at a real registry.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,reasonanduntil.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 FILEand 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 previewand 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
includepatterns 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
includepatterns.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
context-symlink¶
Symbolic link in build context. A context include pattern matches a symbolic link.
Fix: Exclude the link or replace it with the real file.
Retry-safe: no
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 buildFROMthe 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.lockto see the problem.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.tomland 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-networkif 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 previewagain 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.tomlto 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)¶
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
getnamespaces (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 planagain 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
applyalthough 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 --plancomputes 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
planshows 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 planagain 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 planagain 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_uidonly 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 planagain and approve the new plan hash. Add--adopt Kind/nameif 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_IDshows them again); fix the image, command, config or Secret and plan again, orpiceli release rollback previous. An app that is expected to crash while its dependencies start can set[execution] fail_fast = false.Retry-safe: no
compensation-already-started¶
Compensation already started. The execution is being compensated (undone) and cannot continue forward.
Fix: Run
piceli release planagain 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 planagain 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 planagain 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 planagain 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 planagain and approve the new plan hash. Add--adopt Kind/nameto 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, orpiceli 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 planagain 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 planagain 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 planagain 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 planagain 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
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 statusin the source named inmessageand 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 = truefor 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
pathand usesubpathfor 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
refin 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
refin inputs.toml.Retry-safe: no
source-subpath-missing¶
Source subpath missing. The declared subpath does not exist in the source repository.
Fix: Fix
subpathin 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-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 rendershows 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:attrorfile.py:attrof an App, DeploymentComposition or build(ctx) function, and fix the error the message names (PICELI_DEBUG=1prints 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 runorpiceli 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] adoptand--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
--specand--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 newstate_dirfor 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.tomlto 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.tomlagain 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; forpiceli deploy, the Pipeline’sreplace=["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_hashfrom therelease planoutput.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 runpiceli 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 statuslists 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(orrollback) 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 statusshows 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 withrelease 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 --pruneagain with the same--include-*flags, review the set and approve the newplan_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(runpiceli 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.tomlagain 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.tomlagain 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.tomland 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(aPipeline), which runs the checks before the workloads change, or remove thepre_rolloutdeclarations if the release must go throughpiceli 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_releasesunset 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 = 20under[release](orPipeline(keep_releases=20)), or pass--keep Ntopiceli release retention.Retry-safe: no
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/namefor 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/namefor non-retained objects),[release] adopt/replace, or--adopt-all-desired; or delete the object. Forpiceli deploy, declare it on the Pipeline instead (adopt=["Kind/name"]orreplace=[…]; seeblocking[].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 crdrecords it in the generated module’sSCOPE.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 withpiceli 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.tomlagain 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.tomlagain 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.tomlagain 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 anexecution_idfromhistory, or pass apiceli deployrun 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.tomlto 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--rotateinto a Secret with a new name). Useversioned=Truefor config files that carry a secret: atemplate,import,staticor 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-dirand that--outputdoes 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_portin 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
--tailbetween 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
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 backupinto 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-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-not-found¶
UI resource not found. The resource is absent or outside the configured scope.
Fix: Refresh the selected application.
Retry-safe: no
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-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_rolloutcheck definitions, or deploy withpiceli 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-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) orpath/file.py:functionrelative to release.toml.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-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 planvalidates[[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
timeoutorretries, 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 statusand roll back by hand (piceli release rollback previous), with--skip-checksonly in an emergency.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 TARGETto see whether the workloads are ready and who holds each port, fix it, then runpiceli accessagain.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 401API token invalidusually 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 Nfor a dashboard port; forpiceli access ui,piceli access stop --stale --cluster MODULE:ATTRor--profile NAME). Otherwise stop the listed pid yourself, or changelocal=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 TARGETagain; it then stops the orphanedkubectlitself.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.notessay 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, ormodule:attrof 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 changelocal=, then runpiceli 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_dirand runpiceli 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 setallow_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
execcommand, then addallow_exec = true(and ideallyexec_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-tokenorgcloud auth login) and useinteractiveMode: IfAvailableorNever.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_sha256to 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 NAMEor--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 CTXagain.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 profileslists 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
liston 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
--namespaceto 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
--namewith 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
--forceto 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
--selectto 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
--kubeconfigfile and--contextwith 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,…) andOTEL_EXPORTER_OTLP_PROTOCOL(http/protobuforhttp/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 FILEwrote, 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=REVonce per source, for example--ref app=mainor--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 --jsonlists them understages.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 withpiceli release rollback previous --spec MODULE:ATTR.piceli release status --spec MODULE:ATTR --run RUN_IDshows 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:functionentry 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-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 fromdocker 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 tobuild=.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 … --planchecks 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.pyimports cleanly, then run the command again (PICELI_DEBUG=1prints 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 showshows 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 withdocker 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:pipelineorpackage.module:pipelinenaming apiceli.Pipelineobject.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 --planand 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 --planagain, 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 --planagain (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_hashfrompiceli deploy MODULE:ATTR --planinstead. 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--planagain.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=orexisting_claim=, or usereplace=NAMEto 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) orreplace="NAME"(its Deployment is backed up and recreated), or choose anotherport=/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"]orreplace=[…]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
ReadWriteOncefor a claim the upgrade check must open beside the running pod, dropUpgradeCheckfor 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.checksin 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
categoryandreasoninstages.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_secondsonApp.pre_rolloutif the check is legitimately slow, or fix what makes it hang, then deploy 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 customresourcedefinitionsand 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 FILEorpiceli 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
--forceto 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,
--versionwith 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
--crdwith the CRD’s name (plural.group, such ascertificates.cert-manager.io) or its kind;kubectl get crdlists 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 NAMEshows 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 needstarget={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,500MBor1073741824.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 statusto 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 examplepiceli 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 statusto see the holder, then retry with a larger--waitonce 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 runpiceli doctoragain.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 withpiceli runs; with shared state runpiceli state pullfirst.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 withpiceli 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_scopedanddriftinallow, any class indeny, and an integermax_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 --planorpiceli 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 --jsonand the host’s own status (piceli host status), fix the cause, then runpiceli gitops candidate request COMMITto 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
releasesinpiceli gitops candidate list --json, fix the cause, then runpiceli 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.lockpins the candidate’s commit (for examplenix flake lock --update-input appat 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 runpiceli 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, thenpiceli 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; thenpiceli 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=)andSource(records=); thenpiceli 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 runpiceli gitops sync ENVto 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 alarmsshows 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 publishwithout--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(orpiceli 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 activeto 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 statusfor the tags and heads the controller sees, push the tag first, or promote another commit to the environment withpiceli 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
canaryobject of the JSON; fix the composition or pick another image, then run the command again.--forcereplaces 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 rendershows 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=Truefrom 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_hostsfor SSH and the network from the cluster. The controller retries on its next poll.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.tomlwhose[images]or receipts pin every image by digest, or deploy the pipeline withpiceli 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) inpiceli gitops status --json, fix the cause (a newer tag publishes again), or retry the same tag withpiceli 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:ATTRat 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-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 statuslists them), or addPromote()to itsfollowand runpiceli gitops enableagain.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 statusshows 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/passwordorssh-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 statusand 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’sidorrun_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-fieldsannotation.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 externalto 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 statusand 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:
--kubeconfigwith--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
passwordof the credentials Secret (--credentials-secret, in the controller’s namespace) beforeexpires_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
traceparentof the trace that starts the release (for example00-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(andpiceli host statusfor 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 --jsonon 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 inCandidate(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, checkpiceli host status NAME --infra MODULEworks: 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 promotecommand 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
--fromthe gate’s environment and--bumpmajor, 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 withgit 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 promotewithout--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 DIGESTcommand again (approve_commandin 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 statusreaches the controller with the same options (--kubeconfig/--context,--state-dir, orpiceli loginfor 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 asflake.nixdoes, or commit aflake.lockthat 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 ENVpins the newest commit the environment passed (the refusal’snewest_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
checksandreasoninpiceli gitops status) and push a new revision, orpiceli 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-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
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 abuild.tomlwithBuild.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--platformonce 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.gopin; if the module cache is damaged, remove<cache>/go/modand 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-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_filesare 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 examplenix 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. Putrustupnext tocargoon 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: node24.11.0, binaryen123, wasm-bindgen0.2.114.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 PAGESIZEon 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 withmigrate_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 applyor 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 thePipeline.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>")withreplace=["StatefulSet/<name>"], orExistingClaim("<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 (
ClaimTemplatename orExistingClaimclaim) 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 IDwithout--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, setover_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 --jsonand 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 raisetimeout_secondsfor 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-...); declareRestorePoints(image='...@sha256:...')with an image that hassh,tar,gzip,find,sort,sha256sumandhead.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 --resumecontinues 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/execpermission,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:ATTRand 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 raiseRestorePoints(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; labelpiceli.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,reasonandverifystate in the receipt; run it again with--keepand 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) withkubectl 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
reasonin 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(orlaunchctl 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 runpiceli builder installagain (--printshows 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 PATHwrites it into PATH for its service, for exampleuv tool install --force "piceli==$(cat PATH)"before it starts) and startbuilder serveagain;piceli builder statusshows 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 podson 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=)orcache_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(orpiceli 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:ATTRon it (--publish-onlyis implied), and serve image builds from another host; or declare it withoutruns=False.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://orfile://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(orpiceli secrets nix-cache NAME --generate) and put the public key it prints intoNixCache(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 gcagain 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, overssh://) orBuildHost.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
ATTRor.#ATTR, a DNS-label--name, a commit with--refwhen publishing, and declareDevProfile.for_nix(); give the docker host, the profile orDevBuildsanimage.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 fromnix key generate-secretwith--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 NAMEand fix the declaration orNixCache(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, thenpiceli cluster init MODULE:ATTRand 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 initagain.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 fetchthe 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 RUNshows 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(orDevBuilds(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 lowerDevBuilds(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;
channelis a version (1.97.0),stable,betaornightly-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/execin namespacepiceli-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, orpiceli secrets restoreof 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 NAMEor 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 publishwithout--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 rendershows 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-appand--version 1.2.3;piceli rendershows 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--versionfor 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-fieldsannotation.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.jsonofpiceli chart renderdocuments 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 copywithout--approve, review the plan and pass itsplan_digestto--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> getyourself (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 loginwrites 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
reasonin 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 publishwithout--approve, review the plan, and pass itsdigestto--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(fromcosign 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 -Llists the keys the agent holds;ssh-add KEYloads 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(verbsgetandcreate) andlistonpodsin 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 --deletewithout--approve, review the new plan and pass itsdigestto--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
branchesin 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 downon an unused branch, or drop--waitto stop the least recently pushed environment.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
ClusterIPService and reach the branch withpiceli access BRANCH.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 deployandpiceli 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 singleTarget.Retry-safe: no
env-not-found¶
No such environment. The branch has no environment yet.
Fix: Run
piceli env up BRANCHfirst.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:pipelineor setPICELI_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 --jsonlists 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
--kubeconfigand--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 correctapi=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--promptfor a token), thenpiceli gitops enableif 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 initagain: 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:ATTRagain, 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 initagainst that cluster (it installsRegistry.in_cluster), checkpiceli cluster status, thenpiceli 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--serverofpiceli 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
--promptand 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), thenpiceli 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 hostsandpiceli builder statusto 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,
dmesgfor machine checks), or build on hosts (Controller(builds=("hosts", ...))).piceli gitops release-host NODEends the quarantine;piceli gitops suspects --host NODElists 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,pythonorfilesbuild inpiceli.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.tomlin 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.tomlin 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?inpiceli.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.pyagain.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
followrule.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 rendershows 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
--nameand anX.Y.Z--version, choose--platformor--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 runwrote (and--output-dirwhen 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(...)(Staticfor 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 withapp.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=Falseand drop the host settings and added capabilities, or waive the rule for that object withapp.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 withapp.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)inpod_defaultsor the workload’ssecurity=), or waive the rule for that object withapp.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 withapp.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 aMemoryVolumewhere the process writes, or waive the rule for that object withapp.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 withapp.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
--namespaceand 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,
--kubeconfigand--context, then runpiceli support-bundleagain.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-statein the state directory) and updatebackend.jsonthere.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
--replaceif 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 --promptfor 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(orpiceli 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-envreads 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 600on the file named in the message (andchmod 700on 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 rmin 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 writesNAME.image.jsonin--artifacts-dir) and pointfrom_buildat 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=orurl=is the image you meant and thatsha256=is its checksum (sha256sum FILE), then plan and approve again.Retry-safe: no
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 SERVERagain, 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 installagain (plan, then approve).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 runpiceli infra registeragain (a longer--waitif 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
pythonto see the error, or setPICELI_DEBUG=1for 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--kubeconfigto 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 examplemachines.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(ordestroywithout--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 SERVERagain, 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 removekeys=, create the keys yourself (openstack ec2 credentials create) and store them withpiceli 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), runopenstack ec2 credentials create; store it withpiceli secrets s3 NAME --prompt; then declareNixCache(bucket=..., write_credentials=WRITE, read_credentials=READ).piceli host secretsinstalls the read pair on the host, andpiceli secrets statuslists 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 planandapply, which always encrypt the state withInfrastructure(state_key=); or removekeys=and store keys yourself withpiceli 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.jsonthere), 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 intofu_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 setPICELI_AGEto 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 pointPICELI_CREDENTIALS_DIRat 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
--forceto 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
--forceonce 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-keygenonPATH, orPICELI_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 (itsnextcommand), 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 --addcreates 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 anage-plugin-yubikeyidentity, 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 FILEwith a key the backup was made for (or plug in the hardware key with its plugin onPATH).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 PATHwithout--approveand 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, declareSsh(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 allowsudo -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 600the 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,
0600root, asdocs/nix_hosts.mdshows.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 --jsonandpiceli explainof 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-invalidanddocs/nix_hosts.mdlist 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 HOSTto 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, orpiceli dev nix build --publishof the gated host (the gate runs automatically), afterpiceli promote HOST --from ENVpinned 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
pruneinpiceli host status --jsonand 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-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 switchon 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.yamllists; pass--replaceto 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 theNixHost(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@HOSTruns 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
NixCachedeclares; 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
HostReportendpoint 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@HOSTworks without a prompt (its host key in~/.ssh/known_hosts, or pinned bypiceli 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 (itspiceli loginprofile),--kubeconfig FILE --context NAMEor--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 statusandgit worktree prunein the repository, 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 lastagain 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-initagain.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.pyto 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:ATTRorpath/to/file.py:ATTRnaming oneTrain.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 RUNandpiceli 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 … --queueif 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--pushfor--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 NAMEand 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 --jsonorpiceli 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-unknown¶
No such train. No train of that name has run with this state root, so it has no state directory.
Fix: Run
piceli trainsto 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 withpiceli trains NAME --follow.Retry-safe: yes