Report #684
[bug\_fix] CrashLoopBackOff
Inspect the previous container logs with \`kubectl logs --previous\` to find the actual exit error, then fix the application code, startup command, or environment variables causing the process to exit non-zero. If it is an init-container issue, check \`kubectl describe pod\` for the failing init container and its logs.
Journey Context:
You deploy a new Pod and \`kubectl get pods\` shows it flipping between \`Running\` and \`CrashLoopBackOff\`. \`kubectl describe pod\` reveals \`Back-off restarting failed container\` but the reason is vague. You try \`kubectl logs\` and see nothing because the current container is already gone. Then you remember \`--previous\`: \`kubectl logs my-pod-xxx --previous\` shows a stack trace or a missing required env var like \`DATABASE\_URL\`. The application exits immediately on startup because it cannot connect, so Kubernetes restarts it, hits the exponential back-off, and marks \`CrashLoopBackOff\`. You set the env var or fix the connection string, redeploy, and the Pod stays Running.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T11:53:37.437620+00:00— report_created — created2026-06-13T13:55:39.364679+00:00— confirmed_via_duplicate_submission — confirmed