Closed sparkymac closed 5 months ago
Hi @sparkymac,
You may want to run one of your autoupdate recipes in isolation, using Terminal to see what errors occur, if any. For example: autopkg run -v AdobeFlashPlayer-autoupdate.jss
The policy and smart group templates associated with autoupdate recipes are conventionally called PolicyTemplate-autoupdate.xml and SmartGroupTemplate-autoupdate.xml, respectively, and they may be in your ~/Library/AutoPkg/Recipes or ~/Library/AutoPkg/RecipeOverrides folders. (Although Flash uses an EA, so you may be looking for AdobeFlashPlayerSmartGroupTemplate-autoupdate.xml instead of the regular SmartGroupTemplate.xml.)
It's possible that some of the XML used by Casper's API changed in 9.9, but it works fine on my JAMF Cloud instance (v9.91.1460045562).
Hi Elliot
Thank you for your advice which I followed with the following results:
I ran the flash autoupdate recipe using Terminal and it ran successfully and popped the latest package into the autoupdate policy.
I thought I would try Java next as that one was doing the same and only updating the non autoupdate policy. First I ran all recipes directly from the Autopkgr gui but it didn’t update the autoupdate policies as before. I then ran the autopkg run -v OracleJava8-autoupdate.jss using Terminal and it popped the latest package into the policies.
So it looks like I will need to run the recipes via Terminal to get them to work successfully unless you know a workaround!
I updated my JSS to 9.91 as well just in case but that made no difference!
I am also ready to move this from the Testing group and push to all so where do I make those changes in the recipes & smart group templates?
Thanks again. Mark
Hi Elliot
Do you have any update on this one please? I have just updated to 1.4.1 but it still will only run recipes with Terminal. Also the schedules do run daily but the email notification doesn't get to me but running the 'Send Test Email' button does send an email. All very strange! Thanks Mark
Hi Mark,
Here are a few steps for troubleshooting:
Rather than running the recipes individually at the Terminal, try running them from the recipe list using this command:
/usr/bin/python /usr/local/bin/autopkg run --verbose --recipe-list ~/Library/Application\ Support/AutoPkgr/recipe_list.txt
(Note: Change recipe_list.txt
to the name of your recipe list, if it's something other than the default.) If that command succeeds, then you know you have working recipes and processors. That's a solid foundation to build on.
AutoPkgr
. If there are unusual errors there, paste them into this thread and I'll have a look.Thanks!
Thanks Elliot
Everything is setup as requested and it all seems to work apart from the auto notification email.
I wont worry too much about that , for now i will disable the schedule and just run it manually each day, this way the email is generated.
I'm ready to change the Self service policy scope to all rather than limit it to the testing group, what do I change to make this happen?
Thanks Mark
On 17 May 2016 at 22:55, Elliot Jordan notifications@github.com wrote:
Hi Mark,
Here are a few steps for troubleshooting:
-
Rather than running the recipes individually at the Terminal, try running them from the recipe list using this command:
/usr/bin/python /usr/local/bin/autopkg run --verbose --recipe-list ~/Library/Application\ Support/AutoPkgr/recipe_list.txt
(Note: Change recipe_list.txt to the name of your recipe list, if it's something other than the default.) If that command succeeds, then you know you have working recipes and processors. That's a solid foundation to build on.
In AutoPkgr, uncheck the Enable scheduled AutoPkg runs checkbox in the Schedule tab. Then check the box again. This will reload the schedule LaunchDaemon that AutoPkgr uses to initiate AutoPkg runs. You'll be prompted for your password once when you uncheck, and again when you recheck.
Head over to the Folders & Integration tab, then click on Configure AutoPkg. Check the box for Verbose AutoPkg run, then Save and Close.
Click on the AutoPkgr icon in the menu bar, and make sure Verbose Logs is checked.
In the Notifications tab, find the Choose when actions trigger notification setting and click the Customize button. Set it to Report All Items (you can adjust this later, after we confirm notifications are being sent on schedule).
Obvious, but make sure your email notification settings are correct. Sending a test email couldn't hurt.
Remove at least one of the recipes' caches from your ~/Library/AutoPkg/Cache folder, so that we're guaranteed to receive a notification.
Click the Run Recipes Now button in AutoPkgr. This tests two things: (1) The same set of recipes that ran successfully in the Terminal should run successfully in AutoPkgr, and (2) you should receive notifications.
Open up Console.app and filter for AutoPkgr. If there are unusual errors there, paste them into this thread and I'll have a look.
Thanks!
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/homebysix/auto-update-magic/issues/26#issuecomment-219866416
Closing due to repo deprecation and archival.
Hi
I had my setup working beautifully adding patch updates to Self Service and auto-update policies until I updated to Casper 9.9 and now I am seeing the following:
My Install Latest Packages are working and pulling the latest versions into the JSS but my Auto Update Policies still have the old version packages. I have attached some screenshots to make it clearer!
I would apreciate any help working out which recipes/ templates need changing to get this working again if it is a problem with these. If its been caused by Casper 9.9 then I guess I'll have to wait...
Thanks in advance
Mark