DeterminateSystems / nix-installer

Install Nix and flakes with the fast and reliable Determinate Nix Installer, with over 7 million installs.
https://determinate.systems
GNU Lesser General Public License v2.1
2.15k stars 53 forks source link

"Nix Store" on disk1s5 couldn't be unmounted because it is in use by securityd #674

Open nmrshll opened 1 year ago

nmrshll commented 1 year ago

Error

Error: 
   0: Error reverting
   0: Action `create_apfs_volume` errored
      Failed to execute command with status 1 `"/usr/sbin/diskutil" "apfs" "deleteVolume" "Nix Store"`, stdout: Started APFS operation
      Deleting APFS Volume from its APFS Container
      Unmounting disk1s5
      The volume "Nix Store" on disk1s5 couldn't be unmounted because it is in use by process 126 (securityd)

      stderr: Error: -69888: Couldn't unmount disk

Metadata

key value
version 0.13.1
os macos
arch x86_64
nmrshll commented 1 year ago

This happened while uninstalling to solve this other issue: #608

Before that:

Hoverbear commented 11 months ago

This is a new one. I wonder what's causing it...

tml commented 4 months ago

Seeing this on my machine today, let me know if there's any diagnostics you'd like me to run.

tml commented 4 months ago

Seeing this on my machine today, let me know if there's any diagnostics you'd like me to run.

Actually, after doing a little debugging on my own, this ended up being because I'd set my shell for terminal emulators to be ~/.nix-profile/bin/bash. Installing an alternative bash with homebrew, updating /etc/shells, and setting my terminal emulators to use that fixed the fact that securityd was locking the /nix partition here.