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 failing to fetch https://kubernetes-charts.storage.googleapis.com/ resulting in failing tests #2808

Closed
axsaucedo opened this issue Dec 29, 2020 · 9 comments · Fixed by #2809
Labels
bug triage Needs to be triaged and prioritised accordingly

Comments

@axsaucedo
Copy link
Contributor

Currently helm is failing when fetching https://kubernetes-charts.storage.googleapis.com/.

The logs appear as follows:

helm repo add stable https://kubernetes-charts.storage.googleapis.com/
Error: looks like "https://kubernetes-charts.storage.googleapis.com/" is not a valid chart repository or cannot be reached: failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden

This issue does seem to appear quite a lot online and seems it may not be necessary so the fix may just require removing that from the helm install (eg https://stackoverflow.com/questions/61954440/how-to-resolve-https-kubernetes-charts-storage-googleapis-com-is-not-a-valid)

@axsaucedo axsaucedo added bug triage Needs to be triaged and prioritised accordingly labels Dec 29, 2020
@ssainz
Copy link

ssainz commented Jan 6, 2021

Solved this problem by removing the registry config file and cached repository indexes.

type helm | grep registry-config and helm | repository-config to find the default location for them, and then delete them.

@doschkinow
Copy link

This workaround does not work for me. I am having the same issue, but with https://svc-catalog-charts.storage.googleapis.com:

(base) [opc@bastion ~]$ helm repo add svc-cat https://svc-catalog-charts.storage.googleapis.com
Error: looks like "https://svc-catalog-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: failed to fetch https://svc-catalog-charts.storage.googleapis.com/index.yaml : 403 Forbidden
(base) [opc@bastion ~]$ helm version
version.BuildInfo{Version:"v3.4.2", GitCommit:"23dd3af5e19a02d4f4baa5b2f242645a1a3af629", GitTreeState:"clean", GoVersion:"go1.14.13"}

This worked in the past, wondering what has changed...

@jlamb1
Copy link

jlamb1 commented Jan 11, 2021

@doschkinow google retired that URL and threw a 401 instead of a 301 for some reason. You want to use https://charts.helm.sh now. something like helm init --stable-repo-url https://charts.helm.sh/stable

@doschkinow
Copy link

@jlamb1 Thanks! But this does not help:

[opc@frankfurt ~]$ helm repo list
NAME URL
stable https://charts.helm.sh/stable
gitpod https://charts.gitpod.io
[opc@frankfurt ~]$ helm repo add svc-cat https://svc-catalog-charts.storage.googleapis.com
Error: looks like "https://svc-catalog-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: failed to fetch https://svc-catalog-charts.storage.googleapis.com/index.yaml : 403 Forbidden

I need the svc-cat charts from https://svc-catalog-charts.storage.googleapis.com, they are not in the stable helm repo.

@doschkinow
Copy link

resolved: a workaround for me was to get the service catalog charts not from google but directly from github:

helm repo add svc-cat https://kubernetes-sigs.github.io/service-catalog

Still would be interesting to know why https://svc-catalog-charts.storage.googleapis.com does not work ...

@Eugst
Copy link

Eugst commented Jan 12, 2021

helm repo add "stable" "https://charts.helm.sh/stable" --force-update
https://helm.sh/blog/new-location-stable-incubator-charts/

@nkovacic
Copy link

helm repo add "stable" "https://charts.helm.sh/stable" --force-update gives me an Error: unknown flag: --force-update on helm 3.x.

Directly using helm repo add "stable" "https://charts.helm.sh/stable" works.

oscaredel added a commit to blendle/kubecrt that referenced this issue Feb 24, 2021
@ozbillwang
Copy link

ozbillwang commented Mar 21, 2021

https://helm.sh/blog/new-location-stable-incubator-charts/

helm repo list
helm repo add "stable" "https://charts.helm.sh/stable"
helm repo add "common" https://charts.helm.sh/incubator
helm repo update

option --force-update is not accepted

@ye
Copy link

ye commented Jul 29, 2021

--force-update seems to be a Helm v3 version directive. If you are on helm v2, leaving that part out should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Needs to be triaged and prioritised accordingly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants