Failed to install Jenkins Operator using Helm

Hello Everyone, I’m trying to install Jenkins-operator on k3s node using Helm and it failed with below message

Error: failed to download "jenkins/jenkins-operator" (hint: running `helm repo update` may help)

After repo update I try to install it once again with --debug, and this is the result.

install.go:173: [debug] Original chart version: ""
Error: failed to fetch https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart/jenkins-operator/jenkins-operator/jenkins-operator-0.5.3.tgz : 404 Not Found
helm.go:88: [debug] failed to fetch https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart/jenkins-operator/jenkins-operator/jenkins-operator-0.5.3.tgz : 404 Not Found
helm.sh/helm/v3/pkg/getter.(*HTTPGetter).get
	helm.sh/helm/v3/pkg/getter/httpgetter.go:90
helm.sh/helm/v3/pkg/getter.(*HTTPGetter).Get
	helm.sh/helm/v3/pkg/getter/httpgetter.go:42
helm.sh/helm/v3/pkg/downloader.(*ChartDownloader).DownloadTo
	helm.sh/helm/v3/pkg/downloader/chart_downloader.go:99
helm.sh/helm/v3/pkg/action.(*ChartPathOptions).LocateChart
	helm.sh/helm/v3/pkg/action/install.go:704
main.runInstall
	helm.sh/helm/v3/cmd/helm/install.go:185
main.newInstallCmd.func2
	helm.sh/helm/v3/cmd/helm/install.go:120
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/cobra@v1.1.3/command.go:852
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/cobra@v1.1.3/command.go:960
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/cobra@v1.1.3/command.go:897
main.main
	helm.sh/helm/v3/cmd/helm/helm.go:87
runtime.main
	runtime/proc.go:225
runtime.goexit
	runtime/asm_amd64.s:1371

helm version : v3.6.3+gd506314

If you have any workaround on how I can resolve this please share.
Thanks

1 Like

I didn’t know helm would download raw files like that.
The file does exist:
https://github.com/jenkinsci/kubernetes-operator/raw/master/chart/jenkins-operator/jenkins-operator-0.5.3.tgz
which would make the url be
https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart/jenkins-operator/jenkins-operator-0.5.3.tgz

(took me a while to find the diff of an extra /jenkins-operator)

I recommand forking and submitting a pr to fix https://github.com/jenkinsci/kubernetes-operator/blob/058ea61d707f0e5864ebb4333c9ced6bfd06d188/chart/index.yaml#L12

I don’t know how you’ve installed your chart repo, so maybe you can update the repo locally, but doing a PR helps not just you but everyone.

2 Likes

Thank You so much @halkeye sure will do.

Thank you very much @zyzyx03 for reporting this and @halkeye for the fix idea. I’ve issued a PR that fixes this and also the Makefile target used for releasing the Helm chart, so that this issue doesn’t come up in the future.

1 Like

Hi, @zyzyx03 thanks for reporting this! The fix is merged in.

I just wanted to let you know, that you can always open a bug issue on our GitHub page: Sign in to GitHub · GitHub

Take care!

2 Likes