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

Can't install Multi-User mode on Darwin #5174

Closed
ghost opened this issue Aug 25, 2021 · 4 comments
Closed

Can't install Multi-User mode on Darwin #5174

ghost opened this issue Aug 25, 2021 · 4 comments
Labels
bug macos Nix on macOS, aka OS X, aka darwin

Comments

@ghost
Copy link

ghost commented Aug 25, 2021

I use sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon.
But i got a error:

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

    $ sudo HOME=/var/root /nix/store/6p6qwp73dgfkqhynmxrzbx1lcfgfpqal-nix-2.3.15/bin/nix-env -i /nix/store/6p6qwp73dgfkqhynmxrzbx1lcfgfpqal-nix-2.3.15

to installing a bootstrapping Nix in to the default Profile

installing 'nix-2.3.15'
Assertion failed: (S_ISLNK(st.st_mode)), function canonicalisePathMetaData, file src/libstore/local-store.cc, line 529.
/var/folders/r3/n7c7b7w15nd9h334q6m728l40000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.gLAf1vtL/unpack/nix-2.3.15-x86_64-darwin/install-multi-user: line 220:  3851 Abort trap: 6           sudo "$@"

---- oh no! --------------------------------------------------------------------
Jeeze, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.

:(

Full log:

~~> Setting up the build group nixbld
            Exists:	Yes

~~> Setting up the build user _nixbld1
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 1
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld2
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 2
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld3
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 3
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld4
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 4
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld5
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 5
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld6
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 6
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld7
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 7
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld8
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 8
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld9
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 9
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld10
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 10
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld11
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 11
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld12
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 12
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld13
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 13
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld14
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 14
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld15
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 15
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld16
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 16
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld17
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 17
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld18
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 18
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld19
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 19
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld20
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 20
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld21
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 21
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld22
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 22
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld23
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 23
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld24
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 24
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld25
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 25
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld26
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 26
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld27
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 27
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld28
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 28
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld29
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 29
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld30
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 30
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld31
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 31
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

~~> Setting up the build user _nixbld32
            Exists:	Yes
            Hidden:	Yes
    Home Directory:	/var/empty
              Note:	Nix build user 32
   Logins Disabled:	Yes
  Member of nixbld:	Yes
    PrimaryGroupID:	30000

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


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

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

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


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


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

    $ sudo install -m 0664 /var/folders/r3/n7c7b7w15nd9h334q6m728l40000gn/T/tmp.XXXXXXXXXX.UANCZuuP/.nix-channels /var/root/.nix-channels

to set up the default system channel (part 1)


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

    $ sudo rsync -rlpt --chmod=-w ./store/0cyvb2bicbpy3sfxr480pqdszbcnmx6k-aws-c-io-0.9.1 ./store/1f838zs2p3wk979jrdchzaavc5rry1pb-aws-sdk-cpp-1.8.121 ./store/1pc7l8wg295yqx7v4xf7yv1lyqcjsivz-libcxx-7.1.0 ./store/3n29wpriknbzlp0m2i8rsxpj1vgrp933-xz-5.2.5 ./store/47h34iqxdbb4zr0751wvaqzpz1llgjhx-libxml2-2.9.12 ./store/6p6qwp73dgfkqhynmxrzbx1lcfgfpqal-nix-2.3.15 ./store/84c38anv0khhpqz9nzsv90iri29ggrr5-brotli-1.0.9-lib ./store/85np6zggwix87qqbwq20jb80c04c7xhi-boost-1.69.0 ./store/955l6fw992fd9jzj55sws9r43qj049zv-aws-checksums-0.1.11 ./store/9i3jamddqlgdajzh0zx5s02cjg9n07bf-gnutar-1.34 ./store/9q2s3gm5hyv02r2290sdx1nxab8haiym-coreutils-8.32 ./store/b9g4wkdn7gz0qyc8x4ihb3y6p9ykyr3w-Libsystem-1238.60.2 ./store/bmxmsglm3l7rkshffpcihch71093px7s-openssl-1.1.1k ./store/bqc4lpqac48knpx870l2ga1kg5rrk35f-icu4c-69.1 ./store/bxq6kxbqlk08v2q1zdlvxs27cfjyc506-apple-framework-IOKit ./store/by6p6s0wa14jflbz740jjmyg6026470a-apple-framework-Security ./store/c9cxq1583a85bsq76q2rbnbiwwp7ygxr-bash-4.4-p23 ./store/d2kq7j25bhf7c2i23agm8wqfqzqbcf0m-editline-1.17.0 ./store/fz297aqqbc4xldm7rmc1xr0giw2bl9ql-ICU-66108 ./store/h5brcnbnfa7narc8476gp6sgg4gng0lh-swift-corefoundation ./store/hdyhkqam5j67s8gsi3r31im0pkslza1v-boehm-gc-8.0.4 ./store/hvm90rq4bnsavkfrsla1fragl709njp8-bzip2-1.0.6.0.2 ./store/inbfr9linaf5q8kzxk8pav63f7s7l8ag-gmp-6.2.1 ./store/j0phrp5xaph8vpb26z98dj2y32p140j2-gettext-0.21 ./store/k0l3xq0c2s3zbpr6cslw73c1vg1vz8d6-nghttp2-1.43.0-lib ./store/kmcjpbz1zmnj2j9ar4pw0092gcy2xszb-xz-5.2.5-bin ./store/kvwis4anbbiwzh0yxqdxan6qi6v818np-aws-c-common-0.5.5 ./store/kxa595w4fwnif6rhvgxyi2yql09a4fdg-libssh2-1.9.0 ./store/mlwrqs4cw1lfkl60vqn853wc9lhwql3h-openssl-1.1.1k ./store/p1j6yikxwqlmdk0i4vn38ddyjrsa3l29-libcxxabi-7.1.0 ./store/p9bxax4hb73q39jxgnb6s3hf8kqjbprl-gzip-1.10 ./store/p9kdlmil4qv7l9wqcbi2j8s3wfialmyj-curl-7.76.1 ./store/pzdk5aahggh76mb5f6r356c454sl4jsy-libsodium-1.0.18 ./store/q37cw6axgy1gzvhy4m7zxcr2xhczq5ch-libkrb5-1.18 ./store/r7a8rxds7hk3s1g0sbk2p8pxajnknz8h-bzip2-1.0.6.0.2-bin ./store/s0zcarc4gx4q3akd32wswschjirgx5hz-aws-c-event-stream-0.2.7 ./store/vv3k4s0gzkvdbirq5iiah15w920z6aql-zlib-1.2.11 ./store/w1rk8zw7f9nyhiirjyd3d4rnpsi86dnj-libiconv-50 ./store/wx596glivbyz7mqpzpyak9ws1czfac41-boehm-gc-8.0.4-dev ./store/x1plrrm1avccifbrm813f6q1klah1kw9-nghttp2-1.43.0-lib ./store/xclmrd79cq71q66wzgswc48r10c8q9as-aws-c-cal-0.4.5 ./store/xnp8s8rrbjrg7lk2l4vqbk1xph4xvpb6-libkrb5-1.18 ./store/xvch1jm88rp10viq43midy0z8a4njhfq-nss-cacert-3.66 ./store/z0q0z00cpy97wnk4f958fh2vq9yskkfn-sqlite-3.35.5 ./store/zpjbyi2lybbaqw9p8b2ryvqwhprybav0-brotli-1.0.9-lib ./store/zpnyx6aziw9vcpcsk2yia27vxw5cldh0-libssh2-1.9.0 ./store/zzf4m8w6flbb187rsfb0s04lj2mhs08i-curl-7.76.1 /nix/store/

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

      Alright! We have our first nix at /nix/store/6p6qwp73dgfkqhynmxrzbx1lcfgfpqal-nix-2.3.15

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

    $ sudo /nix/store/6p6qwp73dgfkqhynmxrzbx1lcfgfpqal-nix-2.3.15/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 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/zshrc /etc/zshrc.backup-before-nix

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


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

    $ sudo tee -a /etc/zshrc

extend your /etc/zshrc 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=/var/root /nix/store/6p6qwp73dgfkqhynmxrzbx1lcfgfpqal-nix-2.3.15/bin/nix-env -i /nix/store/6p6qwp73dgfkqhynmxrzbx1lcfgfpqal-nix-2.3.15

to installing a bootstrapping Nix in to the default Profile

installing 'nix-2.3.15'
Assertion failed: (S_ISLNK(st.st_mode)), function canonicalisePathMetaData, file src/libstore/local-store.cc, line 529.
/var/folders/r3/n7c7b7w15nd9h334q6m728l40000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.gLAf1vtL/unpack/nix-2.3.15-x86_64-darwin/install-multi-user: line 220:  3851 Abort trap: 6           sudo "$@"

---- oh no! --------------------------------------------------------------------
Jeeze, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.

:(
@ghost ghost added the bug label Aug 25, 2021
@domenkozar domenkozar added the macos Nix on macOS, aka OS X, aka darwin label Aug 25, 2021
@domenkozar
Copy link
Member

Where are you installing to? Something unusual about the setup?

@matthewbauer
Copy link
Member

I think it's the same thing as #4779. Can happen when the Nix store is on an external disk.

@ghost
Copy link
Author

ghost commented Aug 26, 2021

@domenkozar @matthewbauer
Yes, external disk.
But I'm just trying it out, I'll go back to the internal disk.

@ghost
Copy link
Author

ghost commented Aug 26, 2021

@domenkozar @matthewbauer
Yes, external disk.
But I'm just trying it out, I'll go back to the internal disk.

The internal disk worked and I won't actually use the external disk, should I close it or keep it?

@ghost ghost closed this as completed Aug 27, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug macos Nix on macOS, aka OS X, aka darwin
Projects
None yet
Development

No branches or pull requests

2 participants