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

Mac OS installer script fails #4779

Open
kelmi opened this issue May 5, 2021 · 16 comments
Open

Mac OS installer script fails #4779

kelmi opened this issue May 5, 2021 · 16 comments
Labels
bug macos Nix on macOS, aka OS X, aka darwin stale

Comments

@kelmi
Copy link

kelmi commented May 5, 2021

Mac OS installer script fails, below is the whole output. Doing this on an EC2 Mac instance.

Error:
installing 'nix-2.3.10'
Assertion failed: (S_ISLNK(st.st_mode)), function canonicalisePathMetaData, file src/libstore/local-store.cc, line 529.
/var/folders/_t/v1lkmtk52nb2_46gs28jf8xc0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.gKniansM/unpack/nix-2.3.10-x86_64-darwin/install-multi-user: line 216: 42201 Abort trap: 6 sudo "$@"

Full output:

ec2-user@ip-10-0-134-96 ~ % ./nixinstall.sh --daemon --darwin-use-unencrypted-nix-store-volume
downloading Nix 2.3.10 binary tarball for x86_64-darwin from 'https://releases.nixos.org/nix/nix-2.3.10/nix-2.3.10-x86_64-darwin.tar.xz' to '/var/folders/_t/v1lkmtk52nb2_46gs28jf8xc0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.gKniansM'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 26.6M 100 26.6M 0 0 71.6M 0 --:--:-- --:--:-- --:--:-- 71.4M
Note: a multi-user installation is possible. See https://nixos.org/nix/manual/#sect-multi-user-installation
Creating volume and mountpoint /nix.

 ------------------------------------------------------------------ 
| This installer will create a volume for the nix store and        |
| configure it to mount at /nix.  Follow these steps to uninstall. |
 ------------------------------------------------------------------ 
  1. Remove the entry from fstab using 'sudo vifs'
  2. Destroy the data volume using 'diskutil apfs deleteVolume'
  3. Remove the 'nix' line from /etc/synthetic.conf or the file

Using existing 'Nix Store' volume
Switching to the Daemon-based Installer
Welcome to the Multi-User Nix Installation

This installation tool will set up your computer with the Nix package
manager. This will happen in a few stages:

  1. Make sure your computer doesn't already have Nix. If it does, I
    will show you instructions on how to clean up your old one.

  2. Show you what we are going to install and where. Then we will ask
    if you are ready to continue.

  3. Create the system users and groups that the Nix daemon uses to run
    builds.

  4. Perform the basic installation of the Nix files daemon.

  5. Configure your shell to import special Nix Profile files, so you
    can use Nix.

  6. Start the Nix daemon.

Would you like to see a more detailed list of what we will do?
[y/n] n

---- let's talk about sudo -----------------------------------------------------
This script is going to call sudo a lot. Every time we do, it'll
output exactly what it'll do, and why.

Just like this:

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

$ sudo echo

to demonstrate how our sudo prompts look

This might look scary, but everything can be undone by running just a
few commands. We used to ask you to confirm each time sudo ran, but it
was too many times. Instead, I'll just ask you this one time:

Can we use sudo?
[y/n] y

Yay! Thanks! Let's get going!

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

$ sudo test -e /var/root/.nix-defexpr

making sure that /var/root/.nix-defexpr doesn't exist

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

$ sudo test -e /var/root/.nix-channels

making sure that /var/root/.nix-channels doesn't exist

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

$ sudo test -e /var/root/.nix-profile

making sure that /var/root/.nix-profile doesn't exist

---- Nix config report ---------------------------------------------------------
Temp Dir: /var/folders/_t/v1lkmtk52nb2_46gs28jf8xc0000gn/T/tmp.XXXXXXXXXX.BNFZAIrn
Nix Root: /nix
Build Users: 32
Build Group ID: 30000
Build Group Name: nixbld

build users:
Username: UID
nixbld1: 30001
nixbld2: 30002
nixbld3: 30003
nixbld4: 30004
nixbld5: 30005
nixbld6: 30006
nixbld7: 30007
nixbld8: 30008
nixbld9: 30009
nixbld10: 30010
nixbld11: 30011
nixbld12: 30012
nixbld13: 30013
nixbld14: 30014
nixbld15: 30015
nixbld16: 30016
nixbld17: 30017
nixbld18: 30018
nixbld19: 30019
nixbld20: 30020
nixbld21: 30021
nixbld22: 30022
nixbld23: 30023
nixbld24: 30024
nixbld25: 30025
nixbld26: 30026
nixbld27: 30027
nixbld28: 30028
nixbld29: 30029
nixbld30: 30030
nixbld31: 30031
nixbld32: 30032

Ready to continue?
[y/n] y

~~> Setting up the build group nixbld

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

$ sudo /usr/sbin/dseditgroup -o create -r Nix build group for nix-daemon -i 30000 nixbld

Create the Nix build group, nixbld

        Created:	Yes

~~> Setting up the build user nixbld1

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

$ sudo /usr/bin/dscl . create /Users/nixbld1 UniqueID 30001

Creating the Nix build user (#1), nixbld1

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld1 IsHidden 1

in order to make nixbld1 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld1 NFSHomeDirectory /var/empty

in order to give nixbld1 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 1

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

$ sudo /usr/bin/dscl . -create /Users/nixbld1 UserShell /sbin/nologin

in order to give nixbld1 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld1 nixbld

Add nixbld1 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld1 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld2

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

$ sudo /usr/bin/dscl . create /Users/nixbld2 UniqueID 30002

Creating the Nix build user (#2), nixbld2

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld2 IsHidden 1

in order to make nixbld2 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld2 NFSHomeDirectory /var/empty

in order to give nixbld2 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 2

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

$ sudo /usr/bin/dscl . -create /Users/nixbld2 UserShell /sbin/nologin

in order to give nixbld2 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld2 nixbld

Add nixbld2 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld2 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld3

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

$ sudo /usr/bin/dscl . create /Users/nixbld3 UniqueID 30003

Creating the Nix build user (#3), nixbld3

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld3 IsHidden 1

in order to make nixbld3 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld3 NFSHomeDirectory /var/empty

in order to give nixbld3 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 3

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

$ sudo /usr/bin/dscl . -create /Users/nixbld3 UserShell /sbin/nologin

in order to give nixbld3 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld3 nixbld

Add nixbld3 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld3 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld4

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

$ sudo /usr/bin/dscl . create /Users/nixbld4 UniqueID 30004

Creating the Nix build user (#4), nixbld4

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld4 IsHidden 1

in order to make nixbld4 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld4 NFSHomeDirectory /var/empty

in order to give nixbld4 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 4

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

$ sudo /usr/bin/dscl . -create /Users/nixbld4 UserShell /sbin/nologin

in order to give nixbld4 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld4 nixbld

Add nixbld4 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld4 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld5

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

$ sudo /usr/bin/dscl . create /Users/nixbld5 UniqueID 30005

Creating the Nix build user (#5), nixbld5

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld5 IsHidden 1

in order to make nixbld5 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld5 NFSHomeDirectory /var/empty

in order to give nixbld5 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 5

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

$ sudo /usr/bin/dscl . -create /Users/nixbld5 UserShell /sbin/nologin

in order to give nixbld5 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld5 nixbld

Add nixbld5 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld5 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld6

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

$ sudo /usr/bin/dscl . create /Users/nixbld6 UniqueID 30006

Creating the Nix build user (#6), nixbld6

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld6 IsHidden 1

in order to make nixbld6 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld6 NFSHomeDirectory /var/empty

in order to give nixbld6 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 6

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

$ sudo /usr/bin/dscl . -create /Users/nixbld6 UserShell /sbin/nologin

in order to give nixbld6 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld6 nixbld

Add nixbld6 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld6 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld7

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

$ sudo /usr/bin/dscl . create /Users/nixbld7 UniqueID 30007

Creating the Nix build user (#7), nixbld7

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld7 IsHidden 1

in order to make nixbld7 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld7 NFSHomeDirectory /var/empty

in order to give nixbld7 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 7

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

$ sudo /usr/bin/dscl . -create /Users/nixbld7 UserShell /sbin/nologin

in order to give nixbld7 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld7 nixbld

Add nixbld7 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld7 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld8

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

$ sudo /usr/bin/dscl . create /Users/nixbld8 UniqueID 30008

Creating the Nix build user (#8), nixbld8

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld8 IsHidden 1

in order to make nixbld8 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld8 NFSHomeDirectory /var/empty

in order to give nixbld8 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 8

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

$ sudo /usr/bin/dscl . -create /Users/nixbld8 UserShell /sbin/nologin

in order to give nixbld8 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld8 nixbld

Add nixbld8 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld8 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld9

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

$ sudo /usr/bin/dscl . create /Users/nixbld9 UniqueID 30009

Creating the Nix build user (#9), nixbld9

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld9 IsHidden 1

in order to make nixbld9 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld9 NFSHomeDirectory /var/empty

in order to give nixbld9 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 9

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

$ sudo /usr/bin/dscl . -create /Users/nixbld9 UserShell /sbin/nologin

in order to give nixbld9 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld9 nixbld

Add nixbld9 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld9 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld10

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

$ sudo /usr/bin/dscl . create /Users/nixbld10 UniqueID 30010

Creating the Nix build user (#10), nixbld10

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld10 IsHidden 1

in order to make nixbld10 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld10 NFSHomeDirectory /var/empty

in order to give nixbld10 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 10

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

$ sudo /usr/bin/dscl . -create /Users/nixbld10 UserShell /sbin/nologin

in order to give nixbld10 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld10 nixbld

Add nixbld10 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld10 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld11

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

$ sudo /usr/bin/dscl . create /Users/nixbld11 UniqueID 30011

Creating the Nix build user (#11), nixbld11

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld11 IsHidden 1

in order to make nixbld11 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld11 NFSHomeDirectory /var/empty

in order to give nixbld11 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 11

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

$ sudo /usr/bin/dscl . -create /Users/nixbld11 UserShell /sbin/nologin

in order to give nixbld11 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld11 nixbld

Add nixbld11 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld11 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld12

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

$ sudo /usr/bin/dscl . create /Users/nixbld12 UniqueID 30012

Creating the Nix build user (#12), nixbld12

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld12 IsHidden 1

in order to make nixbld12 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld12 NFSHomeDirectory /var/empty

in order to give nixbld12 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 12

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

$ sudo /usr/bin/dscl . -create /Users/nixbld12 UserShell /sbin/nologin

in order to give nixbld12 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld12 nixbld

Add nixbld12 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld12 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld13

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

$ sudo /usr/bin/dscl . create /Users/nixbld13 UniqueID 30013

Creating the Nix build user (#13), nixbld13

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld13 IsHidden 1

in order to make nixbld13 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld13 NFSHomeDirectory /var/empty

in order to give nixbld13 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 13

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

$ sudo /usr/bin/dscl . -create /Users/nixbld13 UserShell /sbin/nologin

in order to give nixbld13 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld13 nixbld

Add nixbld13 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld13 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld14

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

$ sudo /usr/bin/dscl . create /Users/nixbld14 UniqueID 30014

Creating the Nix build user (#14), nixbld14

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld14 IsHidden 1

in order to make nixbld14 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld14 NFSHomeDirectory /var/empty

in order to give nixbld14 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 14

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

$ sudo /usr/bin/dscl . -create /Users/nixbld14 UserShell /sbin/nologin

in order to give nixbld14 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld14 nixbld

Add nixbld14 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld14 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld15

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

$ sudo /usr/bin/dscl . create /Users/nixbld15 UniqueID 30015

Creating the Nix build user (#15), nixbld15

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld15 IsHidden 1

in order to make nixbld15 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld15 NFSHomeDirectory /var/empty

in order to give nixbld15 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 15

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

$ sudo /usr/bin/dscl . -create /Users/nixbld15 UserShell /sbin/nologin

in order to give nixbld15 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld15 nixbld

Add nixbld15 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld15 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld16

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

$ sudo /usr/bin/dscl . create /Users/nixbld16 UniqueID 30016

Creating the Nix build user (#16), nixbld16

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld16 IsHidden 1

in order to make nixbld16 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld16 NFSHomeDirectory /var/empty

in order to give nixbld16 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 16

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

$ sudo /usr/bin/dscl . -create /Users/nixbld16 UserShell /sbin/nologin

in order to give nixbld16 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld16 nixbld

Add nixbld16 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld16 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld17

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

$ sudo /usr/bin/dscl . create /Users/nixbld17 UniqueID 30017

Creating the Nix build user (#17), nixbld17

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld17 IsHidden 1

in order to make nixbld17 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld17 NFSHomeDirectory /var/empty

in order to give nixbld17 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 17

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

$ sudo /usr/bin/dscl . -create /Users/nixbld17 UserShell /sbin/nologin

in order to give nixbld17 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld17 nixbld

Add nixbld17 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld17 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld18

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

$ sudo /usr/bin/dscl . create /Users/nixbld18 UniqueID 30018

Creating the Nix build user (#18), nixbld18

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld18 IsHidden 1

in order to make nixbld18 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld18 NFSHomeDirectory /var/empty

in order to give nixbld18 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 18

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

$ sudo /usr/bin/dscl . -create /Users/nixbld18 UserShell /sbin/nologin

in order to give nixbld18 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld18 nixbld

Add nixbld18 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld18 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld19

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

$ sudo /usr/bin/dscl . create /Users/nixbld19 UniqueID 30019

Creating the Nix build user (#19), nixbld19

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld19 IsHidden 1

in order to make nixbld19 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld19 NFSHomeDirectory /var/empty

in order to give nixbld19 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 19

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

$ sudo /usr/bin/dscl . -create /Users/nixbld19 UserShell /sbin/nologin

in order to give nixbld19 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld19 nixbld

Add nixbld19 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld19 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld20

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

$ sudo /usr/bin/dscl . create /Users/nixbld20 UniqueID 30020

Creating the Nix build user (#20), nixbld20

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld20 IsHidden 1

in order to make nixbld20 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld20 NFSHomeDirectory /var/empty

in order to give nixbld20 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 20

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

$ sudo /usr/bin/dscl . -create /Users/nixbld20 UserShell /sbin/nologin

in order to give nixbld20 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld20 nixbld

Add nixbld20 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld20 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld21

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

$ sudo /usr/bin/dscl . create /Users/nixbld21 UniqueID 30021

Creating the Nix build user (#21), nixbld21

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld21 IsHidden 1

in order to make nixbld21 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld21 NFSHomeDirectory /var/empty

in order to give nixbld21 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 21

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

$ sudo /usr/bin/dscl . -create /Users/nixbld21 UserShell /sbin/nologin

in order to give nixbld21 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld21 nixbld

Add nixbld21 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld21 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld22

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

$ sudo /usr/bin/dscl . create /Users/nixbld22 UniqueID 30022

Creating the Nix build user (#22), nixbld22

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld22 IsHidden 1

in order to make nixbld22 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld22 NFSHomeDirectory /var/empty

in order to give nixbld22 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 22

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

$ sudo /usr/bin/dscl . -create /Users/nixbld22 UserShell /sbin/nologin

in order to give nixbld22 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld22 nixbld

Add nixbld22 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld22 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld23

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

$ sudo /usr/bin/dscl . create /Users/nixbld23 UniqueID 30023

Creating the Nix build user (#23), nixbld23

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld23 IsHidden 1

in order to make nixbld23 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld23 NFSHomeDirectory /var/empty

in order to give nixbld23 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 23

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

$ sudo /usr/bin/dscl . -create /Users/nixbld23 UserShell /sbin/nologin

in order to give nixbld23 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld23 nixbld

Add nixbld23 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld23 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld24

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

$ sudo /usr/bin/dscl . create /Users/nixbld24 UniqueID 30024

Creating the Nix build user (#24), nixbld24

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld24 IsHidden 1

in order to make nixbld24 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld24 NFSHomeDirectory /var/empty

in order to give nixbld24 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 24

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

$ sudo /usr/bin/dscl . -create /Users/nixbld24 UserShell /sbin/nologin

in order to give nixbld24 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld24 nixbld

Add nixbld24 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld24 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld25

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

$ sudo /usr/bin/dscl . create /Users/nixbld25 UniqueID 30025

Creating the Nix build user (#25), nixbld25

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld25 IsHidden 1

in order to make nixbld25 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld25 NFSHomeDirectory /var/empty

in order to give nixbld25 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 25

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

$ sudo /usr/bin/dscl . -create /Users/nixbld25 UserShell /sbin/nologin

in order to give nixbld25 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld25 nixbld

Add nixbld25 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld25 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld26

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

$ sudo /usr/bin/dscl . create /Users/nixbld26 UniqueID 30026

Creating the Nix build user (#26), nixbld26

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld26 IsHidden 1

in order to make nixbld26 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld26 NFSHomeDirectory /var/empty

in order to give nixbld26 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 26

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

$ sudo /usr/bin/dscl . -create /Users/nixbld26 UserShell /sbin/nologin

in order to give nixbld26 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld26 nixbld

Add nixbld26 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld26 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld27

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

$ sudo /usr/bin/dscl . create /Users/nixbld27 UniqueID 30027

Creating the Nix build user (#27), nixbld27

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld27 IsHidden 1

in order to make nixbld27 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld27 NFSHomeDirectory /var/empty

in order to give nixbld27 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 27

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

$ sudo /usr/bin/dscl . -create /Users/nixbld27 UserShell /sbin/nologin

in order to give nixbld27 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld27 nixbld

Add nixbld27 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld27 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld28

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

$ sudo /usr/bin/dscl . create /Users/nixbld28 UniqueID 30028

Creating the Nix build user (#28), nixbld28

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld28 IsHidden 1

in order to make nixbld28 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld28 NFSHomeDirectory /var/empty

in order to give nixbld28 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 28

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

$ sudo /usr/bin/dscl . -create /Users/nixbld28 UserShell /sbin/nologin

in order to give nixbld28 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld28 nixbld

Add nixbld28 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld28 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld29

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

$ sudo /usr/bin/dscl . create /Users/nixbld29 UniqueID 30029

Creating the Nix build user (#29), nixbld29

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld29 IsHidden 1

in order to make nixbld29 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld29 NFSHomeDirectory /var/empty

in order to give nixbld29 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 29

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

$ sudo /usr/bin/dscl . -create /Users/nixbld29 UserShell /sbin/nologin

in order to give nixbld29 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld29 nixbld

Add nixbld29 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld29 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld30

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

$ sudo /usr/bin/dscl . create /Users/nixbld30 UniqueID 30030

Creating the Nix build user (#30), nixbld30

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld30 IsHidden 1

in order to make nixbld30 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld30 NFSHomeDirectory /var/empty

in order to give nixbld30 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 30

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

$ sudo /usr/bin/dscl . -create /Users/nixbld30 UserShell /sbin/nologin

in order to give nixbld30 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld30 nixbld

Add nixbld30 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld30 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld31

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

$ sudo /usr/bin/dscl . create /Users/nixbld31 UniqueID 30031

Creating the Nix build user (#31), nixbld31

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld31 IsHidden 1

in order to make nixbld31 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld31 NFSHomeDirectory /var/empty

in order to give nixbld31 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 31

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

$ sudo /usr/bin/dscl . -create /Users/nixbld31 UserShell /sbin/nologin

in order to give nixbld31 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld31 nixbld

Add nixbld31 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld31 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

PrimaryGroupID:	30000

~~> Setting up the build user nixbld32

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

$ sudo /usr/bin/dscl . create /Users/nixbld32 UniqueID 30032

Creating the Nix build user (#32), nixbld32

       Created:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld32 IsHidden 1

in order to make nixbld32 a hidden user

        Hidden:	Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld32 NFSHomeDirectory /var/empty

in order to give nixbld32 a safe home directory

Home Directory:	/var/empty
          Note:	Nix build user 32

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

$ sudo /usr/bin/dscl . -create /Users/nixbld32 UserShell /sbin/nologin

in order to give nixbld32 a safe home directory

Logins Disabled: Yes

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

$ sudo /usr/sbin/dseditgroup -o edit -t user -a nixbld32 nixbld

Add nixbld32 to the nixbld group

Member of nixbld: Yes

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

$ sudo /usr/bin/dscl . -create /Users/nixbld32 PrimaryGroupID 30000

to let the nix daemon use this user for builds (this might seem redundant, but there are two concepts of group membership)

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/_t/v1lkmtk52nb2_46gs28jf8xc0000gn/T/tmp.XXXXXXXXXX.BNFZAIrn/.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/0572my2j1qa5xbx111vryhlch2wx37m2-libc++abi-7.1.0 ./store/05bqqkxmhnrza8hy3s6d3460cfkl6gnm-swift-corefoundation ./store/069nk4lbs1pywj69k9bs8bbxvywb9ysz-gettext-0.20.1 ./store/077d573n9s8i98gq6cwl5vx08wkq41vy-aws-checksums-0.1.5 ./store/1ld4c4ppnhjb0rfhqxz4rzy9hc8ws867-Libsystem-osx-10.12.6 ./store/2as4dq2l8dknv4kwd1gbf0bfyhs828dh-boehm-gc-8.0.4-dev ./store/2px8fis7yjly270afpb1svf4ad2h3i71-xz-5.2.4-bin ./store/4mnfw6l8gj6n3xj905agrpf8mv7lra9p-zlib-1.2.11 ./store/4sc9wk3a8rnxb9828ia7pyhvp8v22g9a-libkrb5-1.17 ./store/55vwqsmz2xkm4w25pv3xpp0zk1xkg03r-gzip-1.10 ./store/667p155sxcmsmagv980a99hmrl883a9z-editline-1.17.0 ./store/7i2wzfpncwqj5nzja8psr3jc7i4d6fyr-curl-7.70.0 ./store/7r1wkdq2b30qh6bdgm3ngs8kz9xmjk7p-brotli-1.0.7-lib ./store/823brfxz7w8dk67akyx7qdpv801a32h4-curl-7.70.0 ./store/8c98r6zlwn2d40qm7jnnrr2rdlqviszr-nix-2.3.10 ./store/9z6xzfncrmlazlzphdc0war2nsgg00m3-libkrb5-1.17 ./store/cj82jh3hivkja6m8k2srfx91nhvfzcf0-bzip2-1.0.6.0.1-bin ./store/dwdr1g0q08jni0qjr8jb8ql8cg94pfn6-xz-5.2.4 ./store/dwf8bhl5j7plrkmwzj69pzkbrgsghl1s-openssl-1.1.1g ./store/dxpsdv5jqkvzf95s2djihjrzgrqhwp6b-nss-cacert-3.49.2 ./store/fd9mcl9425p8gkdxvs577kkdrn4wm21i-libc++-7.1.0 ./store/fwh88624mr9sa9spq5d4s6h1hcx2h4s5-nghttp2-1.40.0-lib ./store/g03y19603xcnjy3ivyg542ak4zspx4ns-bash-4.4-p23 ./store/gvi6v3km5w3gsn66fg21w7d276l47zcy-openssl-1.1.1g ./store/h6i2vkdi4hqv2p8gpavvvc4zp56xsgv1-libiconv-osx-10.12.6 ./store/h85jxmx2p3982g8b5wlgm6pl40fdpj6s-bzip2-1.0.6.0.1 ./store/hg222lrawfg79yqplqypsfawnywsxhpr-ICU-osx-10.10.5 ./store/i1cg0wfns9j4lmfzvx5dz6rc436vs6ms-libsodium-1.0.18 ./store/ixkqglgqmjzdar960z9y3nfwgv5dd7db-boost-1.69.0 ./store/lkfjy9vk3css0k0lf9xd54mv15i1qq6x-coreutils-8.31 ./store/lzfb5qx283r1vczknhrxm9ayz5mknsxq-gnutar-1.32 ./store/rs7kp0cxd7rqzszf562gql9ggmp7d5q5-aws-sdk-cpp-1.7.90 ./store/spkrx68m827qnrfz3p0nkpmbnx5m86x1-aws-c-event-stream-0.1.1 ./store/w9ab2sx8cpaiygrdrn9nv66zhqwwrscc-libssh2-1.9.0 ./store/wwmaaf2nk5sm2rq4pmmrazqzak80k13c-gmp-6.2.0 ./store/x51xhnd54ylrv4mqlyp0ry4gwzgx3dbm-libssh2-1.9.0 ./store/xgi2mkgz348fim0mzqbrlzgws7j0ln63-icu4c-64.2 ./store/y8cm9fyip37p95gq7h8047s2d92z1b9c-libxml2-2.9.10 ./store/z3hz1g9qx93cgfw1jq7yx82zx7y7sbzl-nghttp2-1.40.0-lib ./store/z4knmipj0v5mv6i4rqda5z6xnmig8nna-boehm-gc-8.0.4 ./store/z7ps1993hpffy5kkn5qm62h93vw1r02z-aws-c-common-0.3.11 ./store/zr7m1ijmmpfdsclf7970sdzp24qf85fv-sqlite-3.32.3 /nix/store/

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

  Alright! We have our first nix at /nix/store/8c98r6zlwn2d40qm7jnnrr2rdlqviszr-nix-2.3.10

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

$ sudo /nix/store/8c98r6zlwn2d40qm7jnnrr2rdlqviszr-nix-2.3.10/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/8c98r6zlwn2d40qm7jnnrr2rdlqviszr-nix-2.3.10/bin/nix-env -i /nix/store/8c98r6zlwn2d40qm7jnnrr2rdlqviszr-nix-2.3.10

to installing a bootstrapping Nix in to the default Profile

installing 'nix-2.3.10'
Assertion failed: (S_ISLNK(st.st_mode)), function canonicalisePathMetaData, file src/libstore/local-store.cc, line 529.
/var/folders/_t/v1lkmtk52nb2_46gs28jf8xc0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.gKniansM/unpack/nix-2.3.10-x86_64-darwin/install-multi-user: line 216: 42201 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.

@kelmi kelmi added the bug label May 5, 2021
@domenkozar domenkozar added the macos Nix on macOS, aka OS X, aka darwin label May 7, 2021
@abathur
Copy link
Member

abathur commented May 10, 2021

Just basic dot-connecting:

  1. We've had reports of a few hard-to-diagnose errors on macOS + EC2 (see MacOS /nix unmount when reboot. /nix ownership change to root #4640 for an example and some troubleshooting/links), but I don't recall having heard of anything like this one.

  2. The actual error appears to be at at https://github.com/NixOS/nix/blob/2.3.10/src/libstore/local-store.cc#L529

  3. This function (but not this line) has changed a little in master since 2.3.10:

    @@ -518,16 +585,14 @@ static void canonicalisePathMetaData_(const Path & path, uid_t fromUid, InodesSe
     void canonicalisePathMetaData(const Path & path, uid_t fromUid, InodesSeen & inodesSeen)
     {
         canonicalisePathMetaData_(path, fromUid, inodesSeen);
     
         /* On platforms that don't have lchown(), the top-level path can't
            be a symlink, since we can't change its ownership. */
    -    struct stat st;
    -    if (lstat(path.c_str(), &st))
    -        throw SysError(format("getting attributes of path '%1%'") % path);
    +    auto st = lstat(path);
     
         if (st.st_uid != geteuid()) {
             assert(S_ISLNK(st.st_mode));
    -        throw Error(format("wrong ownership of top-level store path '%1%'") % path);
    +        throw Error("wrong ownership of top-level store path '%1%'", path);
         }
     }

@hborders
Copy link

I'm also trying to install nix in multi-user mode on a macOS EC2 machine, and I get this error.

@hborders
Copy link

I have easily reproducible AMIs created, and I'm happy to run commands to help debug this.

@abathur
Copy link
Member

abathur commented Jul 28, 2021

I have easily reproducible AMIs created, and I'm happy to run commands to help debug this.

@hborders It would be nice to track this down. We may need to try to find one or people with more knowledge of macOS or Nix internals than I have (Are you on Matrix?)

I was already feeling a bit out of my depth in previous attempts like #4640, but I had a few hunches. We ultimately failed to validate any of those, leaving me ~out of ideas for clean solutions. You might be able to start with some of the steps in that thread to double-validate them.

@hborders
Copy link

hborders commented Jul 28, 2021

I'm running on macOS 11.4, and I didn't encounter the #4640 problem. I'd rebooted my once since installing nix in single-user mode, and /nix is still owned by ec2-user:

% ls -la /nix
total 0
drwxrwxr-x     7 ec2-user  staff     224 Jul 27 20:22 .
drwxr-xr-x    20 root      wheel     640 Jan  1  2020 ..
drwx------     4 ec2-user  staff     128 Jul 27 20:22 .Spotlight-V100
d-wx--x--t     3 ec2-user  staff      96 Jul 28 16:42 .Trashes
drwx------    37 ec2-user  staff    1184 Jul 27 20:23 .fseventsd
drwxr-xr-x  3556 ec2-user  staff  113792 Jul 28 18:28 store
drwxr-xr-x     4 ec2-user  staff     128 Jul 27 20:22 var

@hborders
Copy link

Are you on Matrix?

I'm not on Matrix. I don't know what Matrix is.

@abathur
Copy link
Member

abathur commented Jul 29, 2021

Are you on Matrix?

I'm not on Matrix. I don't know what Matrix is.

The current chat platform most of the community on. Not required, just curious. I've already linked this issue a few times in some rooms on Matrix to see if I can find someone with a little more knowledge here. Will keep trying.

@hborders
Copy link

If it's helpful, I'm happy to set up some time and debug things with you live over your preferred medium. I can join matrix if necessary. This isn't blocking me anymore since it's acceptable to run in single-user mode, but I'd like to get multi-user mode working properly.

@abathur
Copy link
Member

abathur commented Jul 29, 2021

I did stumble over one old thread, #3156, that petered out without a clear indication from any of the existing reporters about whether the potential fix indeed worked for them. Can you try this out?

I don't mind doing it this way, or live (evenings CDT or weekend). I'm mostly looking for others because I don't feel like I have any new ideas here, and don't have much lower-layer knowledge at this (Nix | CPP | macOS) junction to reason/debug from. But, for now we can at least pull on the thread from 3156--I'd forgotten all about that, and it may lead to a solution.

@abathur
Copy link
Member

abathur commented Jul 29, 2021

Ah. Okay. Pulling on that thread a little myself led me back around to some comments I left in the installer: https://github.com/NixOS/nix/blob/master/scripts/create-darwin-volume.sh#L445-L477

This makes me wonder if you'd be seeing this problem at all with an installer built from master. There will hopefully be a genuine release from master in the near future, but for now you should be able to try out https://github.com/numtide/nix-unstable-installer.

@matthewbauer
Copy link
Member

I don't think ec2 can support multi-user properly. It doesn't look like these machines support groups / users like you'd expect. For instance:

ec2-user@ip-10-1-0-41 /nix % ls -l /nix
total 0
drwxrwxr-t 8760 ec2-user staff 280320 Aug 24 03:57 store
drwxr-xr-x    4 ec2-user staff    128 Aug 23 21:45 var
ec2-user@ip-10-1-0-41 /nix % sudo chgrp nixbld /nix/store
ec2-user@ip-10-1-0-41 /nix % ls -l /nix
total 0
drwxrwxr-t 8760 ec2-user staff 280320 Aug 24 03:57 store
drwxr-xr-x    4 ec2-user staff    128 Aug 23 21:45 var

Same thing with chown too.

@abathur
Copy link
Member

abathur commented Aug 24, 2021

@matthewbauer Hmm. That might track back around to the enable ownership stuff in #3156

Not sure if you are set up to pull on this thread? Iirc people were struggling to find a less-painful workaround than managing to gain gui access and manually adding a permission (full disk I guess?)

I am a little fuzzy on details (and too far down a well refactoring something to put down all of my spinning plates...) but I've had a few exchanges on gh and back on IRC with people who ran into this, so there should be breadcrumbs.

@matthewbauer
Copy link
Member

@abathur

Nice! I did not see that. I'll try making an installer which sets enableOwnership if GlobalPermissionsEnabled==false.

@matthewbauer
Copy link
Member

PR: #5172

@abathur
Copy link
Member

abathur commented Nov 4, 2021

I think this can be closed, since #5172 has been merged and now released.

@louwers
Copy link

louwers commented Jan 26, 2023

Still a problem on macOS EC2 instances.

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 stale
Projects
None yet
Development

No branches or pull requests

6 participants