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

<autogenerated-issue> #1366

Open
camercu opened this issue Dec 30, 2024 · 1 comment
Open

<autogenerated-issue> #1366

camercu opened this issue Dec 30, 2024 · 1 comment

Comments

@camercu
Copy link

camercu commented Dec 30, 2024

Error

Error: 
   0: Multiple errors

Could not create encrypted APFS volume during installation.

Metadata

key value
version 0.32.2
os macos
arch aarch64

Console output

 INFO Step: Create an encrypted APFS volume `Nix Store` for Nix on `disk3` and add it to `/etc/fstab` mounting on `/nix`
ERROR Error saving receipt: RecordingReceipt("/nix", Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" })
ERROR 
   0: Install failure
   1: Error executing action
   2: Action `create_nix_volume` errored
   3: Action `encrypt_apfs_volume` errored
   4: Failed to execute command `"/usr/sbin/diskutil" "mount" "Nix Store"`
      stdout: 
      stderr: Volume on disk3s7 failed to mount

   4: exited with status code: 1
   4: 

Location:
   src/cli/subcommand/install.rs:259

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

# --- snip GitHub report URL ----

Installation failure, offering to revert...
Nix uninstall plan (v0.32.2)

Planner: macos (with default settings)

Planned actions:
* 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: Create 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:291

Error:
   0: Action `encrypt_apfs_volume` errored
   1: Failed to execute command `"/usr/bin/security" "delete-generic-password" "-a" "Nix Store" "-s" "Nix Store" "-l" "disk3 encryption password" "-D" "Encrypted volume password" "-j" "Added automatically by the Nix installer for use by /Library/LaunchDaemons/org.nixos.darwin-store.plist"`
      stdout: 
      stderr: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.

   1: exited with status code: 44
   1: 

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
@camercu
Copy link
Author

camercu commented Dec 30, 2024

Rerunning the installer a second time (without doing anything else) caused it to work.

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

No branches or pull requests

1 participant