Skip to content

Error: open .helm\repository\cache\local-index.yaml #2071

Closed

Description

@Rurouni

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

Activity

  1. technosophos commented on Mar 7, 2017

    @technosophos
    Member

    Does helm serve work?

  2. bhaskarduvvuri commented on Mar 13, 2017

    @bhaskarduvvuri

    I am on Windows 7, I am facing the same error but while adding a local repo. So, I had to delete the symlink and copy index.yaml to repository\cache\local-index.yaml. After restarting helm serve, it seems to work.

  3. technosophos commented on Mar 15, 2017

    @technosophos
    Member

    I'm going to mark this as a bug and flag it as Helm Wanted.

  4. added
    help wanted
    and removed on Mar 15, 2017
  5. added this to the milestone on Mar 15, 2017
  6. mlushpenko commented on Jun 24, 2017

    @mlushpenko

    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

  7. self-assigned this
    on Sep 15, 2017
  8. pietromenna commented on Oct 10, 2017

    @pietromenna
    Contributor

    May I give it a try to this issue?

  9. removed their assignment
    on Oct 10, 2017
  10. bacongobbler commented on Oct 10, 2017

    @bacongobbler
    Member

    Sure. Not sure when I self-assigned this but give it a go :)

  11. removed
    help wanted
    on Oct 10, 2017
  12. thomastaylor312 commented on Oct 10, 2017

    @thomastaylor312
    Contributor

    Removing help wanted since @pietromenna is taking it on

  13. 18 remaining items

  14. fejta-bot commented on May 4, 2018

    @fejta-bot

    Rotten issues close after 30d of inactivity.
    Reopen the issue with /reopen.
    Mark the issue as fresh with /remove-lifecycle rotten.

    Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
    /close

  15. mattfarina commented on May 11, 2018

    @mattfarina
    Collaborator

    I think I'm able to reproduce this on ubuntu with Helm 2.9.0.

  16. warrenack commented on May 22, 2018

    @warrenack

    I am gettting this error as well
    Hang tight while we grab the latest from your chart repositories...
    ...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: connect: connection refused
    ...Successfully got an update from the "cassandra" chart repository
    ...Unable to get an update from the "stable" chart repository (https://kubernetes-charts.storage.googleapis.com):
    Get https://kubernetes-charts.storage.googleapis.com/index.yaml: dial tcp 74.125.199.128:443: i/o timeout
    Update Complete. ⎈Happy Helming!⎈
    helm 2.9.1 on ubuntu

  17. bacongobbler commented on May 28, 2018

    @bacongobbler
    Member

    @WAckerman that looks like a separate issue; likely there might've been some downtime on Google Cloud Storage or something. Does it work now?

    @mattfarina can you provide steps to reproduce this issue? I thought this was Windows-specific :)

  18. added
    bug
    and removed on Jun 5, 2018
  19. bacongobbler commented on Jun 8, 2018

    @bacongobbler
    Member
  20. mattfarina commented on Jul 9, 2018

    @mattfarina
    Collaborator

    @bacongobbler I cannot remember how I experienced that or fixed it.

  21. bacongobbler commented on Aug 1, 2018

    @bacongobbler
    Member

    ok, let's consider this closed this for now but re-open if it comes up again.

  22. freyayunfu commented on Aug 29, 2019

    @freyayunfu

    I'm experiencing the same issue here. Getting open /Users/yun/.helm/repository/cache/local-index.yaml: no such file or directory even when the file is there as I can find it.

  23. gnana03 commented on Sep 5, 2019

    @gnana03

    Even i am experiencing the same issue when i am trying to deploy ingress controller.
    Error : Release "ingress-kube-system" does not exist. Installing it now.
    Error: found in requirements.yaml, but missing in charts/ directory: helm-toolkit

    any work around on this please share?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions