I use nixUnstable 1.12pre5849_74f75c85 on macOS. After upgrading to macOS 10.13.4 Developer Beta, nix-env and nix-channel fail:
> nix-env -f '<nixpkgs>' -iA hello
installing 'hello-2.10'
these paths will be fetched (0.02 MiB download, 0.07 MiB unpacked):
/nix/store/85ygr5446b0w3isdq6amda630jm6qnil-hello-2.10
copying path '/nix/store/85ygr5446b0w3isdq6amda630jm6qnil-hello-2.10' from 'https://cache.nixos.org'...
error: cannot kill processes for uid '30001': failed due to signal 9 (Killed: 9)
> nix-channel --update
these derivations will be built:
/nix/store/fi7b6lvrilm4n16m6m4104v3c149l4ak-darwin.drv
error: cannot kill processes for uid '30001': failed due to signal 9 (Killed: 9)
error: program '/nix/store/7nwlzkdni9xh7r9jawc9v1xgczd1685a-nix-unstable-1.12pre5849_74f75c85/bin/nix-build' failed with exit code 1
md5-87d3e06ba45fc99b30a8c59f620db0b6
> nix-build '<nixpkgs>' -A hello
these paths will be fetched (0.02 MiB download, 0.07 MiB unpacked):
/nix/store/85ygr5446b0w3isdq6amda630jm6qnil-hello-2.10
copying path '/nix/store/85ygr5446b0w3isdq6amda630jm6qnil-hello-2.10' from 'https://cache.nixos.org'...
/nix/store/85ygr5446b0w3isdq6amda630jm6qnil-hello-2.10
EDIT: Not fine. The other build failed with the same message.
Any idea to solve this problem?
Didn't we have the same issues with 10.3.0/1? No again apple :(
What's the output of these commands?
dscl . -read /Groups/nixbld
dscl . -read /Users/nixbld1
> dscl . -read /Groups/nixbld
AppleMetaNodeLocation: /Local/Default
GeneratedUID: 17DBAB47-1A86-4090-BCE4-CF69D97E3ABF
GroupMembers: 6317F1DC-F2E9-4651-9899-0E16740EA539 D2EE8AD4-9BCF-4624-91BF-67EC0D9A5BCB 69011C00-F1A6-4933-A587-9829DAA2D771 86BA4B69-0457-426B-9D92-A44DA7522AAE 211D8EB3-8CC6-4C79-9B71-20DBD0D2B705 1FDCD371-259B-408F-A583-D79A23E7FF38 2133E557-208A-4C40-B92D-A365403DE9B2 D51C2C02-FA89-4846-AD47-236F4BC2C288 372CF71E-DF9E-4987-810A-2A192B7A692E A9D7DFE4-C338-4123-A164-2FC159E008EF CDFA0A71-888F-4830-8927-831BA531192A 6DEF7ED1-1CF1-466B-9704-C104321D6E38 D553F561-21FD-4EDB-BC59-EAF819447E44 A8557E84-50FB-46E4-966F-F589061DF7E4 69E338AD-FBEC-4FD8-8D45-2CF5D25A0417 845F94A8-8483-489C-B2E8-7B2BDB83580F 615A55D3-FDDF-489F-BD70-0BC5A5C4D48A 7EAED800-0CA4-48B8-85A6-D197813C272D 410F7539-78C3-4461-BCEB-D093D6B23E3E 08B18D3D-AEB8-459F-A160-F55915749CE3
GroupMembership: nixbld1 nixbld2 nixbld3 nixbld4 nixbld5 nixbld6 nixbld7 nixbld8 nixbld9 nixbld10
PrimaryGroupID: 30000
RealName:
Nix build group for nix-daemon
RecordName: nixbld
RecordType: dsRecTypeStandard:Groups
> dscl . -read /Users/nixbld1
dsAttrTypeNative:_writers_AvatarRepresentation: nixbld1
dsAttrTypeNative:_writers_hint: nixbld1
dsAttrTypeNative:_writers_jpegphoto: nixbld1
dsAttrTypeNative:_writers_passwd: nixbld1
dsAttrTypeNative:_writers_picture: nixbld1
dsAttrTypeNative:_writers_unlockOptions: nixbld1
dsAttrTypeNative:_writers_UserCertificate: nixbld1
dsAttrTypeNative:accountPolicyData:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>creationTime</key>
<real>1500176502.4207699</real>
<key>failedLoginCount</key>
<integer>0</integer>
<key>failedLoginTimestamp</key>
<integer>0</integer>
</dict>
</plist>
dsAttrTypeNative:AvatarRepresentation:
dsAttrTypeNative:IsHidden: 1
dsAttrTypeNative:MigratedAccount: Migrated
dsAttrTypeNative:PrimaryGroupId: 30000
dsAttrTypeNative:record_daemon_version: 4840000
dsAttrTypeNative:unlockOptions: 0
AppleMetaNodeLocation: /Local/Default
AuthenticationHint:
GeneratedUID: CDFA0A71-888F-4830-8927-831BA531192A
JPEGPhoto: ...
NFSHomeDirectory: /var/empty
Password: ********
Picture:
/Library/User Pictures/Flowers/Red Rose.tif
PrimaryGroupID: 30000
RealName:
Nix build user 1
RecordName: nixbld1
RecordType: dsRecTypeStandard:Users
UniqueID: 30001
UserShell: /sbin/nologin
That looks ok, there must be something weird with the syscall again.
I filed a bug with them, and think it'll get addressed. I'll update as I learn more.
Anyone tried this with 10.13.4 beta 2?
I've just upgraded to beta 2. Still have the same problem.
@mnacamura Have you found a workaround already? Also stuck with the same problem
@mpscholten Not yet. I'm waiting for Apple's fix. For the meantime I switched to single-user mode, which does not suffer from this problem.
Thanks for the tip. Single-user mode is a good work around so far 馃憤
I did an update to 10.13.4 beta 3 and nix-channel --update went through fine. Seems to be fixed now.
I upgraded to beta 3 too and succeeded in a clean installation of multi-user Nix.
I think we can closed this now.
Most helpful comment
I did an update to 10.13.4 beta 3 and nix-channel --update went through fine. Seems to be fixed now.