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

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

Open
alskipp opened this issue May 10, 2024 · 2 comments
Open
Labels
MacOS Darwin/MacOS

Comments

@alskipp
Copy link

alskipp commented May 10, 2024

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
Copy link
Member

cole-h commented May 10, 2024

Hm, that's very strange. At first glance, this looks similar to #520 and NixOS/nix#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

@cole-h cole-h added the MacOS Darwin/MacOS label May 10, 2024
@cole-h cole-h changed the title Current issue running the installer on macOS Could not find service "org.nixos.darwin-store" in domain for system May 10, 2024
@alskipp
Copy link
Author

alskipp commented May 10, 2024

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" })

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

2 participants