Skip to content

"helm fetch/pull" failing in Helm 3.2.0 #7987

Closed

Description

@carrodher

I am trying to fetch a chart using the new Helm 3.2.0 version but I obtain the following error:

$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈ Happy Helming!⎈

$ helm fetch bitnami/redis-cluster
Error: rename /tmp/redis-cluster-2.0.8.tgz770913527 redis-cluster-2.0.8.tgz: invalid cross-device link

the same issue happens using pull instead of fetch:

$ helm pull bitnami/redis-cluster
Error: rename /tmp/redis-cluster-2.0.8.tgz205065242 redis-cluster-2.0.8.tgz: invalid cross-device link

But, using the latest Helm 3.1.X, the command works as expected:

$ helm313 repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "bitnami" chart repository
Update Complete. ⎈ Happy Helming!⎈

$ helm313 fetch bitnami/redis-cluster

$ ls | grep redis
redis-cluster-2.0.8.tgz

Output of helm version:

$ helm version
version.BuildInfo{Version:"v3.2.0", GitCommit:"e11b7ce3b12db2941e90399e874513fbd24bcb71", GitTreeState:"clean", GoVersion:"go1.13.10"}

Output of kubectl version:

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.9", GitCommit:"2e808b7cb054ee242b68e62455323aa783991f03", GitTreeState:"clean", BuildDate:"2020-01-18T23:33:14Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.11-gke.1", GitCommit:"aa93664bafe74f3c051e021b27a64e28ac34ab40", GitTreeState:"clean", BuildDate:"2020-03-18T22:49:35Z", GoVersion:"go1.12.17b4", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
GKE

Activity

  1. carrodher commented on Apr 24, 2020

    @carrodher
    Author

    Not 100% sure, but this PR can be related #7720.

    It seems the temporary file must live in the same filesystem, in my case I have the homeDir and /tmp in different volumes. If I execute the command from /tmp there are no issues:

    $ cd /tmp
    $ helm fetch bitnami/redis-cluster
    $ ls . | grep redis
    redis-cluster-2.0.8.tgz

    Then, moving to a different directory:

    $ cd ~
    $ helm fetch bitnami/redis-cluster
    Error: rename /tmp/redis-cluster-2.0.8.tgz121386737 redis-cluster-2.0.8.tgz: invalid cross-device link

    But, the temporal file for the failed execution was created in /tmp

    $ ls /tmp | grep redis
    redis-cluster-2.0.8.tgz
    redis-cluster-2.0.8.tgz121386737
    

    As you can see, there are two files, the regular one fetched when I moved to /tmp and the temporal file created in the failed execution.

  2. added
    bug
    on Apr 24, 2020
  3. bacongobbler commented on Apr 24, 2020

    @bacongobbler
    Member

    sounds like the same report in #2998, though in a different section of the code. Please feel free to submit a patch that fixes this. Have a look through #2998 for a more in-depth rundown of the issue.

    RenameWithFallback is now part of the project, so this should be a really quick fix. Have a look at #6750 for an example.

    Marking as a good first issue.

  4. added
    good first issue
    on Apr 24, 2020
  5. bacongobbler commented on Apr 24, 2020

    @bacongobbler
    Member

    This should be fixed after #7954 is merged.

  6. carrodher commented on Apr 30, 2020

    @carrodher
    Author

    Thanks for the quick fix! I didn't have time to take a look in deep to try to send a PR

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

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions