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.25k stars 56 forks source link

Could not find service "org.nixos.darwin-store" in domain for system #960

Open alskipp opened 6 months ago

alskipp commented 6 months ago

Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `create_nix_volume` errored
   3: Action `kickstart_launchctl_service` errored
   4: Failed to execute command with status 113 `"launchctl" "kickstart" "-k" "system/org.nixos.darwin-store"`, stdout: 
      stderr: Could not find service "org.nixos.darwin-store" in domain for system

Metadata

key value
version 0.19.0
os macos
arch aarch64
cole-h commented 6 months ago

Hm, that's very strange. At first glance, this looks similar to https://github.com/DeterminateSystems/nix-installer/issues/520 and https://github.com/NixOS/nix/issues/6499 (aside from being different services that are failing) -- could you try running the following and then attempting to install again?

sudo launchctl enable system/org.nixos.darwin-store
alskipp commented 6 months ago

This was encountered after an unsuccessful uninstall on a colleague's laptop, so I'm sure it's related to that.

After running the uninstaller the nix store had to be manually deleted (via Disk Utility) and the config in `/etc/fstab/ was also manually removed. There was one more thing that needed cleanup (recommended by the installer) which I can't recall right now!

Afterward a restart the installer was run again with: curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install macos

Which is when the error occurred.

I believe they've managed to resolve the issue now, but I don't have to hand exactly what they did.


Additional log info missing from the initial report:

 INFO Step: Create an APFS volume `Nix Store` for Nix on `disk3` and add it to `/etc/fstab` mounting on `/nix`
ERROR Error saving receipt: RecordingReceipt("/nix/receipt.json", Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" })