Comments (18)
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.
0.7.0 should fix this, I'll update the official url.
from cachix-action.
Tried again today with cachix-action@10
, same issue.
from cachix-action.
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.
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.
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.
Thanks so much @domenkozar!
from cachix-action.
great news @domenkozar, thank you 🙌
from cachix-action.
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.
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.
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.
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.
I've released 0.7.0 and it should be the default, does that work now?
from cachix-action.
I'll look into this.
from cachix-action.
I can also see this happening. I opened #111, which is related.
from cachix-action.
That's terrible experience. I'll prioritize this and look into it tomorrow!
from cachix-action.
I've released 0.7.1, once it reaches nixpkgs I'll publish it as official (hopefully in a few days).
from cachix-action.
Tracking at NixOS/nixpkgs#179211
from cachix-action.
Related Issues (20)
- Uploading to cachix is slow, it seems to reupload stuff even when not needed HOT 3
- New release? HOT 2
- save-state command is deprecated since 11th october 2022.
- Proposal: better auth and fork handling HOT 1
- `/usr/bin/bash` missing on Ubuntu 22.04 images HOT 3
- Add flag to allow failures HOT 2
- Failing to push HOT 1
- cachix/cachix-action fails to run HOT 5
- Error: Unable to locate executable file: cachix. HOT 7
- Unable to locate file: cachix HOT 2
- Binary not found by action HOT 6
- Action started failing ~36 hours ago HOT 8
- Can no longer install cachix HOT 5
- Any way to not even have to download anything? HOT 2
- Fails with nix-installer-action and Nix 2.15.1 HOT 3
- UI: unsuccessful push should scream "error!" instead of failing silently HOT 2
- Syntax error when cachix-action runs HOT 5
- `skipAddingSubstituter` should also skip `extraPullNames`
- When tokens get revoked the cachix-action hangs indefinitely HOT 2
- Cachix action v14 + v13 failing since Jan 15 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cachix-action.