-
Notifications
You must be signed in to change notification settings - Fork 51
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
Updating Trust Info for Override not working in AutoPkgr 1.6.1 #720
Comments
Thank you @jelockwood. Do you see an error message in the gui, or in the Console logs for AutoPkgr? |
I see the error in multiple places. First as part of the automated email report sent by AutoPkgr
Second as a dialog box displayed by the AutoPkgr GUI app. I believe there would be a third place which would be the autopkg_results.plist file but as I have done a successful run since, this has been overwritten. |
Apologies, what I meant by my question is the following: Do you see an error message when you actually the update the trust info in AutoPkgr - either in the AutoPkgr GUI, or in the Console logs for AutoPkgr? Not when you try to run the recipe, but when you try to update the trust info. Thanks. |
@shawnhonsberger I did try doing the update in the GUI again just now whilst I had the (awful) Console.app running and streaming output for AutoPkgr. (I am an old fashioned syslog person.) The only entry I spotted that seemed relevant was as follows.
However as mentioned currently the recipe is already updated via the CLI and hence 'good' so this maybe misleading. I don't know if this would apply, the override recipe is of course a plist file, if one manipulates a plist other than via the defaults command then the cfprefsd binary may not immediately recognise a change. The defaults command when used to make changes to plist files ensures that changes are flushed to cfprefsd. (I believe an alternative less desirable approach is to kill and hence relaunch cfprefsd.) As discussed here - https://eclecticlight.co/2022/11/25/changing-preferences-isnt-so-simple/ |
Okay thank you @jelockwood. If you update an out of date repo, then update trust info for a recipe override with out-of-date trust info, then restart the computer, do you still get a trust error when running the recipe? |
I have not tried rebooting the Mac in this scenario. If it is related to cfprefsd then rebooting should clear the cache and resolve the problem. Next time I have this happen I will try some additional tests to see if I can test whether the values have been flushed from the cache. A few of more things occur to me -
Is there any other log info or test you can suggest? |
Thanks @jelockwood. I'd be curious what happens after a reboot.
Thanks! |
If one selects an individual (override) recipe in the list of active recipes in AutoPkgr, there is a choice in the resulting drop down menu to update the trust for that override.
I have in the past used this successfully - likely for older versions of AutoPkgr but for a while now it has failed to work in that re-running the supposedly updated recipe will still result in a failure due to the recipe still not passing the trust test.
If however I use a command in Terminal as follows for the same override recipe it works correctly and re-running the same override recipe in AutoPkgr then passes and works as expected.
This suggests a problem in the current version of AutoPkgr - I am running version 1.6.1 (1509) on an Intel Mac mini using macOS 12.7.6
The text was updated successfully, but these errors were encountered: