The keychain lacks a password for the already existing "Nix Store" volume on disk `disk3`
Error
Error:
0: Planner error
1: Error executing action
2: Action `encrypt_apfs_volume` errored
3: The keychain lacks a password for the already existing "Nix Store" volume on disk `disk3`, consider removing the volume with `diskutil apfs deleteVolume "Nix Store"` (if you receive error -69888, you may need to run `sudo launchctl bootout system/org.nixos.darwin-store` and `sudo launchctl bootout system/org.nixos.nix-daemon` first)
Metadata
| key | value |
|---|---|
| version | 0.30.1 |
| os | macos |
| arch | aarch64 |
If you do the suggestions in the error message, does that allow you to get further in the install process?
Same issue here. I followed the steps in the error message but got a different error with no suggested follow up steps:
» curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --determinate
info: downloading installer https://install.determinate.systems/nix/tag/v0.31.0/nix-installer-aarch64-darwin
INFO nix-installer v0.31.0
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
Password:
INFO nix-installer v0.31.0
Error:
0: Planner error
1: Error executing action
2: Action `encrypt_apfs_volume` errored
3: The keychain lacks a password for the already existing "Nix Store" volume on disk `disk3`, consider removing the volume with `diskutil apfs deleteVolume "Nix Store"` (if you receive error -69888, you may need to run `sudo launchctl bootout system/org.nixos.darwin-store` and `sudo launchctl bootout system/org.nixos.nix-daemon` first)
Location:
src/cli/subcommand/install.rs:203
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
» diskutil apfs deleteVolume "Nix Store"
Started APFS operation
Deleting APFS Volume from its APFS Container
Unmounting disk3s7
The volume "Nix Store" on disk3s7 couldn't be unmounted because it is in use by process 0 (kernel)
Error: -69888: Couldn't unmount disk
» sudo launchctl bootout system/org.nixos.darwin-store
» sudo launchctl bootout system/org.nixos.nix-daemon
» diskutil apfs deleteVolume "Nix Store"
Started APFS operation
Deleting APFS Volume from its APFS Container
Unmounting disk3s7
Erasing any xART session referenced by BC3BE747-02AE-4A0E-A9C9-848BCF82C3E0
Deleting Volume
Removing any Preboot and Recovery Directories
Finished APFS operation
» curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --determinate
info: downloading installer https://install.determinate.systems/nix/tag/v0.31.0/nix-installer-aarch64-darwin
INFO nix-installer v0.31.0
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
INFO nix-installer v0.31.0
Error:
0: Planner error
1: Error executing action
2: Action `create_group` errored
3: Group `nixbld` existed but had a different gid (30000) than planned (350)
Location:
src/cli/subcommand/install.rs:203
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Version: v0.31.0 OS: MacOS 14.6.1 Arch: aarch64
It looks like you previously had a Nix installation. You could try out our Sequoia repair tool to see if that fixes it: https://determinate.systems/posts/nix-support-for-macos-sequoia/
Otherwise, you may need to follow the upstream uninstall instructions to clean up before attempting to install again: https://nix.dev/manual/nix/stable/installation/uninstall.html#macos
If you have any further trouble, please open another issue and I'll help there (so we don't clutter this issue with unrelated problems)! Thank you!