-
Notifications
You must be signed in to change notification settings - Fork 57
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
unable to start build process while installing Nix #1227
Labels
Comments
edolstra
added a commit
to DeterminateSystems/nix-src
that referenced
this issue
Oct 9, 2024
This should help with issues like DeterminateSystems/nix-installer#1227, which currently just print "unable to start build process".
This means that Nix fails in this bit of code: /* Drop additional groups here because we can't do it
after we've created the new user namespace. */
if (setgroups(0, 0) == -1) {
if (errno != EPERM)
throw SysError("setgroups failed");
if (settings.requireDropSupplementaryGroups)
throw Error("setgroups failed. Set the require-drop-supplementary-groups option to false to skip this step.");
}
ProcessOptions options;
options.cloneFlags = CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWIPC | CLONE_NEWUTS | CLONE_PARENT | SIGCHLD;
if (privateNetwork)
options.cloneFlags |= CLONE_NEWNET;
if (usingUserNamespace)
options.cloneFlags |= CLONE_NEWUSER;
pid_t child = startProcess([&]() { runChild(); }, options); I suspect this has something to do with lack of namespace support in the kernel, but it's hard to tell from the error message. I've made NixOS/nix#11664 to help diagnose this in the future. What Linux distribution is this on? |
cole-h
changed the title
<autogenerated-issue>
unable to start build process while installing Nix
Oct 9, 2024
Mic92
pushed a commit
to Mic92/nix-1
that referenced
this issue
Oct 21, 2024
This should help with issues like DeterminateSystems/nix-installer#1227, which currently just print "unable to start build process".
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error
Metadata
The text was updated successfully, but these errors were encountered: