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

Error: Unable to locate executable file: cachix. #138

Closed
rvolosatovs opened this issue Feb 28, 2023 · 7 comments
Closed

Error: Unable to locate executable file: cachix. #138

rvolosatovs opened this issue Feb 28, 2023 · 7 comments

Comments

@rvolosatovs
Copy link

A few minutes ago, all cachix/cachix-action@v12 jobs started to fail with:

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.

E.g. https://github.com/rvolosatovs/wash/actions/runs/4295788214/jobs/7486677553

@rsdy
Copy link

rsdy commented Feb 28, 2023

I'm seeing the same thing.

rvolosatovs added a commit to rvolosatovs/wash that referenced this issue Feb 28, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
scsmithr added a commit to GlareDB/glaredb that referenced this issue Feb 28, 2023
scsmithr added a commit to GlareDB/glaredb that referenced this issue Feb 28, 2023
* fix: Continue on error for cachix step

Quickfix for cachix/cachix-action#138

* oops

* And for image building
rvolosatovs added a commit to rvolosatovs/wash that referenced this issue Feb 28, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
rvolosatovs added a commit to rvolosatovs/wash that referenced this issue Feb 28, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
@ehildenb
Copy link

ehildenb commented Feb 28, 2023

We're seeing the same thing: https://github.com/runtimeverification/evm-semantics/actions/runs/4296996503/jobs/7489418708

I've tried version 14 and version 15 of the action.

@Gerschtli
Copy link
Contributor

This is not an issue with this action. The latest nix release (2.14.0) has a regression which causes this.

Pinning nix version in the nix-install-action resolves it:

install_url: https://releases.nixos.org/nix/nix-2.13.3/install

See NixOS/nixpkgs#218858 (comment)

vlaci added a commit to onekey-sec/sasquatch that referenced this issue Feb 28, 2023
vlaci added a commit to onekey-sec/sasquatch that referenced this issue Feb 28, 2023
vlaci added a commit to onekey-sec/sasquatch that referenced this issue Feb 28, 2023
rvolosatovs added a commit to rvolosatovs/wash that referenced this issue Feb 28, 2023
Pin `nix` version to workaround an upstream regression:
cachix/cachix-action#138 (comment)

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
@rvolosatovs
Copy link
Author

This is not an issue with this action. The latest nix release (2.14.0) has a regression which causes this.

Pinning nix version in the nix-install-action resolves it:

install_url: https://releases.nixos.org/nix/nix-2.13.3/install

See NixOS/nixpkgs#218858 (comment)

Thank you! This solved my issue, closing

srid added a commit to srid/haskell-flake that referenced this issue Feb 28, 2023
F-WRunTime added a commit to runtimeverification/python-project-template that referenced this issue Feb 28, 2023
F-WRunTime added a commit to runtimeverification/avm-semantics that referenced this issue Feb 28, 2023
vlaci added a commit to onekey-sec/sasquatch that referenced this issue Mar 1, 2023
saschagrunert added a commit to saschagrunert/security-profiles-operator that referenced this issue Mar 1, 2023
We have to pin the GitHub actions nix version to v2.13.3 to avoid having
the regression mentioned in cachix/cachix-action#138 (comment).

This should fix the build CI.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert added a commit to saschagrunert/security-profiles-operator that referenced this issue Mar 1, 2023
We have to pin the GitHub actions nix version to v2.13.3 to avoid having
the regression mentioned in cachix/cachix-action#138 (comment).

This should fix the build CI.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
saschagrunert added a commit to saschagrunert/cri-o that referenced this issue Mar 1, 2023
We have to pin nix to v2.13.3 to avoid having the regression mentioned
in cachix/cachix-action#138 (comment).

This should fix the static builds.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
rvolosatovs added a commit to rvolosatovs/wash that referenced this issue Mar 1, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
rvolosatovs added a commit to rvolosatovs/wash that referenced this issue Mar 1, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
rvolosatovs added a commit to rvolosatovs/wash that referenced this issue Mar 1, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
rvolosatovs added a commit to rvolosatovs/wash that referenced this issue Mar 1, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
k8s-ci-robot pushed a commit to kubernetes-sigs/security-profiles-operator that referenced this issue Mar 1, 2023
We have to pin the GitHub actions nix version to v2.13.3 to avoid having
the regression mentioned in cachix/cachix-action#138 (comment).

This should fix the build CI.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
nekowinston added a commit to nekowinston/nur that referenced this issue Mar 3, 2023
klihub pushed a commit to klihub/cri-o that referenced this issue Mar 3, 2023
We have to pin nix to v2.13.3 to avoid having the regression mentioned
in cachix/cachix-action#138 (comment).

This should fix the static builds.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
rvolosatovs added a commit to rvolosatovs/wash that referenced this issue Mar 9, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
rvolosatovs added a commit to rvolosatovs/wash that referenced this issue Mar 9, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
haraldh added a commit to rjzak/enarx that referenced this issue Apr 14, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
haraldh added a commit to enarx/enarx that referenced this issue Apr 14, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
fugidev added a commit to fsr/fruitbasket that referenced this issue May 25, 2023
pin nix version to work-around regression

cachix/cachix-action#138
rvolosatovs added a commit to rvolosatovs/wash that referenced this issue May 31, 2023
Workaround for cachix/cachix-action#138

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Andy-Hay added a commit to snowplow-devops/conntest that referenced this issue Jun 9, 2023
networkException added a commit to t2linux/nixos-t2-iso that referenced this issue Jul 10, 2023
networkException added a commit to t2linux/nixos-t2-iso that referenced this issue Jul 10, 2023
networkException added a commit to t2linux/nixos-t2-iso that referenced this issue Jul 10, 2023
networkException added a commit to t2linux/nixos-t2-iso that referenced this issue Jul 10, 2023
@dpc
Copy link

dpc commented Dec 6, 2023

I see the same thing on a self-hosted macos runner and I don't even know why. How does one debug this?

@sandydoo
Copy link
Member

sandydoo commented Dec 8, 2023

I see the same thing on a self-hosted macos runner and I don't even know why. How does one debug this?

This usually means that we can't find the cachix executable in your PATH. You can start tracking this down by echo-ing PATH during the workflow and making sure that it contains paths to the system/user nix profiles.
I would recommend pre-installing cachix if using a self-hosted runner.

@dpc
Copy link

dpc commented Dec 8, 2023

I forgot to post an update. I fixed it couple of hours after posting.

This was caused by GH action runner wiping the environment on start, discarding Nix environment. It's weird because it works fine on Linux, in similar setup. I think it's because shell is not being used to invoke commands on MacOS, while it is on Linux, or because DeterminateSystems installer is wiring things up differently between the two for some reason.

The fix was to run ./env.sh after sourcing Nix init script to update .env and .path inside the runner's dir, before calling ./run.sh.

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

6 participants