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

Privilege Assistant installation failed. I have tried many times and all the results are the same. #69

Open
DevLiuSir opened this issue Jul 2, 2023 · 18 comments · Fixed by #83
Labels
bug Something isn't working

Comments

@DevLiuSir
Copy link

Privilege Assistant installation failed. I have tried many times and all the results are the same.
截屏2023-07-02 10 26 02

@DevLiuSir DevLiuSir added the bug Something isn't working label Jul 2, 2023
@ninxsoft
Copy link
Owner

ninxsoft commented Jul 2, 2023

The Privileged Helper tool installs the following files:

  • /Library/LaunchDaemons/com.ninxsoft.mist.helper.plist
  • /Library/PrivilegedHelperTools/com.ninxsoft.mist.helper

The screenshot you provided appears to be failing when updating these two files. You have a couple of options:

  1. Run the uninstall script found here, then download the latest Mist disk image (dmg) from the release page. Then try to install the Privileged Helper Tool again from the Mist app settings.
  2. Download and install the latest Mist installer package (pkg) from the releases page. This will place the files mentioned above into the correct locations.

@DevLiuSir
Copy link
Author

DevLiuSir commented Jul 2, 2023

  • /Library/LaunchDaemons/com.ninxsoft.mist.helper.plist
  • /Library/PrivilegedHelperTools/com.ninxsoft.mist.helper

I have checked that both of the following files exist. And I downloaded the latest version of 0.9But it cannot be installed.

@DevLiuSir
Copy link
Author

DevLiuSir commented Jul 2, 2023

The pkg installation of miss 0.9 failed. 0.9 dmg can install apps. But privileges still cannot be installed

@bhagatparwinder
Copy link

Same issue here. Ran the uninstall script, and it cleaned up any reminisce. Tried installing the pkg file, and it errors out. DMG installs, but the app cannot install privileged helper with the same error above.

@DevLiuSir
Copy link
Author

Same issue here. Ran the uninstall script, and it cleaned up any reminisce. Tried installing the pkg file, and it errors out. DMG installs, but the app cannot install privileged helper with the same error above.

Did you also fail to install it?

@bhagatparwinder
Copy link

@DevLiuSir Correct. The .pkg installation fails. I can copy the app from the DMG, but it cannot install the privileged tool. It gives me the same error that you posted a screenshot of.

@ninxsoft
Copy link
Owner

@DevLiuSir + @bhagatparwinder thank you so much for the help with testing 🙏

The package install has three steps, performed in the following order:

  1. Run the preinstall script
  2. Copy the contents of the payload to the target disk:
    • /Applications/Mist.app
    • /Library/LaunchDaemons/com.ninxsoft.mist.helper.plist
    • /Library/PrivilegedHelperTools/com.ninxsoft.mist.helper
  3. Run the postinstall script

If steps 1 or 3 fail, the entire package install fails - are you able to run the preinstall and postinstall scripts manually and report back the error / output message you are receiving?

If we can isolate the specific command in the scripts that is failing, we should be able to move forward with a fix.

Thank you 🙌

@ninxsoft
Copy link
Owner

Having said that, you have both mentioned that attempting to install the Privileged Helper Tool within the Mist.app settings also fails, so I am learning towards seeing if I can make the BlessError message more descriptive.

Will keep you posted 👍

@ninxsoft
Copy link
Owner

Please ignore the previous request to test the preinstall and postinstall scripts - I have improved the error message output for BlessError exceptions:

BlessError

⚠️ Note: This is only an example screenshot, so I will request you to test again once I release the next version of Mist.app 👍

@ninxsoft
Copy link
Owner

Mist version 0.9.1 is now available - if you can please test with this version and report back 🙌

@bhagatparwinder
Copy link

  • I downloaded the latest release (DMG file).
  • Dragged mist to Applications.
  • Started mist app
  • It asked to install the helper tool > enter admin password > see a notification that Mist has added something in the background
  • Tried a download and it again asks to install the helper tool. Quit the application and started again. Still the same popup.

SCR-20230825-jfix

@ninxsoft
Copy link
Owner

@bhagatparwinder how about when you try to install the Privileged Helper Tool via the app settings?

Before

After

@DevLiuSir
Copy link
Author

DevLiuSir commented Aug 27, 2023

how about when you try to install the Privileged Helper Tool via the app settings?

Application settings installation privileges help tool also error。

截屏2023-08-27 22 52 10

@ninxsoft
Copy link
Owner

ninxsoft commented Sep 3, 2023

@DevLiuSir thanks for providing the screenshot, we have more error information now!

The error itself does seem confusing though - what happens if you manually delete /Library/PrivilegedHelperTools/com.ninxsoft.mist.helper and then try to install the Privileged Helper Tool again from the Settings?

@DevLiuSir
Copy link
Author

截屏2023-09-05 15 26 13

Manually delete the daemon. Reinstall, the error message is not present. But it was still unsuccessful. Installation was unsuccessful. Creating a USB drive cannot proceed

@bhagatparwinder
Copy link

I can attest that the issue exists on 0.9.1 and macOS Sonoma 14.0. I am testing it on ARM.

@ninxsoft
Copy link
Owner

I have improved the error output when attempting to install the Privileged Helper Tool from the main app window.

This is just an example:

Error

See: #103 - will push a new release soon where we can continue testing 🙏

@JuanCab
Copy link

JuanCab commented Jan 29, 2024

Can confirm failure to install privileged helper tools both from Settings and by just having the dialog box trigger when trying to download an installer running macOS 14.2 and Mist 0.9.1. Manually removed the previous files from disk via command line, still fails. No error messages, but it doesn't install.

Purged the app completely, installed the 0.9.1 version using PACKAGE installer, seems to have fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants