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

The keychain lacks a password for the already existing "Nix Store" volume on disk disk3 #1323

Open
eddybbrownii opened this issue Nov 28, 2024 · 3 comments
Labels
MacOS Darwin/MacOS

Comments

@eddybbrownii
Copy link

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
@cole-h
Copy link
Member

cole-h commented Dec 2, 2024

If you do the suggestions in the error message, does that allow you to get further in the install process?

@cole-h cole-h added the MacOS Darwin/MacOS label Dec 2, 2024
@cole-h cole-h changed the title Install errors 2025 mac mini The keychain lacks a password for the already existing "Nix Store" volume on disk disk3 Dec 2, 2024
@markphelps
Copy link

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

@cole-h
Copy link
Member

cole-h commented Dec 7, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MacOS Darwin/MacOS
Projects
None yet
Development

No branches or pull requests

3 participants