Interview Prep/Helm/Install & Upgrade Failures

`Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress`

BeginnerTroubleshootingInstall & Upgrade Failures
Answer

Likely causes → The latest revision is stuck in pending-install, pending-upgrade or pending-rollback because a previous Helm process was killed (cancelled CI job, runner died, Ctrl-C), or another deploy really is running.

Diagnose →

helm history shop -n shop --max 5
helm list -n shop --pending
kubectl get secret -n shop -l owner=helm,name=shop -L status,version

Fix → Make sure nothing else is running. Then helm rollback shop <last-deployed-rev> -n shop. If that is refused, delete only the stuck revision Secret (kubectl delete secret sh.helm.release.v1.shop.v<N> -n shop) and redeploy. For a stuck pending-install with no prior revision, helm uninstall shop -n shop.

Prevent → CI concurrency groups per environment, Helm --timeout shorter than the CI job timeout, and never cancel deploy jobs mid-run.

All Helm questions Roadmap: Helm

More on Install & Upgrade Failures