Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

helm init failed is not a valid chart repository or cannot be reached: Failed to fetch 403 Forbidden

Tags:

is not a valid chart repository or cannot be reached: Failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden

helm init start failing today, we are using helm version HELM_VERSION: v2.13.0 in our CI/CD.

Adding stable repo with URL: 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 

While it was working fine a day ago. Here are the logs that I received while running init command.

$ helm init --client-only Creating /root/.helm  Creating /root/.helm/repository  Creating /root/.helm/repository/cache  Creating /root/.helm/repository/local  Creating /root/.helm/plugins  Creating /root/.helm/starters  Creating /root/.helm/cache/archive  Creating /root/.helm/repository/repositories.yaml  Adding stable repo with URL: 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 

There are similar questions question but that seems different and also I am not behind a proxy like mentioned here.

like image 823
Adiii Avatar asked Dec 22 '20 10:12

Adiii


People also ask

What happened helm init?

The helm init command has been removed. It performed two primary functions. First, it installed Tiller. This is no longer needed.


2 Answers

Since November 13, 2020, the new location for the stable repository is https://charts.helm.sh/stable and the new location for the incubator repository is https://charts.helm.sh/incubator.

Try:

helm init --stable-repo-url=https://charts.helm.sh/stable --client-only  

or

$ helm repo add stable https://charts.helm.sh/stable $ helm repo update 
Name Old Location New Location
stable https://kubernetes-charts.storage.googleapis.com https://charts.helm.sh/stable
incubator https://kubernetes-charts-incubator.storage.googleapis.com https://charts.helm.sh/incubator
  • Ref
like image 113
Kamol Hasan Avatar answered Sep 20 '22 08:09

Kamol Hasan


This fixed it for me:

helm repo add "stable" "https://charts.helm.sh/stable" --force-update 
like image 22
Olivier C Avatar answered Sep 20 '22 08:09

Olivier C