-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Does not pass tests #1625
Comments
Are you building in some sort of chroot or user namespace by any chance? According to the clone manpage, that might cause EPERM. What's the Linux kernel version? |
At the very beginning, I was using proot indeed, but after that I tried with my debian, without any chroot/namespace (it's not even enabled on debian), and I have the same error in both cases. I'm running kernel 4.12.0-2-amd64. |
Sounds like the same thing as #1521 |
@dezgeg Actually that issue is about EINVAL, this is EPERM. |
I think Debian carries a custom patch to make user namespaces runtime configurable, that might return -EPERM: https://superuser.com/questions/1094597/enable-user-namespaces-in-debian-kernel |
Experiencing problems with those two tests as well. The actual error messages are a little different however. The system is SLES12 with 4.4.74-92.29-default. I used nix-user-chroot to bootstrap nix to a custom prefix using an overlay, but the final build of nix is running outside of this chroot.
Without a
|
@dezgeg And it's not possible to disable these tests for debian users ? Or maybe it's possible to manually disable tests ? |
I get the same thing. When nix runs without
I think the right thing to do is disable |
Disable various tests if the kernel doesn't support unprivileged user namespaces (e.g. Arch Linux disables them) or disable them via a sysctl (Debian, Ubuntu). Fixes NixOS#1521 Fixes NixOS#1625
Hello,
First, thank you for these great tools. I installed nix on my debian system, and I got some troubles when I try to compile the nix sources.
Step to reproduce
Install the binary distribution of nix on debian sid:
Then load the environment using the command that is prompted at the end, and run the following commands:
Then, after some times, it fails to build, because it fails to pass two tests:
tests/linux-sandbox.sh
andtest/build-remote.sh
, with the same error:Do you know how to solve this problem ?
Thank you !
NB: Here is the last part of the output of the script, and you can find here most of the output of the script.
The text was updated successfully, but these errors were encountered: