Repository navigation
Closed
Labels
bugCategorizes issue or PR as related to a bug.
Description
Repro
Create a simple Chart.yaml:
name: upgrade-repro
version: 0.1.0With a single K8S resource in the templates/ dir:
kind: ConfigMap
apiVersion: v1
metadata:
name: cm1
data:
example.property.1: helloInstall the chart:
helm install .
exasperated-op
Last Deployed: Tue Sep 13 12:43:23 2016
Namespace: default
Status: DEPLOYED
Resources:
==> v1/ConfigMap
NAME DATA AGE
cm1 1 0sVerify the release exists:
helm status exasperated-op
Last Deployed: Tue Sep 13 12:43:23 2016
Namespace: default
Status: DEPLOYED
Resources:
==> v1/ConfigMap
NAME DATA AGE
cm1 1 1mNow add a 2nd K8S resource in templates/ dir:
kind: ConfigMap
apiVersion: v1
metadata:
name: cm2
data:
example.property.2: helloUpgrade the chart:
helm upgrade exasperated-op .
Error: UPGRADE FAILED: Looks like there are no changes for cm1That's weird. Bump the version in Chart.yaml:
name: upgrade-repro
version: 0.2.0Try upgrade again:
helm upgrade exasperated-op .
Error: UPGRADE FAILED: No resource with the name cm2 found.Expected
helm upgrade should create the cm2 resource instead of erroring that it doesn't exist.
Edit: to be clear: helm is creating the cm2 ConfigMap, but helm fails regardless.
Current state after performing steps
helm status exasperated-op
Last Deployed: Tue Sep 13 12:43:23 2016
Namespace: default
Status: DEPLOYED
Resources:
==> v1/ConfigMap
NAME DATA AGE
cm1 1 6m
kubectl get configmap --namespace default
NAME DATA AGE
cm1 1 6m
cm2 1 4mReacted by Chris Duncan, Rober Morales-Chaparro, Jan Guth, Vadym Mudryi, Evan Vetere, Kamil Gregorczyk, Yonatan Bitton, Luis Davim, Jessica Grebenschikov, Artur and 72 more
Reacted by Hong, Zhomart M, Sébastien Gandon, Rakshit Menpara, peay, Sergei Korolev, Marco Schmidlin, Adrian Silva, Sebastian Alvarado, cosmopetrich and 31 more
Reacted by Matteo Dell'Aquila
Activity
elementalvoid commentedon Sep 26, 2016
I'm running into a similar issue where I have a chart with bundled dependencies. If I add a new dependency and run a
helm upgradethe result is the same as described. The resources are properly created however helm returns an error.So, if this is installed:
helm install -n my-releaseAnd then a new chart is added as a dependency:
When the release is upgraded with:
helm upgrade my-release my-thinghelm produces the following error:Error: UPGRADE FAILED: No resource with the name new-dependency found.michelleN commentedon Oct 17, 2016
@devth I'm not able to reproduce this issue on master. Are you still seeing this problem? What version of helm/tiller are you running?
Thanks!
michelleN commentedon Oct 17, 2016
@elementalvoid I was also unable to reproduce the new dependency error on master. Are you still seeing this problem? What version of helm/tiller are you running?
Thank you.
elementalvoid commentedon Oct 17, 2016
At the time I was on alpha 4. Using alpha 5 and @devth's example I was also unable to reproduce the issue.
michelleN commentedon Oct 19, 2016
Alright. I'll close this for now. Feel free to file an issue if you see either of these problems again.
Thanks again.
devth commentedon Oct 19, 2016
@michelleN thanks! Sorry I haven't had time this week to attempt a repro on master. Looking forward to upgrading soon!
Emmenemoi commentedon Jan 10, 2018
Same for me when moving a hostPath Deployment/Volume spec to PVC.
Bug seems to be when an upgrade Manifest depends on a new one ("missing" in the old one?)
version: 2.7.2
mmerrill3 commentedon Jan 18, 2018
Strange, I am seeing the same behavior trying to upgrade a chart in version 2.7.2 with a new role. Tiller complains that it can't find the role and fails the deployments, even though it really created the role.
mmerrill3 commentedon Jan 18, 2018
My situation was that I had a new resource, and I deployed the new version of the helm chart with the new resource. That deployment failed b/c I fat fingered some yaml. Well, the new objects were created in kubernetes. I fixed the yaml, and ran the upgrade on my chart again, and voila, the error message that the resource is not found appears. I had to go into kubernetes and remove the new resources (in my case a role and rolebinding) that were created by the failed deployment. After that, the helm check to see if the current object exists fails (https://github.com/kubernetes/helm/blob/7432bdd716c4bc34ad95a85a761c7cee50a74ca3/pkg/kube/client.go#L257) will not succeed, and the resources are created again. Seems like a bug, where maybe new resources for a failed chart should be accounted for?
Zhomart commentedon Feb 1, 2018
Getting similar error while upgrading:
Configmap is created
My configmap:
benkeil commentedon Feb 7, 2018
We have the same issue.
Zhomart commentedon Feb 7, 2018
I deleted the whole release and then installed again. Currently it seems to be working.
$ helm del --purge bunny92 remaining items
selslack commentedon Mar 15, 2019
@bacongobbler @michelleN
Is there anything what makes it hard to improve error message for this issue?
I believe error message should state that "there is a conflict because resource wasn't created by helm and manual intervention is required" and not "not found". Only this small change to the error will improve user experience by a good margin.
michelleN commentedon Mar 15, 2019
@selslack I would very much in favor of improving the error message 👍
selslack commentedon Mar 18, 2019
@michelleN I've prepared a PR to change the error text: #5460.
zacharyw commentedon Apr 2, 2019
I'm experiencing this issue and I'm in a situation where I'm not sure how to resolve it.
I tried all the steps listed by @reneklacan here: #1193 (comment)
Unfortunately that didn't work. The only thing that resolves the issue is to delete the resource generating the error message, then
helm upgradeagain, which will be successful.However, the next helm upgrade will fail with the same error, and I have to delete the resource again and reupgrade... this isn't sustainable or good.
I have two environments I use helm to deploy to as part of our CI process: a QA and a production environment.
The QA environment had the same issue so I used
helm delete --purge, and thenhelm upgrade- that resolved the issue permanently.However I can't do this for the production environment - I can't just wipe it out and reupgrade, so currently I'm stuck deleting the resource before each deploy. I'm just lucky it's not an import resource.
reneklacan commentedon Apr 2, 2019
@zacharyw what error are you facing at the moment?
No resource with the name ...or"fetlife-web" has no deployed releases?Can you share any additional info that would help with debugging this?
Maybe output of
kubectl -n kube-system describe cm -l NAME=YOUR_RELEASE_NAME | grep -A1 STATUS=(replaceYOUR_RELEASE_NAME)Feel free to send me an email with more info if you don't want to spam this issue with potentially unrelated data (rene (at) klacan (dot) sk).
bacongobbler commentedon Apr 2, 2019
Please see #1193 (comment) for a possible diagnosis and workaround, @zacharyw.
zacharyw commentedon Apr 2, 2019
@reneklacan It's the
no resource with the name ...error. In our case we added an ingress, it seemingly worked, but then subsequent upgrades started failing with this error... even though the ingress already existed.The status of my most recent release (after deleting the offending ingress and allow helm upgrade to recreate it) is
DEPLOYED:However, if I were to try to upgrade again, it would fail.
@bacongobbler Unless I'm misunderstanding I think I already am doing the workaround in that comment: I delete the resource and let it get recreated... the issue is I have to do this every time.
konrad-garus commentedon Apr 3, 2019
@reneklacan in #1193 (comment) saved my life.
It's a disappointment that Helm fails this way. Deleting things in pretty much any environment is far from ideal.
bfalese-navent commentedon Apr 3, 2019
It would be great if helm updated it's own database when this kind of error appears, and then retry.
bacongobbler commentedon Apr 5, 2019
I believe that with the
--cleanup-on-failflag enabled, this error case should go away. Closing as resolved via #4871 and #5143.bacongobbler commentedon Apr 5, 2019
If there are further issues arising without those flags, please re-open a new issue. Thanks!
dimmel82 commentedon Jun 7, 2019
The issue is closed, by I thought to add a comment about how to deal with the issue without having to delete the helm release or the running deployments.
So, I reproduced the issue with the following steps:
test-chart-failurewith a service template.Service in version "v1" cannot be handled as a Service: v1.Service.Spec: v1.ServiceSpec.Ports: []v1.ServicePort: v1.ServicePort.Port: readUint32: unexpected character: ...I was able to upgrade after correcting the port to a number, without running
helm delete, by applying the suggestion at http://centosquestions.com/helm-how-to-delete-bad-deployment:helm history test-chart-failurekubectl delete cm -n kube-system test-chart-failure.v2helm upgradewith the corrected chartfeat: Add go-getter support to load base helmfiles (helm#1998)
pythonwood commentedon Apr 7, 2026
helm version
version.BuildInfo{Version:"v4.1.1", GitCommit:"5caf0044d4ef3d62a955440272999e139aafbbed", GitTreeState:"clean", GoVersion:"go1.25.7", KubeClientVersion:"v1.35"}
still has problem
14 failed pyroscope-1.18.1 1.18.0 Rollback "pyroscope" failed: no Role with the name "pyroscope-discovery" found