NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
11.49k stars 1.44k forks source link

nix-channel --update nixpkgs fails on CentOS 7 #4636

Open djhshih opened 3 years ago

djhshih commented 3 years ago

Describe the bug

I am seeing a reproducible problem on two different CentOS 7 servers where nix-channel cannot update nixpkgs after a fresh installation of single-user mode nix. The same problem occurs after sandbox is disabled.

Steps To Reproduce

$ uname -a
Linux n001 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ nix-channel --version
nix-channel (Nix) 2.3.10
$ echo 'sandbox = false' > ~/.config/nix/nix.conf
$ nix-channel --update nixpkgs
mv: cannot move 'nixpkgs-21.05pre275813.c5147860e23' to '/nix/store/4a5ay8lxbdaqh7xnnkmmgzw996vpgsfp-nixpkgs-21.05pre275813.c5147860e23/nixpkgs': No such file or directory
builder for '/nix/store/chlhp8gcdsm1nfsl0xniinbhr41dpsb0-nixpkgs-21.05pre275813.c5147860e23.drv' failed with exit code 1
error: build of '/nix/store/chlhp8gcdsm1nfsl0xniinbhr41dpsb0-nixpkgs-21.05pre275813.c5147860e23.drv' failed
error: program '/nix/store/iwfs2bfcy7lqwhri94p2i6jc87ih55zk-nix-2.3.10/bin/nix-env' failed with exit code 100
$ nix doctor
Store uri: local

$ nix show-config | grep sandbox
extra-sandbox-paths = 
sandbox = false
sandbox-build-dir = /build
sandbox-dev-shm-size = 50%
sandbox-fallback = true
sandbox-paths = /bin/sh=/nix/store/w0xp1k96c1dvmx6m4wl1569cdzy47w5r-busybox-1.31.1-x86_64-unknown-linux-musl/bin/busybox

Expected behavior

nix-channel updates nixpkgs just fine on CentOS 8 with default settings.

Additional context

We are stuck with CentOS 7 instead of 8 for now, because CentOS 8 support is ending...

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info

aviallon commented 2 years ago

Not stale, still an issue.

stale[bot] commented 1 year ago

I marked this as stale due to inactivity. → More info