Open oleg-smith opened 3 days ago
Hello,
I had nix installed on MacOS 14.6.1 using official installer.
I manually deleted it as per instruction
Now I'm trying to install nix using nix-installer and getting the error. Could you please suggest a way to fix it?
INFO Step: Unload, then recreate a `launchctl` plist to put Nix into your PATH
ERROR
0: Install failure
1: Error executing action
2: Action `create_nix_hook_service` errored
3: Failed to execute command with status 5 `"launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"`, stdout:
stderr: Boot-out failed: 5: Input/output error
3:
Location:
src/cli/subcommand/install.rs:253
Planner: macos (with default settings)
Planned actions:
* Delete file `/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist`
* Remove the Nix configuration from zsh's non-login shells
* Unconfigure the shell profiles
* Remove the Nix configuration in `/etc/nix/nix.conf`
* Unset the default Nix profile
* Remove time machine exclusions
* Remove Nix users and group
* Remove the directory tree in `/nix`
* Remove the APFS volume `Nix Store` on `disk3`
Proceed? ([Y]es/[n]o/[e]xplain): y
INFO Revert: Remove directory `/nix/temp-install-dir`
INFO Revert: Configure upstream Nix daemon service
INFO Revert: Unload, then recreate a `launchctl` plist to put Nix into your PATH
INFO Revert: Configuring zsh to support using Nix in non-interactive shells
INFO Revert: Configure Nix
INFO Revert: Configure Time Machine exclusions
INFO Revert: Create build users (UID 351-382) and group (GID 350)
INFO Revert: Provision Nix
INFO Revert: Create an encrypted APFS volume `Nix Store` for Nix on `disk3` and add it to `/etc/fstab` mounting on `/nix`
Error:
0: Multiple errors
Location:
src/cli/subcommand/install.rs:285
Error:
0: Action `create_nix_hook_service` errored
1: Remove file `/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist`
2: No such file or directory (os error 2)
Could you run the installer again with -vv
and see if anything changes?
It fails again and offers to revert. Reverting fails as well.
TRACE execute:execute:install:try_execute:execute:retry_bootout: Waiting for bootout to succeed retry_tokens=9 command="launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist" domain="system" service_name="systems.determinate.nix-installer.nix-hook" service_path="/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"
TRACE execute:execute:install:try_execute:execute:retry_bootout: Waiting for bootout to succeed retry_tokens=8 command="launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist" domain="system" service_name="systems.determinate.nix-installer.nix-hook" service_path="/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"
TRACE execute:execute:install:try_execute:execute:retry_bootout: Waiting for bootout to succeed retry_tokens=7 command="launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist" domain="system" service_name="systems.determinate.nix-installer.nix-hook" service_path="/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"
TRACE execute:execute:install:try_execute:execute:retry_bootout: Waiting for bootout to succeed retry_tokens=6 command="launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist" domain="system" service_name="systems.determinate.nix-installer.nix-hook" service_path="/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"
TRACE execute:execute:install:try_execute:execute:retry_bootout: Waiting for bootout to succeed retry_tokens=5 command="launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist" domain="system" service_name="systems.determinate.nix-installer.nix-hook" service_path="/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"
TRACE execute:execute:install:try_execute:execute:retry_bootout: Waiting for bootout to succeed retry_tokens=4 command="launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist" domain="system" service_name="systems.determinate.nix-installer.nix-hook" service_path="/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"
TRACE execute:execute:install:try_execute:execute:retry_bootout: Waiting for bootout to succeed retry_tokens=3 command="launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist" domain="system" service_name="systems.determinate.nix-installer.nix-hook" service_path="/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"
TRACE execute:execute:install:try_execute:execute:retry_bootout: Waiting for bootout to succeed retry_tokens=2 command="launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist" domain="system" service_name="systems.determinate.nix-installer.nix-hook" service_path="/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"
TRACE execute:execute:install:try_execute:execute:retry_bootout: Waiting for bootout to succeed retry_tokens=1 command="launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist" domain="system" service_name="systems.determinate.nix-installer.nix-hook" service_path="/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"
TRACE execute:execute:install:try_execute:execute:retry_bootout: Waiting for bootout to succeed retry_tokens=0 command="launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist" domain="system" service_name="systems.determinate.nix-installer.nix-hook" service_path="/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"
DEBUG execute:execute:install:send: Sending diagnostic to `https://install.determinate.systems/nix/diagnostic`
ERROR execute:execute:
0: Install failure
1: Error executing action
2: Action `create_nix_hook_service` errored
3: Failed to execute command with status 5 `"launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"`, stdout:
stderr: Boot-out failed: 5: Input/output error
3:
Location:
src/cli/subcommand/install.rs:253
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
0: nix_installer::cli::subcommand::install::execute
at src/cli/subcommand/install.rs:76
1: nix_installer::cli::execute
at src/cli/mod.rs:39
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
2: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
3: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
4: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
5: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
6: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
7: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
8: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
9: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
10: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
11: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
12: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
13: __mh_execute_header<unknown>
at <unknown source file>:<unknown line>
Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Consider reporting this error using this URL: https://github.com/DeterminateSystems/nix-installer/issues/new?title=%3Cautogenerated-issue%3E&body=%23%23+Error%0A%60%60%60%0AError%3A+%0A+++0%3A+Install+failure%0A+++1%3A+Error+executing+action%0A+++2%3A+Action+%60create_nix_hook_service%60+errored%0A+++3%3A+Failed+to+execute+command+with+status+5+%60%22launchctl%22+%22bootout%22+%22system%22+%22%2FLibrary%2FLaunchDaemons%2Fsystems.determinate.nix-installer.nix-hook.plist%22%60%2C+stdout%3A+%0A++++++stderr%3A+Boot-out+failed%3A+5%3A+Input%2Foutput+error%0A%0A%0A%60%60%60%0A%0A%23%23+Metadata%0A%7Ckey%7Cvalue%7C%0A%7C--%7C--%7C%0A%7C**version**%7C0.26.0%7C%0A%7C**os**%7Cmacos%7C%0A%7C**arch**%7Caarch64%7C%0A%0A%0A%23%23+SpanTrace%0A%0A%3Cdetails%3E%0A%0A%60%60%60%0ASpanTrace%3A%0A+++0%3A+nix_installer%3A%3Acli%3A%3Asubcommand%3A%3Ainstall%3A%3Aexecute%0A+++++++++++++at+src%2Fcli%2Fsubcommand%2Finstall.rs%3A76%0A+++1%3A+nix_installer%3A%3Acli%3A%3Aexecute%0A+++++++++++++at+src%2Fcli%2Fmod.rs%3A39%0A%60%60%60%0A%3C%2Fdetails%3E%0A%0A%23%23+Backtrace%0A%0A%3Cdetails%3E%0A%0A%60%60%60%0ABacktrace%3A%0A+++0%3A+__mh_execute_header%0A+++1%3A+__mh_execute_header%0A+++2%3A+__mh_execute_header%0A+++3%3A+__mh_execute_header%0A+++4%3A+__mh_execute_header%0A+++5%3A+__mh_execute_header%0A+++6%3A+__mh_execute_header%0A+++7%3A+__mh_execute_header%0A+++8%3A+__mh_execute_header%0A+++9%3A+__mh_execute_header%0A++10%3A+__mh_execute_header%0A++11%3A+__mh_execute_header%0A++12%3A+__mh_execute_header%0A%0A%60%60%60%0A%3C%2Fdetails%3E
Installation failure, offering to revert...
TRACE execute:execute:describe_uninstall:execute_command: Executing command="/usr/sbin/diskutil" "info" "-plist" "/"
TRACE execute:execute:describe_uninstall:execute_command: Command success stderr= stdout=<?xml version="1.0" encoding="UTF-8"?>
reverting:
TRACE execute:execute:uninstall:try_revert:revert:create_synthetic_objects:revert:execute_command: Executing command="/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util" "-t"
TRACE execute:execute:uninstall:try_revert:revert:create_synthetic_objects:revert:execute_command: Executing command="/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util" "-B"
DEBUG execute:execute:uninstall:try_revert:revert:create_synthetic_objects: Reverted: Create objects defined in `/etc/synthetic.conf`
DEBUG execute:execute:uninstall:try_revert: Reverted: Create an encrypted APFS volume `Nix Store` for Nix on `disk3` and add it to `/etc/fstab` mounting on `/nix`
DEBUG execute:execute:uninstall:send: Sending diagnostic to `https://install.determinate.systems/nix/diagnostic`
Error:
0: Multiple errors
Location:
src/cli/subcommand/install.rs:285
Error:
0: Action `create_nix_hook_service` errored
1: Remove file `/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist`
2: No such file or directory (os error 2)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
0: nix_installer::cli::subcommand::install::execute
at src/cli/subcommand/install.rs:76
1: nix_installer::cli::execute
at src/cli/mod.rs:39
nix installer worked after updating to MacOS Sequoia
Same errors - nix installer worked after updating to MacOS Ventura 13.7
If anybody runs into this again, I'd be very interested to see the output of launchctl print system/systems.determinate.nix-installer.nix-hook
(replace that with whatever thing is actually failing), if there is any...
Error
Metadata
Backtrace