Giter Site home page Giter Site logo

Comments (18)

domenkozar avatar domenkozar commented on July 1, 2024 3

This is now fixed in cachix/cachix#410

I'll make a release and let you know once it hits the channels!

Thanks for reporting!

from cachix-action.

domenkozar avatar domenkozar commented on July 1, 2024 2

0.7.0 should fix this, I'll update the official url.

from cachix-action.

austinbutler avatar austinbutler commented on July 1, 2024 1

Tried again today with cachix-action@10, same issue.

from cachix-action.

runeksvendsen avatar runeksvendsen commented on July 1, 2024 1

We're seeing this, too:

Post job cleanup.
Cachix: push
  /home/runner/work/_actions/cachix/cachix-action/v10/dist/main/push-paths.sh /home/runner/.nix-profile/bin/cachix adamatic-bridge 
  cachix: CppStdException "Exception: \ESC[31;1merror:\ESC[0m path '\ESC[35;1m/nix/store/w7wj6qd654qwq9595r28bp1b6vp3fvky-nodejs-14.18.1.drv.chroot\ESC[0m' is not valid; type: nix::InvalidPath"
  Error: Action failed with error: Error: The process '/home/runner/work/_actions/cachix/cachix-action/v10/dist/main/push-paths.sh' failed with exit code 1

EDIT: Using cachix-action@10
EDIT2: This happens only when the build itself fails (after which cachix-action runs and also fails)

from cachix-action.

purefn avatar purefn commented on July 1, 2024 1

Anyone know of a workaround for this issue? I'm running into it on a GitHub action that ends up building GHC. It eventually times out. Then it hits this error and so every build needs to rebuild GHC and ends up timing out and failing.

from cachix-action.

domenkozar avatar domenkozar commented on July 1, 2024 1

To reproduce:

nix-build -E '(import <nixpkgs> {}).runCommand "foo" {} "sleep 999999999"'

Then in another terminal:

$ find /nix/store -maxdepth 1 -name *.drv.chroot
/nix/store/nz0ziflbx07n04szdhg0f60jk5givdla-foo.drv.chroot

And finally:

$ cachix push mycache /nix/store/nz0ziflbx07n04szdhg0f60jk5givdla-foo.drv.chroot
cachix: CppStdException e "\ESC[31;1merror:\ESC[0m path '\ESC[35;1m/nix/store/nz0ziflbx07n04szdhg0f60jk5givdla-foo.drv.chroot\ESC[0m' is not valid"(Just "nix::InvalidPath")
``

from cachix-action.

samuela avatar samuela commented on July 1, 2024 1

Thanks so much @domenkozar!

from cachix-action.

steveej avatar steveej commented on July 1, 2024 1

great news @domenkozar, thank you 🙌

from cachix-action.

samuela avatar samuela commented on July 1, 2024

Just got the same thing on a different job:

cachix: CppStdException "Exception: path '/nix/store/qli5gyjqm0lizmxz2lqmybwgd3pvz1ji-tensorflow-gpu-2.7.0.drv.chroot' is not valid; type: nix::InvalidPath"
Error: Action failed with error: Error: The process '/home/runner/work/_actions/cachix/cachix-action/v10/dist/main/push-paths.sh' failed with exit code 1

Here's the run.

from cachix-action.

samuela avatar samuela commented on July 1, 2024

EDIT: in both of these cases I'm realizing that there were build errors in the job... My expectation was that nix would not leave partial file junk in /nix/store though?

from cachix-action.

steveej avatar steveej commented on July 1, 2024

i was wondering how to install cachix 0.7.0 using cachix/cachix-action@v10 today, and came up with the following solution:

- name: Setup cachix
  uses: cachix/cachix-action@v10
  with:
    (...)
    installCommand: |
      nix-env -if https://github.com/cachix/cachix/tarball/cachix-api-0.7.0 \
        --substituters 'https://cache.nixos.org https://cachix.cachix.org' \
        --trusted-public-keys 'cachix.cachix.org-1:eWNHQldwUO7G2VkjpnjDbWwy4KQ/HNxht7H4SSoMckM= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY='

from cachix-action.

steveej avatar steveej commented on July 1, 2024

installing cachix 0.7 as shown above doesn't solve my instance of the issue.
error copied from this run:

Cachix: push
  /Users/runner/work/_actions/cachix/cachix-action/v10/dist/main/push-paths.sh /Users/runner/.nix-profile/bin/cachix holochain-ci 
  cachix: CppStdException "Exception: \ESC[31;1merror:\ESC[0m path '\ESC[35;1m/nix/store/9lyllc4w3il5kkkmfnla455min34yz7b-rust-overlay-b4532ea\ESC[0m' is not valid; type: nix::InvalidPath"
  Error: Action failed with error: Error: The process '/Users/runner/work/_actions/cachix/cachix-action/v10/dist/main/push-paths.sh' failed with exit code 1

from cachix-action.

domenkozar avatar domenkozar commented on July 1, 2024

I've released 0.7.0 and it should be the default, does that work now?

from cachix-action.

domenkozar avatar domenkozar commented on July 1, 2024

I'll look into this.

from cachix-action.

flokli avatar flokli commented on July 1, 2024

I can also see this happening. I opened #111, which is related.

from cachix-action.

domenkozar avatar domenkozar commented on July 1, 2024

That's terrible experience. I'll prioritize this and look into it tomorrow!

from cachix-action.

domenkozar avatar domenkozar commented on July 1, 2024

I've released 0.7.1, once it reaches nixpkgs I'll publish it as official (hopefully in a few days).

from cachix-action.

domenkozar avatar domenkozar commented on July 1, 2024

Tracking at NixOS/nixpkgs#179211

from cachix-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.