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

Uninstaller: rolling back nix launchd services currently is not best-effort #989

Closed
ink-splatters opened this issue Jun 5, 2024 · 1 comment · Fixed by #1266
Closed
Labels
MacOS Darwin/MacOS

Comments

@ink-splatters
Copy link

ink-splatters commented Jun 5, 2024

Error

Seems rolling back nix launchd services looks a transaction. However, this approach is not best-effort:

airstation:LaunchDaemons root# ls /Library/LaunchDaemons/*nix*
/Library/LaunchDaemons/org.nixos.nix-daemon.plist

This plist clearly could've been deleted, but it was not, because service rollback action failed and stopped at the point of failure

Possible solution

I don't see the reason for rollback to be transactional. If something fails to vanish itself, I'm always happy when I see it tried hard enough.

Because nix-installer had been already great in this regard for some time, till by some reason #988 became reproducible on latest macOS for me, I acknowledge that this flow might've been not tested too much. Seems it's time for it to be, now :)

Logs

Whoa there!

Consider reporting this error using this URL: https://github.com/DeterminateSystems/nix-installer/issues/new?title=%3Cautogenerated-issue%3E&body=%23%23+Error%0A%60%60%60%0AError%3A+%0A+++0%3A+Error+reverting%0A+++0%3A+Action+%60create_nix_hook_service%60+errored%0A++++++Remove+file+%60%2FLibrary%2FLaunchDaemons%2Fsystems.determinate.nix-installer.nix-hook.plist%60%0A%0A++++++Action+%60configure_nix%60+errored%0A++++++Multiple+child+errors%0A%0A++++++Action+%60configure_shell_profile%60+errored%0A++++++Multiple+child+errors%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fetc%2Fzsh%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fusr%2Flocal%2Fshare%2Ffish%2Fvendor_conf.d%60%0A%0A%0A++++++Action+%60place_nix_configuration%60+errored%0A++++++Multiple+child+errors%0A%0A++++++Action+%60create_or_merge_nix_config%60+errored%0A++++++Remove+file+%60%2Fetc%2Fnix%2Fnix.conf%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fetc%2Fnix%60%0A%0A%0A%0A++++++Action+%60set_tmutil_exclusions%60+errored%0A++++++Multiple+child+errors%0A%0A++++++Action+%60set_tmutil_exclusion%60+errored%0A++++++Failed+to+execute+command+with+status+22+%60%22tmutil%22+%22removeexclusion%22+%22%2Fnix%2Fvar%22%60%2C+stdout%3A+%0A++++++stderr%3A+%2Fnix%2Fvar%3A+Error+%28-43%29+while+attempting+to+change+exclusion+setting.%0A%0A%0A%0A++++++Action+%60set_tmutil_exclusion%60+errored%0A++++++Failed+to+execute+command+with+status+22+%60%22tmutil%22+%22removeexclusion%22+%22%2Fnix%2Fstore%22%60%2C+stdout%3A+%0A++++++stderr%3A+%2Fnix%2Fstore%3A+Error+%28-43%29+while+attempting+to+change+exclusion+setting.%0A%0A%0A%0A%0A++++++Action+%60create_users_and_group%60+errored%0A++++++Multiple+child+errors%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld1%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld2%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld3%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld4%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld5%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld6%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld7%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld8%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld9%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld10%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld11%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld12%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld13%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld14%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld15%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld16%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld17%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld18%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld19%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld20%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld21%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld22%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld23%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld24%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld25%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld26%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld27%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld28%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld29%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld30%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld31%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_user%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FUsers%2F_nixbld32%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A++++++Action+%60create_group%60+errored%0A++++++Failed+to+execute+command+with+status+185+%60%22%2Fusr%2Fbin%2Fdscl%22+%22.%22+%22-delete%22+%22%2FGroups%2Fnixbld%22%60%2C+stdout%3A+delete%3A+Invalid+Path%0A%0A++++++stderr%3A+%3Cdscl_cmd%3E+DS+Error%3A+-14009+%28eDSUnknownNodeName%29%0A%0A%0A%0A%0A++++++Action+%60create_nix_tree%60+errored%0A++++++Multiple+child+errors%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Fnix%2Fdaemon-socket%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Fnix%2Fuserpool%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Fnix%2Ftemproots%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Fnix%2Fprofiles%2Fper-user%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Fnix%2Fprofiles%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Fnix%2Fgcroots%2Fper-user%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Fnix%2Fgcroots%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Fnix%2Fdb%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Fnix%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Flog%2Fnix%2Fdrvs%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Flog%2Fnix%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%2Flog%60%0A%0A++++++Action+%60create_directory%60+errored%0A++++++Read+path+%60%2Fnix%2Fvar%60%0A%0A%0A++++++Action+%60create_nix_volume%60+errored%0A++++++Multiple+child+errors%0A%0A++++++Action+%60bootstrap_launchctl_service%60+errored%0A++++++Failed+to+execute+command+with+status+5+%60%22launchctl%22+%22bootout%22+%22system%22+%22%2FLibrary%2FLaunchDaemons%2Forg.nixos.darwin-store.plist%22%60%2C+stdout%3A+%0A++++++stderr%3A+Boot-out+failed%3A+5%3A+Input%2Foutput+error%0A%0A%0A%0A++++++Action+%60create_volume_service%60+errored%0A++++++Remove+file+%60%2FLibrary%2FLaunchDaemons%2Forg.nixos.darwin-store.plist%60%0A%0A++++++Action+%60encrypt_apfs_volume%60+errored%0A++++++Failed+to+execute+command+with+status+44+%60%22%2Fusr%2Fbin%2Fsecurity%22+%22delete-generic-password%22+%22-a%22+%22Nix+Store%22+%22-s%22+%22Nix+Store%22+%22-l%22+%22disk4+encryption+password%22+%22-D%22+%22Encrypted+volume+password%22+%22-j%22+%22Added+automatically+by+the+Nix+installer+for+use+by+%2FLibrary%2FLaunchDaemons%2Forg.nixos.darwin-store.plist%22%60%2C+stdout%3A+%0A++++++stderr%3A+security%3A+SecKeychainSearchCopyNext%3A+The+specified+item+could+not+be+found+in+the+keychain.%0A%0A%0A%0A++++++Action+%60create_fstab_entry%60+errored%0A++++++Unable+to+reliably+determine+which+%60%2Fetc%2Ffstab%60+line+to+remove%2C+the+volume+is+likely+already+deleted%2C+the+line+involving+%60%2Fnix%60+in+%60%2Fetc%2Ffstab%60+should+be+removed+manually%0A%0A++++++Action+%60unmount_apfs_volume%60+errored%0A++++++Failed+to+execute+command+with+status+1+%60%22%2Fusr%2Fsbin%2Fdiskutil%22+%22info%22+%22-plist%22+%22Nix+Store%22%60%2C+stdout%3A+%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A++++++%3C%21DOCTYPE+plist+PUBLIC+%22-%2F%2FApple%2F%2FDTD+PLIST+1.0%2F%2FEN%22+%22http%3A%2F%2Fwww.apple.com%2FDTDs%2FPropertyList-1.0.dtd%22%3E%0A++++++%3Cplist+version%3D%221.0%22%3E%0A++++++%3Cdict%3E%0A++++++%09%3Ckey%3EError%3C%2Fkey%3E%0A++++++%09%3Ctrue%2F%3E%0A++++++%09%3Ckey%3EErrorMessage%3C%2Fkey%3E%0A++++++%09%3Cstring%3ECould+not+find+disk%3A+Nix+Store%3C%2Fstring%3E%0A++++++%09%3Ckey%3EExitCode%3C%2Fkey%3E%0A++++++%09%3Cinteger%3E1%3C%2Finteger%3E%0A++++++%3C%2Fdict%3E%0A++++++%3C%2Fplist%3E%0A%0A++++++stderr%3A+%0A%0A%0A++++++Action+%60create_apfs_volume%60+errored%0A++++++Failed+to+execute+command+with+status+1+%60%22%2Fusr%2Fsbin%2Fdiskutil%22+%22info%22+%22-plist%22+%22Nix+Store%22%60%2C+stdout%3A+%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A++++++%3C%21DOCTYPE+plist+PUBLIC+%22-%2F%2FApple%2F%2FDTD+PLIST+1.0%2F%2FEN%22+%22http%3A%2F%2Fwww.apple.com%2FDTDs%2FPropertyList-1.0.dtd%22%3E%0A++++++%3Cplist+version%3D%221.0%22%3E%0A++++++%3Cdict%3E%0A++++++%09%3Ckey%3EError%3C%2Fkey%3E%0A++++++%09%3Ctrue%2F%3E%0A++++++%09%3Ckey%3EErrorMessage%3C%2Fkey%3E%0A++++++%09%3Cstring%3ECould+not+find+disk%3A+Nix+Store%3C%2Fstring%3E%0A++++++%09%3Ckey%3EExitCode%3C%2Fkey%3E%0A++++++%09%3Cinteger%3E1%3C%2Finteger%3E%0A++++++%3C%2Fdict%3E%0A++++++%3C%2Fplist%3E%0A%0A++++++stderr%3A+%0A%0A%0A%0A%60%60%60%0A%0A%23%23+Metadata%0A%7Ckey%7Cvalue%7C%0A%7C--%7C--%7C%0A%7C**version**%7C0.19.0%7C%0A%7C**os**%7Cmacos%7C%0A%7C**arch**%7Caarch64%7C%0A

This is great approach to bug reporting, but for long URLs GitHub thinks differently:)

image

Actual Logs
ic@airstation /tmp % ./nix-installer uninstall ./receipt.json 
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
Nix uninstall plan (v0.19.0)

Planner: macos

Configured settings:
* diagnostic_endpoint: ""
* root_disk: null
* volume_encrypt: true

Planned actions:
* Unconfigure Nix daemon related settings with launchctl
* Delete file `/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist`
* Remove the Nix configuration from zsh's non-login shells
* Unconfigure the shell profiles
* Remove the Nix configuration in `/etc/nix/nix.conf`
* Unset the default Nix profile
* Remove time machine exclusions
* Remove Nix users and group
* Remove the directory tree in `/nix`
* Remove the APFS volume `Nix Store` on `disk4`


Proceed? ([Y]es/[n]o/[e]xplain): y
 INFO Revert: Remove directory `/nix/temp-install-dir`
 INFO Revert: Configure Nix daemon related settings with launchctl
 INFO Revert: Unload, then recreate 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 301-332) and group (GID 30000)
 INFO Revert: Provision Nix
 INFO Revert: Create an encrypted APFS volume `Nix Store` for Nix on `disk4` and add it to `/etc/fstab` mounting on `/nix`
 INFO Failed to send diagnostic to `/`, continuing
ERROR Uninstallation complete, some errors encountered
Error: 
   0: Error reverting
   0: Action `create_nix_hook_service` errored
      Remove file `/Library/LaunchDaemons/systems.determinate.nix-installer.nix-hook.plist`

      Action `configure_nix` errored
      Multiple child errors

      Action `configure_shell_profile` errored
      Multiple child errors

      Action `create_directory` errored
      Read path `/etc/zsh`

      Action `create_directory` errored
      Read path `/usr/local/share/fish/vendor_conf.d`


      Action `place_nix_configuration` errored
      Multiple child errors

      Action `create_or_merge_nix_config` errored
      Remove file `/etc/nix/nix.conf`

      Action `create_directory` errored
      Read path `/etc/nix`



      Action `set_tmutil_exclusion` errored
      Failed to execute command with status 22 `"tmutil" "removeexclusion" "/nix/var"`, stdout: 
      stderr: /nix/var: Error (-43) while attempting to change exclusion setting.



      Action `create_users_and_group` errored
      Multiple child errors

      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld1"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld2"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld3"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld4"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld5"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld6"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld7"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld8"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld9"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld10"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld11"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld12"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld13"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld14"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld15"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld16"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld17"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld18"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld19"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld20"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld21"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld22"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld23"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld24"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld25"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld26"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld27"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld28"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld29"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld30"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld31"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_user` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Users/_nixbld32"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)



      Action `create_group` errored
      Failed to execute command with status 185 `"/usr/bin/dscl" "." "-delete" "/Groups/nixbld"`, stdout: delete: Invalid Path

      stderr: <dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)




      Action `create_nix_tree` errored
      Multiple child errors

      Action `create_directory` errored
      Read path `/nix/var/nix/daemon-socket`

      Action `create_directory` errored
      Read path `/nix/var/nix/userpool`

      Action `create_directory` errored
      Read path `/nix/var/nix/temproots`

      Action `create_directory` errored
      Read path `/nix/var/nix/profiles/per-user`

      Action `create_directory` errored
      Read path `/nix/var/nix/profiles`

      Action `create_directory` errored
      Read path `/nix/var/nix/gcroots/per-user`

      Action `create_directory` errored
      Read path `/nix/var/nix/gcroots`

      Action `create_directory` errored
      Read path `/nix/var/nix/db`

      Action `create_directory` errored
      Read path `/nix/var/nix`

      Action `create_directory` errored
      Read path `/nix/var/log/nix/drvs`

      Action `create_directory` errored
      Read path `/nix/var/log/nix`

      Action `create_directory` errored
      Read path `/nix/var/log`

      Action `create_directory` errored
      Read path `/nix/var`


      Action `create_nix_volume` errored
      Multiple child errors

      Action `bootstrap_launchctl_service` errored
      Failed to execute command with status 5 `"launchctl" "bootout" "system" "/Library/LaunchDaemons/org.nixos.darwin-store.plist"`, stdout: 
      stderr: Boot-out failed: 5: Input/output error



      Action `create_volume_service` errored
      Remove file `/Library/LaunchDaemons/org.nixos.darwin-store.plist`

      Action `encrypt_apfs_volume` errored
      Failed to execute command with status 44 `"/usr/bin/security" "delete-generic-password" "-a" "Nix Store" "-s" "Nix Store" "-l" "disk4 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.



   0: 

Location:
   src/cli/subcommand/uninstall.rs:192

@ink-splatters ink-splatters changed the title Uninstaller: rolling back provisioning of launchd services must be more granular Uninstaller: rolling back nix launchd services is better not to be transactional Jun 5, 2024
@ink-splatters ink-splatters changed the title Uninstaller: rolling back nix launchd services is better not to be transactional Uninstaller: rolling back nix launchd services currently is not best-effort Jun 5, 2024
@cole-h cole-h added the MacOS Darwin/MacOS label Sep 23, 2024
@cole-h
Copy link
Member

cole-h commented Oct 31, 2024

Actually, the real reason it wasn't removed was because... we forgot to do that (or it was removed by accident in some past refactoring)! That'll be fixed in #1266.

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

Successfully merging a pull request may close this issue.

2 participants