Multi-user installation blocks. What is reason?

Hello,

I am installing Nix in multi-user mode on a CentOS 7.8 system. My installation blocks at the following step. Does anyone know what is holding up the installation?

Regards,
Matthijs van Waveren

---- sudo execution ------------------------------------------------------------
I am executing:

  • $ sudo HOME=/root /nix/store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7/bin/nix-env -i /nix/store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7*

to installing a bootstrapping Nix in to the default Profile

installing ‘nix-2.3.7’

I can not see that step mentioned in the manual. Though it also says, that Linux is only supported without SElinux enabled. CentOS does enable it by default as far as I remember. Have you checked the output of sestatus?

https://nixos.org/manual/nix/stable/#sect-multi-user-installation

Thanks for the reply. SElinux is disabled.

The command I gave was:
install --daemon

The log is listed below. The installation blocks at the last step, when he tries to install a bootstrapping Nix in the default Profile. What I see is that the subdirectories in
/nix/store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7
all have “dr-x” authorization, so no write access.

tu-hpcrepo-p01 4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7 # ls -al
total 4
dr-x------ 9 root root 101 Jan 1 1970 .
drwxrwxr-t 38 root nixbld 4096 Sep 28 14:55 …
dr-x------ 2 root root 234 Jan 1 1970 bin
dr-x------ 4 root root 35 Jan 1 1970 etc
dr-x------ 3 root root 17 Jan 1 1970 include
dr-x------ 4 root root 302 Jan 1 1970 lib
dr-x------ 3 root root 17 Jan 1 1970 libexec
dr-x------ 2 root root 105 Jan 1 1970 nix-support
dr-x------ 5 root root 39 Jan 1 1970 share

This is the reason the installation step blocks. What should I do to avoid this?

====================================================================
LOG OF INSTALLATION

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo mkdir -pv -m 0755 /nix /nix/var /nix/var/log /nix/var/log/nix /nix/var/log/nix/drvs /nix/var/nix /nix/var/nix/db /nix/var/nix/gcroots /nix/var/nix/profiles /nix/var/nix/temproots /nix/var/nix/userpool /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user

to make the basic directory structure of Nix (part 1)

mkdir: created directory \u2018/nix\u2019
mkdir: created directory \u2018/nix/var\u2019
mkdir: created directory \u2018/nix/var/log\u2019
mkdir: created directory \u2018/nix/var/log/nix\u2019
mkdir: created directory \u2018/nix/var/log/nix/drvs\u2019
mkdir: created directory \u2018/nix/var/nix\u2019
mkdir: created directory \u2018/nix/var/nix/db\u2019
mkdir: created directory \u2018/nix/var/nix/gcroots\u2019
mkdir: created directory \u2018/nix/var/nix/profiles\u2019
mkdir: created directory \u2018/nix/var/nix/temproots\u2019
mkdir: created directory \u2018/nix/var/nix/userpool\u2019
mkdir: created directory \u2018/nix/var/nix/gcroots/per-user\u2019
mkdir: created directory \u2018/nix/var/nix/profiles/per-user\u2019

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo mkdir -pv -m 1775 /nix/store

to make the basic directory structure of Nix (part 2)

mkdir: created directory \u2018/nix/store\u2019

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo chgrp nixbld /nix/store

to make the basic directory structure of Nix (part 3)

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo mkdir -pv -m 0555 /etc/nix

to place the default nix daemon configuration (part 1)

mkdir: created directory \u2018/etc/nix\u2019

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo install -m 0664 /tmp/tmp.CCoVkW1iwt/.nix-channels /root/.nix-channels

to set up the default system channel (part 1)

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo rsync -rlpt --chmod=-w ./store/0x3bf23q5lmdq77x5icr7c0ngvz25ms3-openssl-1.1.1g ./store/1d3bpmrzglvrfnkppbqjyjjg8mqjfb3g-nss-cacert-3.49.2 ./store/2nr2gr8gy4j0clgiy3ac8gkxz3b3ln86-aws-c-event-stream-0.1.1 ./store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7 ./store/5nhlxcjqzwcyj0kqjpnrcds53paw8j08-nghttp2-1.40.0-lib ./store/9xv0mxb6sbd5sz8a0i4xi6z0h8762cdp-keyutils-1.6.1-lib ./store/avrfjzdw3x7gwyn2lhdlyafwb12sgk5m-sqlite-3.32.2 ./store/b3yikpnxly8vgr2c0sspwqckx44hb474-attr-2.4.48 ./store/bxjyac4385pw8cwrlgm7d18bmmndf4p5-libkrb5-1.17 ./store/danv012gh0aakh8xnk2b35vahklz72mk-gcc-9.2.0-lib ./store/f7wwm99s0bvzwmnrdmg9ny3nbglkchfz-aws-sdk-cpp-1.7.90 ./store/fnn6zvyds5sy7mgvl4h2qslmlsaf0dc8-libssh2-1.9.0 ./store/g7dr83wnkx4gxa5ykcljc5jg04416z60-gnutar-1.32 ./store/hjng28vbd73qq9iz9j8r397x19aa8fp9-libidn2-2.3.0 ./store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23 ./store/i5p11bkn7hshg1qi9dyh557y4f3hfs94-busybox-1.31.1-x86_64-unknown-linux-musl ./store/ipcp5xyxmmzdz5z7q3x574si2j7j7py2-bzip2-1.0.6.0.1 ./store/jj7dqm9m5cav4gqmwqpkf1z66g0ipwv6-xz-5.2.4 ./store/kkvgr3avpp7yd5hzmc4syh43jqj03sgb-gzip-1.10 ./store/krbh984z3lpvj614gfp2ss59b8ss2nq1-boehm-gc-8.0.4 ./store/mm0w8jc58rn01c4kz2n9jvwd6bibcihs-xz-5.2.4-bin ./store/msp4hm62a75pdidlc3s2ymma2g5hsjjk-zlib-1.2.11 ./store/mxaxvp33wg9sim8qh2kkw041v492bvxj-libunistring-0.9.10 ./store/q6ccxvp6vbdlhk1cgyq257zphk6z0zfy-boehm-gc-8.0.4-dev ./store/qha2qqxwgs2ygsq0badjaipgcjmmwm3i-aws-checksums-0.1.5 ./store/qm39nciyhn5qvnn7ahq578k9m5k0cq1i-brotli-1.0.7-lib ./store/r34dgxr3c55ygn617pdhz1ir7q4jn70c-curl-7.70.0 ./store/r8k4rjkq5sdz648abm832dnilai176sj-libsodium-1.0.18 ./store/rq9vqzjqay8fz8qdidmbgs3lqpq0y6zb-acl-2.2.53 ./store/rw96psqzgyqrcd12qr6ivk9yiskjm3ab-bzip2-1.0.6.0.1-bin ./store/x0jla3hpxrwz76hy9yckg1iyc9hns81k-coreutils-8.31 ./store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30 ./store/xvs265xd17acblb2xw83cqxlzpsqk3w0-editline-1.17.0 ./store/y9r40mvhgi7hka0xhpml9dq3z1k9g0f5-libseccomp-2.4.2-lib ./store/zi2ihh5fbdi251f07wy14ns260v9m23d-aws-c-common-0.3.11 /nix/store/

to copy the basic Nix files to the new store at /nix/store

  Alright! We have our first nix at /nix/store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo /nix/store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7/bin/nix-store --load-db

to load data for the first time in to the Nix Database

  Just finished getting the nix database ready.

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo touch /etc/profile.d/nix.sh

create a stub /etc/profile.d/nix.sh which will be updated

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo cp /etc/bashrc /etc/bashrc.backup-before-nix

to back up your current /etc/bashrc to /etc/bashrc.backup-before-nix

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo tee -a /etc/bashrc

extend your /etc/bashrc with nix-daemon settings

Nix

if [ -e ‘/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh’ ]; then
. ‘/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh’
fi

End Nix

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo cp /etc/profile.d/nix.sh /etc/profile.d/nix.sh.backup-before-nix

to back up your current /etc/profile.d/nix.sh to /etc/profile.d/nix.sh.backup-before-nix

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo tee -a /etc/profile.d/nix.sh

extend your /etc/profile.d/nix.sh with nix-daemon settings

Nix

if [ -e ‘/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh’ ]; then
. ‘/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh’
fi

End Nix

---- sudo execution ------------------------------------------------------------
I am executing:

$ sudo HOME=/root /nix/store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7/bin/nix-env -i /nix/store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7

to installing a bootstrapping Nix in to the default Profile

installing ‘nix-2.3.7’