helm: Error: open .helm\repository\cache\local-index.yaml
Hi, when I am running helm dep up with file:// dependency I get:
Repository from local path: file://components/nats
Hang tight while we grab the latest from your chart repositories...
Writing to .helm\repository\cache\.helm\repository\cache\stable-index.yaml
...Unable to get an update from the "stable" chart repository (https://kubernetes-charts.storage.googleapis.com):
open .helm\repository\cache\.helm\repository\cache\stable-index.yaml: The system cannot find the path specified.
...Unable to get an update from the "local" chart repository (http://127.0.0.1:8879/charts):
Get http://127.0.0.1:8879/charts/index.yaml: dial tcp 127.0.0.1:8879: connectex: No connection could be made because the target machine actively refused it.
Update Complete. ⎈Happy Helming!⎈
Error: open .helm\repository\cache\local-index.yaml: The system cannot find the path specified.
looking at whathelm inithas created I can see that local-index.yaml exist in cache but it’s not a file but symlink leading to <path>\.helm\repository\cache\.helm\repository\cache\local-index.yaml that doesn’t exists. As a workaround I can delete local repository from repositories.yaml and then helm dep up works without errors.
Environment: Win 10, helm:2.2.1
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 21 (11 by maintainers)
Commits related to this issue
- fix(helm): home env not set on Windows When setting $HELM_HOME, only $HOME was considered. This variable is not always present on Windows. Closes #2071 — committed to pietromenna/helm by pietromenna 7 years ago
- fix(helm): home env not set on Windows When setting $HELM_HOME, only $HOME was considered. This variable is not always present on Windows. Closes #2071 — committed to pietromenna/helm by pietromenna 7 years ago
- fix(helm): Init not creating local-index symlink on Windows os.Symlink required additional permissions on Windows, and init is not currently identifying the failed creation. Related to #2071 — committed to pietromenna/helm by pietromenna 7 years ago
- fix(helm): Init not creating local-index symlink on Windows os.Symlink required additional permissions on Windows, and init is not currently identifying the failed creation. Related to #2071 — committed to pietromenna/helm by pietromenna 7 years ago
- fix(helm): Init not creating local-index symlink on Windows os.Symlink required additional permissions on Windows, and init is not currently identifying the failed creation. Related to #2071 — committed to pietromenna/helm by pietromenna 7 years ago
- fix(helm): Init not creating local-index symlink on Windows os.Symlink required additional permissions on Windows, and init is not currently identifying the failed creation. Related to #2071 — committed to pietromenna/helm by pietromenna 7 years ago
- fix(helm): Init not creating local-index symlink on Windows os.Symlink required additional permissions on Windows, and init is not currently identifying the failed creation. Related to #2071 — committed to pietromenna/helm by pietromenna 7 years ago
- fix(helm): Init not creating local-index symlink on Windows os.Symlink required additional permissions on Windows, and init is not currently identifying the failed creation. Related to #2071 — committed to pietromenna/helm by pietromenna 7 years ago
Does
helm servework?I was getting similar error when doing
helm update:I changed
\.helm\repository\cache\stable-index.yamlinC:\.helm\rpositoriestoC:\.helm\repository\cache\stable-index.yamland update worked.helm servedidn’t complain either I addedC:in front or notI think I’m able to reproduce this on ubuntu with Helm 2.9.0.
I’m going to mark this as a bug and flag it as Helm Wanted.