Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action started failing ~36 hours ago #143

Closed
samuela opened this issue Mar 2, 2023 · 8 comments
Closed

Action started failing ~36 hours ago #143

samuela opened this issue Mar 2, 2023 · 8 comments

Comments

@samuela
Copy link

samuela commented Mar 2, 2023

I have not made any changes to my GitHub Actions config, but recently I've started seeing my CI fail on the cachix-action step:

Cachix: installing
  /usr/bin/bash -c nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install
Cachix: checking version
  Error: Action failed with error: Error: Unable to locate executable file: cachix. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

For example, check out this run.

Any idea what's causing these failures? How can I get cachix-action working again?

@sandydoo
Copy link
Member

sandydoo commented Mar 2, 2023

@samuela, there was an issue with cachix/install-nix-action and a new release of Nix. Please upgrade to cachix/install-nix-action@v20.

@samuela
Copy link
Author

samuela commented Mar 2, 2023

thanks, I'll give that a shot!

@samuela
Copy link
Author

samuela commented Mar 2, 2023

that seems to have fixed it: https://github.com/samuela/nixpkgs-upkeep/actions/runs/4310823350

thanks @sandydoo !

@samuela samuela closed this as completed Mar 2, 2023
@dohn-joh
Copy link

Hi I am experiencing this error as well while using github actions. My last action from 4 days ago was successful, but it started failing today. How did you upgrade cachix/install-nix-action @samuela ? I am using a clone of this repository https://github.com/moergo-sc/glove80-zmk-config
asdf

Please let me know if I should open a separate issue.

@samuela
Copy link
Author

samuela commented Apr 12, 2023

@pujvz You'll need to update your GH Actions config. See eg the cachix/cachix-action@v12 in your screenshot above.

@dohn-joh
Copy link

dohn-joh commented Apr 12, 2023

@samuela I tried updating my build.yml yesterday and the action errored out. Sorry if I am missing something extremely obvious. I am not a SWE and I'm new to all this.

build.yml
fdsa

Action error after updating build.yml
asdf

Edit: corrected the screenshot

@samuela
Copy link
Author

samuela commented Apr 12, 2023

hmm this sort of thing really belongs in a separate issue. a few thoughts in the meantime:

  • please post links to the relevant logs/commits/etc instead of screenshots. this helps to debug.
  • it looks like you downgraded from v20 to v12. you want to be upgrading versions if at all possible

@dohn-joh
Copy link

dohn-joh commented Apr 12, 2023

Apologies. I attached a screenshot of the wrong commit from after I reverted the change. Another user was able to assist me with this issue. I changed line 17 from

- uses: cachix/install-nix-action@v18
to
- uses: cachix/install-nix-action@v20

and now the action completes successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants