Helm "another operation (install/upgrade/rollback) is in progress": unstick the release
Fix Helm "another operation (install/upgrade/rollback) is in progress": find the stuck release, roll back to a good revision, and prevent it.
by OhSudo ··
Checked on real software: Helm, Kubernetes (kind) · November 2026How we check
Part of a learning path:Kubernetes: debugging pods
Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progressHelm records each release’s state in the cluster. A previous helm upgrade started, marked the release as pending, and never finished: the CI job was cancelled, it timed out, or someone pressed Ctrl+C. Helm now thinks that operation is still running, and refuses to start another.
Usually nothing is actually running. The release is just stuck in a pending state, and a rollback clears it.
- helm upgradecancelled, timed out, Ctrl+Cstopped halfway(fails)
- Release statepending-upgrade, left behind(breaks here)blocks
- The next helm upgradeanother operation is in progress
TL;DR
helm history web -n shophelm rollback web 4 -n shopUse the last revision whose status is deployed or superseded. Then run your upgrade again.
1. Check that nothing is really running
First make sure no other pipeline or person is upgrading this release right now. Two deploys at once is exactly what this lock is for. Then look at the release:
helm status web -n shophelm history web -n shopREVISION STATUS CHART APP VERSION DESCRIPTION3 superseded web-1.4.0 1.4.0 Upgrade complete4 deployed web-1.5.0 1.5.0 Upgrade complete5 pending-upgrade web-1.6.0 1.6.0 Preparing upgradepending-upgrade, pending-install or pending-rollback on the latest revision is the stuck operation.
2. Roll back to the last good revision
helm rollback web 4 -n shophelm history web -n shopThe rollback creates a new revision, based on 4, and the release is deployed again. Then retry the upgrade, once you know why it failed: often a pod that never became ready, while --wait waited until the timeout.
3. Stuck on the first install
If the only revision is pending-install, there’s nothing to roll back to. Remove the release, which also deletes the resources it created, and install again:
helm uninstall web -n shophelm install web ./chart -n shopFor a chart that holds data, such as a database with persistent volumes, check what helm uninstall would delete first. Persistent volume claims made by StatefulSets usually stay, while those defined directly in the chart go.
4. The last resort: remove the stuck record
Helm stores each revision as a Secret in the release’s namespace. When a rollback fails too, you can delete only the stuck one, which leaves the previous revision as the current one:
kubectl get secrets -n shop -l owner=helm,name=webkubectl delete secret sh.helm.release.v1.web.v5 -n shopDelete only the pending revision’s Secret, here v5, after checking it in helm history. Removing others erases the release’s history.
5. Stop it happening in CI
Most of these come from pipelines. Three habits prevent them:
Let only one deploy run at a time. In GitHub Actions:
concurrency: group: deploy-production cancel-in-progress: falseGitLab CI has resource_group: production for the same purpose. The CI/CD Pipeline Generator writes deploy jobs for both, and you can add these lines to them.
Roll back automatically when an upgrade fails, so it never stays pending:
helm upgrade --install web ./chart -n shop --wait --timeout 10m --atomicIn Helm 4, --atomic is called --rollback-on-failure.
Give the job more time than Helm. If the CI job’s own timeout is shorter than Helm’s --timeout, the job gets killed in the middle, which is exactly how releases get stuck.
Warning
Don’t delete Helm’s Secrets in bulk, or uninstall and reinstall a production release, to get past this. A rollback keeps everything running, and takes seconds. And check that no other deploy is really running before you clear the lock, or two deploys will fight over the same resources.
Shell, we have a problem!
Similar, but different: cannot reuse a name that is still in use (re-use in Helm 3) means a release with that name exists, so use helm upgrade --install. UPGRADE FAILED: timed out waiting for the condition means the pods didn’t become ready: see CrashLoopBackOff and ImagePullBackOff. Forbidden means the deploy’s account lacks rights. For the commands around this, see the kubectl Cheat Sheet. An uninstall that hangs on resources that won’t go away: see stuck in Terminating. An object that already exists outside the release is invalid ownership metadata.
Found this useful? Share it.
Found a mistake? Let us know at contact@ohsudo.com.