Skip to content
ohsudo, Home
Kubernetes

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.

Intermediate3 min readApplies to Helm 3 · Helm 4 · Kubernetes 1.28+

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 progress

Helm 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.

  1. helm upgradecancelled, timed out, Ctrl+C
  2. Release statepending-upgrade, left behind(breaks here)
  3. The next helm upgradeanother operation is in progress
Helm records each release's state in the cluster. An upgrade marked it pending and never finished, so Helm refuses to start another; usually nothing is really running.

TL;DR

Terminal window
helm history web -n shop
helm rollback web 4 -n shop

Use 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:

Terminal window
helm status web -n shop
helm history web -n shop
REVISION STATUS CHART APP VERSION DESCRIPTION
3 superseded web-1.4.0 1.4.0 Upgrade complete
4 deployed web-1.5.0 1.5.0 Upgrade complete
5 pending-upgrade web-1.6.0 1.6.0 Preparing upgrade

pending-upgrade, pending-install or pending-rollback on the latest revision is the stuck operation.

2. Roll back to the last good revision

Terminal window
helm rollback web 4 -n shop
helm history web -n shop

The 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:

Terminal window
helm uninstall web -n shop
helm install web ./chart -n shop

For 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:

Terminal window
kubectl get secrets -n shop -l owner=helm,name=web
kubectl delete secret sh.helm.release.v1.web.v5 -n shop

Delete 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: false

GitLab 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:

Terminal window
helm upgrade --install web ./chart -n shop --wait --timeout 10m --atomic

In 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.

Tools

Try it yourself

Articles

Related articles