kubernetes gcp

Helm 3 – Not a valid chart repository or cannot be reached: failed to fetch : 404 Not Found

This tutorial guides you on how to resolve error looks like “https://github.com/helm/charts/tree/master/stable” is not a valid chart repository or cannot be reached: failed to fetch https://github.com/helm/charts/tree/master/stable/index.yaml : 404 Not Found while running helm command.

Helm 3 – Not a valid chart repository or cannot be reached: failed to fetch : 404 Not Found

I wanted to install redis using helm version 3. When I ran the following helm install command I got the error as shown below.

$ helm install redis stable/redis

Error: failed to download "stable/redis" (hint: running `helm repo update` may help)

Then, I tried checking whether any stable chart repository was added.

$ helm repo list

Error: no repositories to show

Therefore, there are no repositories to show.

Hence, I tried adding a stable repo, but it failed with an error 404 Not Found as shown below.

$ helm repo add stable https://github.com/helm/charts/tree/master/stable
Error: looks like "https://github.com/helm/charts/tree/master/stable" is not a valid chart repository or cannot be reached: failed to fetch https://github.com/helm/charts/tree/master/stable/index.yaml : 404 Not Found

Solution: Add stable official helm repo (Update)

The stable helm repository was hosted on https://kubernetes-charts.storage.googleapis.com/, but now it is deprecated and you will get the following error which says this repo is not longer available.

$ helm repo add stable https://kubernetes-charts.storage.googleapis.com/
Error: repo "https://kubernetes-charts.storage.googleapis.com/" is no longer available; try "https://charts.helm.sh/stable" instead

Therefore, use the latest stable official repo as shown below. After adding stable official repo you should see the success response which says “stable” repo has been added.

$ helm repo add stable https://charts.helm.sh/stable
"stable" has been added to your repositories

Verify if stable official repo is added to your repositories.

$ helm repo list

NAME    URL
stable  https://charts.helm.sh/stable

That’s it a valid chart repository or stable official repository has been added successfully.

Hope it helped 🙂

You’ll also like:

References

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments