Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm dep update $(CHART) cache crash for repos that weren't added prior to dep update #11001

Closed
lucasmellos opened this issue May 27, 2022 · 8 comments

Comments

@lucasmellos
Copy link

lucasmellos commented May 27, 2022

Output of helm version:
version.BuildInfo{Version:"v3.4.1", GitCommit:"c4e74854886b2efe3321e185578e6db9be0a6e29", GitTreeState:"clean", GoVersion:"go1.14.11"}

How to reproduce:

$ helm dependency update ./external-dns
Error: no cached repository for helm-manager-54d2620bbb6f1bb3f35d4c7f945bfa25077949488dcbb0a4d01c90f2c35baa59 found. (try 'helm repo update'): open /github/home/.cache/helm/repository/helm-manager-54d2620bbb6f1bb3f35d4c7f945bfa25077949488dcbb0a4d01c90f2c35baa59-index.yaml: no such file or directory

When using CI tool dep repos that weren't added prior to dep update command are crashing the command.

@hickeyma
Copy link
Contributor

@lucasmellos This issue might be caused by a deprecated repository in the dependency list of the chart.

For example, when I have the following dependency in my chart I get the error:

dependencies:
- name: mysql
  version: "^1.6.2"
  repository: "https://kubernetes-charts.storage.googleapis.com/"

However when I update to an active repository as follows, it works as expected:

dependencies:
- name: mysql
  version: "^8.0.29"
  repository: "https://charts.bitnami.com/bitnami/"

The https://kubernetes-charts.storage.googleapis.com/ repository is no longer active as charts are now hosted by chart maintainers as described in the deprecation notice.

@lucasmellos
Copy link
Author

That's not the case @hickeyma.

dependencies:
- name: external-secrets-provider
  version: "0.3.2"
  repository: "https://lucasmellos.github.io/helm-charts"
- name: external-dns
  version: "6.5.3"
  repository: "https://charts.bitnami.com/bitnami"

lock file

dependencies:
- name: external-secrets-provider
  repository: https://lucasmellos.github.io/helm-charts
  version: 0.3.2
- name: external-dns
  repository: https://charts.bitnami.com/bitnami
  version: 6.5.3
digest: sha256:53b81e2255522ee43ccf05a6c3a28816f8c79e6c0ba44210bf1441cb64fd93ac
generated: "2022-06-08T16:45:29.91742-03:00"

Follow log error

Run helm dependency update ./external-dns --skip-refresh
  helm dependency update ./external-dns --skip-refresh
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
Error: no cached repository for helm-manager-53a3c840affa47cb7d666d5e9b5494c9a6[2](https://github.com/signalwire/charts/runs/6800790619?check_suite_focus=true#step:5:2)5a[3](https://github.com/signalwire/charts/runs/6800790619?check_suite_focus=true#step:5:3)e572f12aff9d78d671073[4](https://github.com/signalwire/charts/runs/6800790619?check_suite_focus=true#step:5:5)4d6a found. (try 'helm repo update'): open /home/runner/.cache/helm/repository/helm-manager-[5](https://github.com/signalwire/charts/runs/6800790619?check_suite_focus=true#step:5:6)3a3c840affa47cb7d666d5e9b5494c9a625a3e572f12aff9d78d67107344d6a-index.yaml: no such file or directory
Error: Process completed with exit code 1.

When I run without passing --skip-refresh flag it works

@github-actions
Copy link

github-actions bot commented Sep 7, 2022

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Sep 7, 2022
@vovtz
Copy link
Contributor

vovtz commented Sep 21, 2022

Sounds a lot like the issue I filed just a moment ago:

#11369

@github-actions github-actions bot removed the Stale label Sep 22, 2022
@github-actions
Copy link

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Dec 22, 2022
@joejulian
Copy link
Contributor

closing as duplicate of #11369

@antoinedeschenes
Copy link
Contributor

Still experiencing the issue with v3.14.3 despite #11369 being resolved.

@idogada-akamai
Copy link

I am also having the same issue

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

No branches or pull requests

6 participants