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

cachix-agent service dies at launch #924

Closed
dhess opened this issue Apr 6, 2024 · 3 comments · Fixed by #952
Closed

cachix-agent service dies at launch #924

dhess opened this issue Apr 6, 2024 · 3 comments · Fixed by #952

Comments

@dhess
Copy link
Contributor

dhess commented Apr 6, 2024

This started happening sometime in the last month or two with nixpkgs-unstable:

cachix: security: createProcess: posix_spawnp: does not exist (No such file or directory)

It has something to do with the PATH set by the launchd service. I looked at the Cachix agent source and didn't see anything obvious, and have run out of time to debug it properly, but FYI adding /usr/bin to the launchd service's PATH fixes the problem.

(I suspected coreutils and added coreutils-full to the path, but that did not fix the issue on my system.)

@dhess dhess changed the title cachix-agent services dies at launch cachix-agent service dies at launch Apr 6, 2024
@domenkozar
Copy link
Collaborator

I've only seen it now, looks similar to NixOS/nixpkgs#297775

@sandydoo
Copy link
Contributor

sandydoo commented May 16, 2024

So one of the Haskell TLS libraries is calling security, which isn't in the PATH.

We can either add /usr/bin to the launchctl paths, or do something like this tweag/rules_haskell@31171a5

@sandydoo
Copy link
Contributor

sandydoo commented May 16, 2024

config.environment.systemPath would probably also work?

sandydoo added a commit to sandydoo/nix-darwin that referenced this issue May 16, 2024
One of cachix-agent's dependencies, `hs-certificate`, makes calls to
`security`. This lives in `/usr/bin`, which isn't available from
launchd. This commit makes the system paths available to cachix-agent.

Fixes LnL7#924.
sandydoo added a commit to sandydoo/nix-darwin that referenced this issue May 16, 2024
One of cachix-agent's dependencies, `hs-certificate`, makes calls to
`security`. This lives in `/usr/bin`, which isn't available from
launchd. This commit makes the system paths available to cachix-agent.

Fixes LnL7#924.
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

Successfully merging a pull request may close this issue.

3 participants