Argo CD sync stuck on a hook: `waiting for completion of hook batch/Job/db-migrate`.
AdvancedTroubleshootingDeployment, Kubernetes and GitOps Failures
Answer
Likely causes → Hook Job failing or never completing; old Job not deleted so name conflicts.
Diagnose → kubectl logs job/db-migrate, kubectl describe job.
Fix → Fix the job, add argocd.argoproj.io/hook-delete-policy: BeforeHookCreation.
Prevent → Idempotent migrations and backoffLimit/activeDeadlineSeconds.
More on Deployment, Kubernetes and GitOps Failures
`kubectl rollout status` hangs: `Waiting for deployment "app" rollout to finish: 1 old replicas are pending termination...`AdvancedPods in `CrashLoopBackOff` right after deploy.Beginner`ImagePullBackOff` with `manifest for registry/app:1.4.2 not found`.BeginnerHelm: `Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress`.AdvancedHelm: `Error: rendered manifests contain a resource that already exists. Unable to continue with install`.IntermediateArgo CD app stuck `Progressing` forever.Intermediate