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

Boot-out failed: 5: Input/output error on systems.determinate.nix-installer.nix-hook #1168

Open
viniciuspalma opened this issue Sep 15, 2024 · 10 comments
Labels
MacOS Darwin/MacOS

Comments

@viniciuspalma
Copy link

Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `create_nix_hook_service` errored
   3: Failed to execute command with status 5 `"launchctl" "bootout" "system" "/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist"`, stdout: 
      stderr: Boot-out failed: 5: Input/output error


Metadata

key value
version 0.26.0
os macos
arch aarch64
@cole-h
Copy link
Member

cole-h commented Sep 15, 2024

Is it possible this machine had our nix-installer run on it before?

If you try the install again, does it go any further?

If it happens again, before you run the revert steps, could you show the output of launchctl print system/systems.determinate.nix-installer.nix-hook?

@cole-h cole-h added the MacOS Darwin/MacOS label Sep 15, 2024
@cole-h cole-h changed the title <autogenerated-issue> Boot-out failed: 5: Input/output error on systems.determinate.nix-installer.nix-hook Sep 15, 2024
@viniciuspalma
Copy link
Author

After installing john, my nix when dead, I've used nix-darwin I followed the process to uninstall it, but nothing is working now.

https://search.nixos.org/packages?channel=24.05&show=john&from=0&size=50&sort=relevance&type=packages&query=john

@viniciuspalma
Copy link
Author

Is it possible this machine had our nix-installer run on it before?

If you try the install again, does it go any further?

If it happens again, before you run the revert steps, could you show the output of launchctl print system/systems.determinate.nix-installer.nix-hook?

Viniciuss-MacBook-Pro%          launchctl print system/systems.determinate.nix-installer.nix-hook
system/systems.determinate.nix-installer.nix-hook = {
	active count = 0
	path = /Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist
	type = LaunchDaemon
	state = not running

	program = /bin/sh
	arguments = {
		/bin/sh
		-c
		/bin/wait4path /nix/nix-installer && /nix/nix-installer repair
	}

	stdout path = /nix/.nix-installer-hook.out.log
	stderr path = /nix/.nix-installer-hook.err.log
	default environment = {
		PATH => /usr/bin:/bin:/usr/sbin:/sbin
	}

	environment = {
		XPC_SERVICE_NAME => systems.determinate.nix-installer.nix-hook
	}

	domain = system
	minimum runtime = 10
	exit timeout = 5
	runs = 2
	last exit code = 0

	semaphores = {
		successful exit => 0
	}

	spawn type = daemon (3)
	jetsam priority = 40
	jetsam memory limit (active) = (unlimited)
	jetsam memory limit (inactive) = (unlimited)
	jetsamproperties category = daemon
	jetsam thread limit = 32
	cpumon = default
	probabilistic guard malloc policy = {
		activation rate = 1/1000
		sample rate = 1/0
	}

	properties = inferred program | system service | managed LWCR | has LWCR | tle system
}

@viniciuspalma
Copy link
Author

Tried to reinstall as you said @cole-h same same, same error seems that's stuck at the same stage.

@cole-h
Copy link
Member

cole-h commented Sep 16, 2024

Does anything change if you manually run the launchctl bootout command it failed on?

@viniciuspalma
Copy link
Author

No, now the file not even exist.

@viniciuspalma
Copy link
Author

This: helped out NixOS/nix#3861 (comment)

@cole-h
Copy link
Member

cole-h commented Sep 17, 2024

No, now the file not even exist.

I guess we might need to check if the file even exists before we try to bootout. Thanks for that information.

This: helped out NixOS/nix#3861 (comment)

Are you sure it wasn't just trying it again that fixed it? I'd expect a different error to show up if /etc/synthetic.conf had bad permissions...

Regardless, glad you were able to proceed further!

@AlexMouton
Copy link

@viniciuspalma do you have a huge number of watchman processes in ps -ef ?
Maybe unrelated but i had just posted a similar issue and updating brew and watchman seems to have helped.

@viniciuspalma
Copy link
Author

It really has a lot, webpack on javascript universe utilizes a lot of it for sure.

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