`Error: INSTALLATION FAILED: failed post-install: job failed: BackoffLimitExceeded`
BeginnerTroubleshootingHooks, Tests, GitOps & Secrets
Answer
Likely causes → The hook Job's container exited non-zero more times than backoffLimit: migration SQL error, DB not reachable, wrong credentials, missing ConfigMap.
Diagnose →
kubectl get jobs -n shop
kubectl logs -n shop job/shop-migrate --all-containers
kubectl describe job shop-migrate -n shop
Fix → Fix the script or connectivity, then rerun the upgrade (the Job is recreated thanks to before-hook-creation).
Prevent → Keep failed hook Jobs (no hook-failed delete policy), init container waiting for the DB, idempotent migrations.
More on Hooks, Tests, GitOps & Secrets
`Error: UPGRADE FAILED: pre-upgrade hooks failed: timed out waiting for the condition`Intermediate`Error: UPGRADE FAILED: pre-upgrade hooks failed: warning: Hook pre-upgrade shop/templates/migrate-job.yaml failed: jobs.batch "shop-migrate" already exists`BeginnerThe migration hook fails with `psql: error: connection to server at "shop-postgres" (10.96.12.4), port 5432 failed: Connection refused` on first install.IntermediateOn upgrade, the migration Job runs the **old** SQL even though the chart contains new migration files.Advanced`helm test` fails with `Error: unable to get pod logs for shop-test-api: pods "shop-test-api" not found`.Intermediate`helm test` hangs until timeout.Beginner