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

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

Open
djhshih opened this issue Mar 13, 2021 · 3 comments
Open

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

djhshih opened this issue Mar 13, 2021 · 3 comments

Comments

@djhshih
Copy link

djhshih commented Mar 13, 2021

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...

@djhshih djhshih added the bug label Mar 13, 2021
@stale
Copy link

stale bot commented Sep 10, 2021

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

@stale stale bot added the stale label Sep 10, 2021
@aviallon
Copy link

aviallon commented Jan 4, 2022

Not stale, still an issue.

@stale stale bot removed the stale label Jan 4, 2022
@stale
Copy link

stale bot commented Jul 10, 2022

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

@stale stale bot added the stale label Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants