kubernetes
build_error
ai_generated
true
错误:升级失败:另一个操作(安装/升级/回滚)正在进行中
Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress
ID: kubernetes/helm-upgrade-failed-dependency
82%修复率
88%置信度
1证据数
2024-01-15首次发现
根因分析
Helm 发布版本由于之前的安装、升级或回滚操作未完成(通常由于崩溃或超时)而处于待处理状态。
English
Helm releases have a pending operation due to a previous incomplete install, upgrade, or rollback, often from a crash or timeout.
官方文档
https://helm.sh/docs/helm/helm_upgrade/解决方案
-
Force unlock the release: 'helm rollback <release> <revision> --force' to rollback to a previous revision, which clears the pending state.
-
Manually delete the pending release secret: 'kubectl delete secret -n <namespace> sh.helm.release.v1.<release>.v<revision>' then retry the upgrade.
无效尝试
常见但无效的做法:
-
Run the same upgrade command again with --atomic flag
90% 失败
The pending lock isn't released by retrying; the operation still fails with the same error.
-
Delete the Helm release and reinstall
50% 失败
Deleting the release loses all release history and secrets; it's destructive and may cause data loss.