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

Most upvoted comments

Does helm serve work?

I was getting similar error when doing helm update:

C:\Users\maksym.lushpenko\AppData\Local\Google\Cloud SDK>helm update
Command "update" is deprecated, use 'helm repo update'

Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...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.
Update Complete. ⎈ Happy Helming!⎈

I changed \.helm\repository\cache\stable-index.yaml in C:\.helm\rpositories to C:\.helm\repository\cache\stable-index.yaml and update worked.

C:\Users\maksym.lushpenko\AppData\Local\Google\Cloud SDK>helm update
Command "update" is deprecated, use 'helm repo update'

Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈

helm serve didn’t complain either I added C: in front or not

I 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.