Database migration job in the pipeline fails with `Lock wait timeout exceeded`.
AdvancedTroubleshootingDeployment, Kubernetes and GitOps Failures
Answer
Likely causes → Long-running transaction or app holding locks on the table; migration needs an exclusive lock.
Diagnose → SHOW PROCESSLIST / pg_stat_activity and pg_locks.
Fix → Run during low traffic, use online schema change tools, set lock_timeout and retry, split the migration.
Prevent → Review migrations for locking behaviour; use expand/contract.
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