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 find executable 'nix' in $PATH #713

Open
4levels opened this issue Jan 27, 2021 · 3 comments
Open

[ERROR] Unable to find executable 'nix' in $PATH #713

4levels opened this issue Jan 27, 2021 · 3 comments

Comments

@4levels
Copy link

4levels commented Jan 27, 2021

Hi,

after following the readme, I immediately get the following error when trying to call sudo kubernix.
I'm actually calling sudo target/releases/kubernix from this repo's cloned folder.

Steps I followed from the readme:

  • install nix curl https://nixos.org/nix/install | sh
  • clone this repo and cd into it
  • build the release make build-release

I already restarted my terminal, even rebooted completely, still to no avail.
I can successfully invoke nix as normal user.

I checked the issues here but couldn't find any pointers either.

I'm using Debian 10.7 - uname -a Linux dl01 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux

I suspect I'm overlooking something obviously here. Anyone knows what?

I have a VM running nixos natively, not sure if I should try inside that machine instead?

@saschagrunert
Copy link
Owner

saschagrunert commented Jan 27, 2021

Hey @4levels, that's an issue with sudo, which does not seem to preserve the path where the nix binary is in.

Can you try to run kubernix via:

> sudo env "PATH=$PATH" target/releases/kubernix

@4levels
Copy link
Author

4levels commented Jan 27, 2021

That seems to do the trick! I would have never tought of that 👍
I do get the following errors during the run though:

sudo env "PATH=$PATH" target/release/kubernix
warning: the group 'nixbld' specified in 'build-users-group' does not exist
[ERROR] API Server (kube-apiserver) died unexpectedly
[ERROR] Scheduler (kube-scheduler) died unexpectedly
[ERROR] Controller Manager (kube-controller-manager) died unexpectedly
[ERROR] Timed out waiting for process 'Kubelet' (kubelet) to become ready
[ERROR] Timed out waiting for process 'Proxy' (kube-proxy) to become ready
[ERROR] Unable to start all processes
[⠠  4m] ██████████████████░░░░░░░ 16/22 Proxy stopped

@4levels
Copy link
Author

4levels commented Jan 27, 2021

FYI Just as poc I tried the readme steps in the VM I have running nixos natively, and all seems to work way better in there!
The kubernix call ends with the expected outcome, dropping me in a shell.

I'll continue from there, but would still like to run this on my debian box as well..

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

2 participants