Troubleshooting
When an installation, sync or upgrade fails, start here. This page helps you find the stage that failed and then the fix for it.
Select the installation
First point your shell at the installation that failed. Select its cluster
(Select the cluster) and set
nro_namespace to its namespace. For a shared installation, that is your state file’s
namespace. For the local stack, it is remediation-orchestrator unless your state
overrides namespace. For example, for the local kind stack:
Then collect its state. With remediation-orchestrator.workload.kind: StatefulSet, use
statefulset/remediation-orchestrator in the last command:
Use the tables below to find the stage that failed, then the matching symptom.
Preparation and rendering
Images, storage and gates
A presync gate is a check Helmfile runs before installing or upgrading a release. Its failure stops that release before the change is applied.
Bootstrap, application and login
Bootstrap runs the Remediation Orchestrator (NRO) migration Job and the bootstrap Temporal Job before Helmfile installs or upgrades NRO. The Job and container logs tell you whether a dependency is unreachable or a migration or Temporal task failed.
By default, the migration Job runs two containers in order. The init container
wait-postgres must finish before the main container migrate runs. The Temporal Job has
a single container, temporal, which retries its own commands. To investigate a
bootstrap failure, list the pods, then describe the failing one:
The description lists the pod’s containers and whether each started. Request the init container’s logs first, and the main container’s logs only if it started. If readiness was disabled, the pod has no init container. For a migration pod:
For a Temporal pod:
After fixing the cause, rerun the Jobs with a new bootstrap.runToken
(Rerun the bootstrap Jobs).
A failed Job stays in the namespace after a successful retry, so it can mislead a later diagnosis. Once its replacement has completed, delete the failed Job by name. This also deletes its pods and their logs:
Validation messages
Most messages name the key and the fix, so the tables below list only the ones that need
more context. A Helmfile check prints its message after error calling fail:. The NRO
chart prints its message after Helm’s execution error at (...).
Chart messages use the chart’s own key paths, so translate a path into its state key
before you fix it. auth, config and temporal.auth use the same paths in state.
Chart-only settings such as networkPolicy and ingress belong under the
remediation-orchestrator passthrough. For settings the stack wires, such as image or
database.existingSecret, use the owning top-level state key instead.
State keys and
Tune the charts through passthroughs
describe where each key belongs.
Helmfile state checks
Helmfile’s own checks print these. The first message comes from the core state schema, the second from the schema run, and the others from checks in the Helmfile templates.
NRO chart checks
Helm prints these when it validates and renders the NRO chart.
CNPG presync gate
The CNPG presync gate prints these before each database release.
PostgreSQL presync gate
The PostgreSQL presync gate prints these before a release that uses a managed database.
Bootstrap Jobs
These messages come from the migration Job’s init container, wait-postgres:
These messages come from the bootstrap Temporal Job:
Read a state schema error
In state: at '<path>', / is the top level, and every finding prints, sorted. The
reason tells you what to fix:
additional properties '<key>' not allowed; the keys are ...: a misspelled key, or an NRO chart value such asingresswritten at the top level instead of underremediation-orchestrator.got string, want booleanorwant integer: a quoted value. Remove the quotes.got string, want object: the key needs nested keys, not a single value.
Read a chart schema error
In the NRO chart’s schema error, /auth/... and /config/... are the state’s auth and
config. Other values come from either the stack’s state mappings or the
remediation-orchestrator passthrough. For protected paths, use the owning state key.
For example, at '' with additional properties 'ingres' not allowed is a misspelled
remediation-orchestrator.ingress. A misspelled auth or config key also fails here,
not on build. Helmfile prints Helm’s path and arguments above the error.
Next steps
- After a correction, rerun the render and sync: Render, deploy and verify or Create the cluster and install.
- Rerun bootstrap after an external fix: Rerun the bootstrap Jobs.
- Roll back to an older image: Roll back the NRO image.
- Known limits of the stack: Design.