Skip to content

UPGRADE FAILED: No resource with the name "" found #1193

Closed

Description

@devth

Repro

Create a simple Chart.yaml:

name: upgrade-repro
version: 0.1.0

With a single K8S resource in the templates/ dir:

kind: ConfigMap
apiVersion: v1
metadata:
  name: cm1
data:
  example.property.1: hello

Install 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         0s

Verify 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         1m

Now add a 2nd K8S resource in templates/ dir:

kind: ConfigMap
apiVersion: v1
metadata:
  name: cm2
data:
  example.property.2: hello

Upgrade the chart:

helm upgrade exasperated-op .
Error: UPGRADE FAILED: Looks like there are no changes for cm1

That's weird. Bump the version in Chart.yaml:

name: upgrade-repro
version: 0.2.0

Try 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         4m

Activity

  1. elementalvoid commented on Sep 26, 2016

    @elementalvoid

    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 upgrade the 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-release

    my-thing/
      Chart.yml
      charts/
        depended-upon-thing/
    

    And then a new chart is added as a dependency:

    my-thing/
      Chart.yml
      charts/
        depended-upon-thing/
        new-dependency/
    

    When the release is upgraded with: helm upgrade my-release my-thing helm produces the following error:

    Error: UPGRADE FAILED: No resource with the name new-dependency found.

  2. added this to the 2.0.0-Beta.1 milestone on Oct 7, 2016
  3. self-assigned this
    on Oct 14, 2016
  4. michelleN commented on Oct 17, 2016

    @michelleN
    Member

    @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!

  5. michelleN commented on Oct 17, 2016

    @michelleN
    Member

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

  6. elementalvoid commented on Oct 17, 2016

    @elementalvoid

    At the time I was on alpha 4. Using alpha 5 and @devth's example I was also unable to reproduce the issue.

  7. michelleN commented on Oct 19, 2016

    @michelleN
    Member

    Alright. I'll close this for now. Feel free to file an issue if you see either of these problems again.

    Thanks again.

  8. devth commented on Oct 19, 2016

    @devth
    ContributorAuthor

    @michelleN thanks! Sorry I haven't had time this week to attempt a repro on master. Looking forward to upgrading soon!

  9. Emmenemoi commented on Jan 10, 2018

    @Emmenemoi

    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

  10. mmerrill3 commented on Jan 18, 2018

    @mmerrill3

    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.

  11. mmerrill3 commented on Jan 18, 2018

    @mmerrill3

    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?

  12. Zhomart commented on Feb 1, 2018

    @Zhomart

    Getting similar error while upgrading:

    $ helm upgrade --install bunny ./app --namespace=staging --reuse-values --debug
    [debug] Created tunnel using local port: '53859'
    
    [debug] SERVER: "127.0.0.1:53859"
    
    Error: UPGRADE FAILED: no ConfigMap with the name "bunny-proxy-config" found
    

    Configmap is created

    $ k get configmap
    NAME                 DATA      AGE
    bunny-proxy-config   1         7m
    

    My configmap:

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: {{ template "proxy.fullname" . }}-config
      labels:
        app: {{ template "proxy.name" . }}
        chart: {{ template "proxy.chart" . }}
        release: {{ .Release.Name }}
        heritage: {{ .Release.Service }}
    data:
      asd: qwe
  13. benkeil commented on Feb 7, 2018

    @benkeil

    We have the same issue.

  14. Zhomart commented on Feb 7, 2018

    @Zhomart

    I deleted the whole release and then installed again. Currently it seems to be working.

    $ helm del --purge bunny

  15. 92 remaining items

  16. selslack commented on Mar 15, 2019

    @selslack

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

  17. michelleN commented on Mar 15, 2019

    @michelleN
    Member

    @selslack I would very much in favor of improving the error message 👍

  18. selslack commented on Mar 18, 2019

    @selslack

    @michelleN I've prepared a PR to change the error text: #5460.

  19. zacharyw commented on Apr 2, 2019

    @zacharyw

    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 upgrade again, 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 then helm 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.

  20. reneklacan commented on Apr 2, 2019

    @reneklacan

    @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= (replace YOUR_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).

  21. bacongobbler commented on Apr 2, 2019

    @bacongobbler
    Member

    Please see #1193 (comment) for a possible diagnosis and workaround, @zacharyw.

  22. zacharyw commented on Apr 2, 2019

    @zacharyw

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

    STATUS=DEPLOYED
    VERSION=197
    

    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.

  23. konrad-garus commented on Apr 3, 2019

    @konrad-garus

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

  24. bfalese-navent commented on Apr 3, 2019

    @bfalese-navent

    It would be great if helm updated it's own database when this kind of error appears, and then retry.

  25. bacongobbler commented on Apr 5, 2019

    @bacongobbler
    Member

    I believe that with the --cleanup-on-fail flag enabled, this error case should go away. Closing as resolved via #4871 and #5143.

  26. bacongobbler commented on Apr 5, 2019

    @bacongobbler
    Member

    If there are further issues arising without those flags, please re-open a new issue. Thanks!

  27. dimmel82 commented on Jun 7, 2019

    @dimmel82

    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:

    1. Install chart test-chart-failure with a service template.
    2. Add a subchart with a service template that has a string (e.g. "test") in the service's port
    3. Upgrade the chart. It will fail with error 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:

    1. Found the failed revision with helm history test-chart-failure
    2. Deleted the config map of the specific revision with kubectl delete cm -n kube-system test-chart-failure.v2
    3. Executed helm upgrade with the corrected chart
  28. added a commit that references this issue on Nov 17, 2023
    1986cb3
  29. pythonwood commented on Apr 7, 2026

    @pythonwood

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions