My company is in the process of setting up PatchBot (https://github.com/Honestpuck/PatchBot) for all of our Jamf Pro cloud instances.
Per the checklist, I've set up all of the necessary policies (both computer and patch), and am using Firefox as my test case. I made the Firefox.pkg
override, and created the Firefox.ptch
recipe using the new package
argument, and made the corresponding override.
Problems: when running the autopkg.sh
script, we're running into issues with both of the custom processors, JPCImporter and PatchManager.
- JPCImporter fails with a
409
error. It times out after the 10 attempts to update the package.
2021-01-08 11:29:17 DEBUG package update attempt 11
2021-01-08 11:29:18 DEBUG Attempt failed with code: 409
2021-01-08 11:29:18 DEBUG URL: https://***.jamfcloud.com/JSSResource/packages/id/166
- PatchManager also fails with a
409
error and doesn't update the patch policies. The script just halts at line190
after the 409 is returned.
2021-01-08 11:33:52 DEBUG Got patch policy with version : 84.0 : and we are : 82.0.3 :
2021-01-08 11:33:52 DEBUG About to change PP: https://***.jamfcloud.com/JSSResource/patchpolicies/id/5
Both of these 409 errors happen on the PUT of each script.
JPCImporter:
ret = requests.put(url, auth=auth, headers=hdrs, data=data)
PatchManager:
ret = requests.put(url, auth=self.auth, data=data)
I've verified that our API user has full Administrator privileges per this article, so permissions are not the issue.
Thanks for any help you can provide in advance! @honestpuck