Open jc0b opened 7 months ago
I'm wondering if it's something to do with the characters in the regex, but can't see anything obvious in there.
I think something changed with Parser
which is causing an error trying to show the error. I just updated this for a different reason. Maybe try again, at least to see a better error message. I'd also like to see the--output
file contents.
Just did an even more minimal setup (just uploading the category and the profile) and got the below:
Sanitized Verbose Output (-vvvv)
Processing com.jc0b.jamf.SonomaCISConfigProfile...
WARNING: com.jc0b.jamf.SonomaCISConfigProfile is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
{'APP_CATEGORY': 'Compliance',
'AUTOPKG_VERSION': '2.7.2',
'CLIENT_ID': 'SNIP',
'CLIENT_SECRET': 'SNIP',
'JSS_URL': 'https://datboi.jamfcloud.com',
'MUNKI_REPO': '/Users/Shared/munki-repo',
'PARENT_RECIPES': [],
'PROFILE_DOMAIN': 'com.apple.mobiledevice.passwordpolicy',
'PROFILE_NAME': 'CIS - Sonoma - com.apple.mobiledevice.passwordpolicy',
'PROFILE_PATH': 'com.apple.mobiledevice.passwordpolicy.mobileconfig',
'RECIPE_CACHE_DIR': '/Users/jc0b/Library/AutoPkg/Cache/com.jc0b.jamf.SonomaCISConfigProfile',
'RECIPE_DIR': '/Users/jc0b/Downloads/e59dcd1571e1c792dfaf683a863fb340-8446105920594d403c003dc2a040975430c81532',
'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'],
'RECIPE_PATH': '/Users/jc0b/Downloads/e59dcd1571e1c792dfaf683a863fb340-8446105920594d403c003dc2a040975430c81532/SonomaCISConfigProfile.jamf.recipe.yaml',
'RECIPE_REPOS': {'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.48kRAM-recipes': {'URL': 'https://github.com/autopkg/48kRAM-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.apettinen-recipes': {'URL': 'https://github.com/autopkg/apettinen-recipes'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.apizz-recipes': {'URL': 'https://github.com/autopkg/apizz-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.arubdesu-recipes': {'URL': 'https://github.com/autopkg/arubdesu-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.aysiu-recipes': {'URL': 'https://github.com/autopkg/aysiu-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.bnpl-recipes': {'URL': 'https://github.com/autopkg/bnpl-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.bochoven-recipes': {'URL': 'https://github.com/autopkg/bochoven-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.cgerke-recipes': {'URL': 'https://github.com/autopkg/cgerke-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.chilcote-recipes': {'URL': 'https://github.com/autopkg/chilcote-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.clburlison-recipes': {'URL': 'https://github.com/autopkg/clburlison-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.dankeller-recipes': {'URL': 'https://github.com/autopkg/dankeller-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes': {'URL': 'https://github.com/autopkg/dataJAR-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.eholtam-recipes': {'URL': 'https://github.com/autopkg/eholtam-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes': {'URL': 'https://github.com/autopkg/foigus-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.gerardkok-recipes': {'URL': 'https://github.com/autopkg/gerardkok-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahamgilbert-recipes': {'URL': 'https://github.com/autopkg/grahamgilbert-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes': {'URL': 'https://github.com/autopkg/grahampugh-recipes'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.gregneagle-recipes': {'URL': 'https://github.com/autopkg/gregneagle-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.haircut-recipes': {'URL': 'https://github.com/autopkg/haircut-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes': {'URL': 'https://github.com/autopkg/hansen-m-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes': {'URL': 'https://github.com/autopkg/hjuutilainen-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes': {'URL': 'https://github.com/autopkg/homebysix-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jaharmi-recipes': {'URL': 'https://github.com/autopkg/jaharmi-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jazzace-recipes': {'URL': 'https://github.com/autopkg/jazzace-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jbaker10-recipes': {'URL': 'https://github.com/autopkg/jbaker10-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jessepeterson-recipes': {'URL': 'https://github.com/autopkg/jessepeterson-recipes'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jleggat-recipes': {'URL': 'https://github.com/autopkg/jleggat-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.joshua-d-miller-recipes': {'URL': 'https://github.com/autopkg/joshua-d-miller-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jps3-recipes': {'URL': 'https://github.com/autopkg/jps3-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes': {'URL': 'https://github.com/autopkg/jss-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.justinrummel-recipes': {'URL': 'https://github.com/autopkg/justinrummel-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes': {'URL': 'https://github.com/autopkg/keeleysam-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.kevinmcox-recipes': {'URL': 'https://github.com/autopkg/kevinmcox-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.killahquam-recipes': {'URL': 'https://github.com/autopkg/killahquam-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.munkireport-recipes': {'URL': 'https://github.com/autopkg/munkireport-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.n8felton-recipes': {'URL': 'https://github.com/autopkg/n8felton-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.neilmartin83-recipes': {'URL': 'https://github.com/autopkg/neilmartin83-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.nmcspadden-recipes': {'URL': 'https://github.com/autopkg/nmcspadden-recipes'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.novaksam-recipes': {'URL': 'https://github.com/autopkg/novaksam-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.nstrauss-recipes': {'URL': 'https://github.com/autopkg/nstrauss-recipes'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.peshay-recipes': {'URL': 'https://github.com/autopkg/peshay-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {'URL': 'https://github.com/autopkg/recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes': {'URL': 'https://github.com/autopkg/rtrouton-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes': {'URL': 'https://github.com/autopkg/scriptingosx-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.smithjw-recipes': {'URL': 'https://github.com/autopkg/smithjw-recipes'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.tbridge-recipes': {'URL': 'https://github.com/autopkg/tbridge-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.thenikola-recipes': {'URL': 'https://github.com/autopkg/thenikola-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes': {'URL': 'https://github.com/autopkg/timsutton-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.vmiller-recipes': {'URL': 'https://github.com/autopkg/vmiller-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.wardsparadox-recipes': {'URL': 'https://github.com/autopkg/wardsparadox-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.ygini-recipes': {'URL': 'https://github.com/autopkg/ygini-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.facebook.Recipes-for-AutoPkg': {'URL': 'https://github.com/facebook/Recipes-for-AutoPkg.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.jc0b.jc0b-recipes': {'URL': 'https://github.com/jc0b/jc0b-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.nstrauss.autopkg-recipes': {'URL': 'https://github.com/nstrauss/autopkg-recipes.git'},
'/Users/jc0b/Library/AutoPkg/RecipeRepos/computer.jc0b.git.mac.autopkg-recipes': {'URL': 'ssh://git@git.jc0b.computer/mac/autopkg-recipes.git'}},
'RECIPE_SEARCH_DIRS': ['.',
'~/Library/AutoPkg/Recipes',
'/Library/AutoPkg/Recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.48kRAM-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.apettinen-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.apizz-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.arubdesu-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.aysiu-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.bnpl-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.bochoven-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.cgerke-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.chilcote-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.clburlison-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.dankeller-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.eholtam-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.gerardkok-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahamgilbert-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.gregneagle-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jaharmi-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jbaker10-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jessepeterson-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jleggat-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.joshua-d-miller-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jps3-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.justinrummel-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.kevinmcox-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.killahquam-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.munkireport-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.n8felton-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.neilmartin83-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.nmcspadden-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.novaksam-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.nstrauss-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.peshay-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.smithjw-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.tbridge-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.thenikola-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.vmiller-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.wardsparadox-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.ygini-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.facebook.Recipes-for-AutoPkg',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.jc0b.jc0b-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.nstrauss.autopkg-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/computer.jc0b.git.mac.autopkg-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.jazzace-recipes',
'/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.haircut-recipes'],
'REPLACE_OBJECTS': 'True',
'SONOMA_GROUP_NAME': 'macOS Major Version - 14 (Sonoma)',
'verbose': 4}
com.github.haircut.processors/DatetimeOutputter
{'Input': {}}
{'Output': {'datetime': '2024-10-21T19:49:38.028644'}}
StopProcessingIf
{'Input': {'predicate': 'PROFILE_DOMAIN == ""'}}
StopProcessingIf: (PROFILE_DOMAIN == "") is False
{'Output': {}}
StopProcessingIf
{'Input': {'predicate': 'PROFILE_PATH == ""'}}
StopProcessingIf: (PROFILE_PATH == "") is False
{'Output': {}}
com.github.grahampugh.jamf-upload.processors/JamfCategoryUploader
{'Input': {'CLIENT_ID': 'SNIP',
'CLIENT_SECRET': 'SNIP',
'JSS_URL': 'https://datboi.jamfcloud.com',
'category_name': 'Compliance'}}
JamfCategoryUploader: No value supplied for category_priority, setting default value of: 10
JamfCategoryUploader: No value supplied for replace_category, setting default value of: False
JamfCategoryUploader: No value supplied for sleep, setting default value of: 0
JamfCategoryUploader: Checking for existing authentication token
JamfCategoryUploader: No existing valid token found
JamfCategoryUploader: Getting an authentication token using OAuth
JamfCategoryUploader: Output file is: /tmp/jamf_upload_lzg391ft/jamf_upload_0wwj75mh.txt
JamfCategoryUploader: No existing cookie found - starting new session
JamfCategoryUploader: curl command: /usr/bin/curl --location --dump-header /tmp/jamf_upload_lzg391ft/curl_headers_from_jamf_upload.txt https://datboi.jamfcloud.com/api/oauth/token --header User-Agent: JamfUploader/2024.10.17.0 --request POST --silent --show-error --header Content-Type: application/x-www-form-urlencoded --output /tmp/jamf_upload_lzg391ft/jamf_upload_0wwj75mh.txt --cookie-jar /tmp/jamf_upload_lzg391ft/curl_cookies_from_jamf_upload.txt --data-urlencode client_id=SNIP --data-urlencode grant_type=client_credentials --data-urlencode client_secret=SNIP
JamfCategoryUploader: Session token received
JamfCategoryUploader: Token: SNIP
JamfCategoryUploader: Expires: 2024-10-21T17:50:37.573735Z
JamfCategoryUploader: Checking for existing 'Compliance' on https://datboi.jamfcloud.com
JamfCategoryUploader: Output file is: /tmp/jamf_upload_lzg391ft/jamf_upload_xmpfu23e.txt
JamfCategoryUploader: curl command: /usr/bin/curl --location --dump-header /tmp/jamf_upload_lzg391ft/curl_headers_from_jamf_upload.txt https://datboi.jamfcloud.com/uapi/v1/categories?page=0&page-size=1000&sort=id&filter=name%3D%3D%22Compliance%22 --header User-Agent: JamfUploader/2024.10.17.0 --request GET --silent --show-error --header authorization: SNIP --header Accept: application/json --output /tmp/jamf_upload_lzg391ft/jamf_upload_xmpfu23e.txt --cookie-jar /tmp/jamf_upload_lzg391ft/curl_cookies_from_jamf_upload.txt --cookie /tmp/jamf_upload_lzg391ft/curl_cookies_from_jamf_upload.txt
JamfCategoryUploader: ID: 70 NAME: Compliance
JamfCategoryUploader: Category 'Compliance' already exists: ID 70
JamfCategoryUploader: Not replacing existing category. Use replace_category='True' to enforce.
{'Output': {}}
com.github.grahampugh.jamf-upload.processors/JamfComputerProfileUploader
{'Input': {'CLIENT_ID': 'SNIP',
'CLIENT_SECRET': 'SNIP',
'JSS_URL': 'https://datboi.jamfcloud.com',
'mobileconfig': 'com.apple.mobiledevice.passwordpolicy.mobileconfig',
'organization': 'DatBoi Corp',
'profile_category': 'Compliance',
'profile_description': 'Automatically uploaded by AutoPkg '
'2024-10-21T19:49:38.028644',
'profile_name': 'CIS - Sonoma - '
'com.apple.mobiledevice.passwordpolicy',
'profile_template': 'Profile-single-group.xml',
'sleep': '0'}}
JamfComputerProfileUploader: No value supplied for unsign_profile, setting default value of: False
JamfComputerProfileUploader: No value supplied for replace_profile, setting default value of: False
JamfComputerProfileUploader: No value supplied for retain_scope, setting default value of: False
JamfComputerProfileUploader: Looking for com.apple.mobiledevice.passwordpolicy.mobileconfig in /Users/jc0b/Downloads/e59dcd1571e1c792dfaf683a863fb340-8446105920594d403c003dc2a040975430c81532
JamfComputerProfileUploader: File found at: /Users/jc0b/Downloads/e59dcd1571e1c792dfaf683a863fb340-8446105920594d403c003dc2a040975430c81532/com.apple.mobiledevice.passwordpolicy.mobileconfig
JamfComputerProfileUploader: Looking for Profile-single-group.xml in /Users/jc0b/Downloads/e59dcd1571e1c792dfaf683a863fb340-8446105920594d403c003dc2a040975430c81532
JamfComputerProfileUploader: File found at: /Users/jc0b/Downloads/e59dcd1571e1c792dfaf683a863fb340-8446105920594d403c003dc2a040975430c81532/Profile-single-group.xml
JamfComputerProfileUploader: mobileconfig file supplied: /Users/jc0b/Downloads/e59dcd1571e1c792dfaf683a863fb340-8446105920594d403c003dc2a040975430c81532/com.apple.mobiledevice.passwordpolicy.mobileconfig
JamfComputerProfileUploader: ['/usr/bin/security', 'cms', '-D', '-i', '/Users/jc0b/Downloads/e59dcd1571e1c792dfaf683a863fb340-8446105920594d403c003dc2a040975430c81532/com.apple.mobiledevice.passwordpolicy.mobileconfig', '-o', '/tmp/4e140f77-304c-4670-9fd1-b73bd65a888c']
JamfComputerProfileUploader: Profile is not signed.
JamfComputerProfileUploader: b'security: failed to add data to decoder: UNKNOWN (-8183(d)\nsecurity: problem decoding\n'
JamfComputerProfileUploader: Configuration Profile name: [cis_lvl2] com.apple.mobiledevice.passwordpolicy settings
JamfComputerProfileUploader: Mobileconfig contents:
JamfComputerProfileUploader: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ConsentText</key>
<dict>
<key>default</key>
<string>THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM INFRINGEMENT, AND ANY WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE SOFTWARE, OR ANY WARRANTY THAT THE SOFTWARE WILL BE ERROR FREE. IN NO EVENT SHALL NIST BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR IN ANY WAY CONNECTED WITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY, CONTRACT, TORT, OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY PERSONS OR PROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT OF THE RESULTS OF, OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.</string>
</dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadIdentifier</key>
<string>alacarte.macOS.cis_lvl2.6aff250d-f9d2-466a-9206-807775e8d5bc</string>
<key>PayloadType</key>
<string>com.apple.mobiledevice.passwordpolicy</string>
<key>PayloadUUID</key>
<string>6aff250d-f9d2-466a-9206-807775e8d5bc</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>customRegex</key>
<dict>
<key>passwordContentDescription</key>
<dict>
<key>default</key>
<string>Password must match custom regex.</string>
</dict>
<key>passwordContentRegex</key>
<string>.*[A-Z]{1,}[a-z]{1,}.*</string>
</dict>
<key>maxFailedAttempts</key>
<integer>5</integer>
<key>maxPINAgeInDays</key>
<integer>365</integer>
<key>minComplexChars</key>
<integer>1</integer>
<key>minLength</key>
<integer>15</integer>
<key>minutesUntilFailedLoginReset</key>
<integer>15</integer>
<key>pinHistory</key>
<integer>15</integer>
<key>requireAlphanumeric</key>
<true/>
</dict>
</array>
<key>PayloadDescription</key>
<string>Created: 2024-04-09
Configuration settings for the com.apple.mobiledevice.passwordpolicy preference domain.</string>
<key>PayloadDisplayName</key>
<string>[cis_lvl2] com.apple.mobiledevice.passwordpolicy settings</string>
<key>PayloadIdentifier</key>
<string>com.apple.mobiledevice.passwordpolicy.cis_lvl2</string>
<key>PayloadOrganization</key>
<string>macOS Security Compliance Project</string>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>87a04d13-b9fc-47fc-8073-96f3294023f3</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>
JamfComputerProfileUploader: Checking for existing '[cis_lvl2] com.apple.mobiledevice.passwordpolicy settings' on https://datboi.jamfcloud.com
JamfComputerProfileUploader: Checking for existing authentication token
JamfComputerProfileUploader: Checking https://datboi.jamfcloud.com against https://datboi.jamfcloud.com
JamfComputerProfileUploader: URL and user for token matches current request
JamfComputerProfileUploader: No existing valid token found
JamfComputerProfileUploader: Getting an authentication token using OAuth
JamfComputerProfileUploader: Output file is: /tmp/jamf_upload_lzg391ft/jamf_upload_d9bwu_c2.txt
JamfComputerProfileUploader: curl command: /usr/bin/curl --location --dump-header /tmp/jamf_upload_lzg391ft/curl_headers_from_jamf_upload.txt https://datboi.jamfcloud.com/api/oauth/token --header User-Agent: JamfUploader/2024.10.17.0 --request POST --silent --show-error --header Content-Type: application/x-www-form-urlencoded --output /tmp/jamf_upload_lzg391ft/jamf_upload_d9bwu_c2.txt --cookie-jar /tmp/jamf_upload_lzg391ft/curl_cookies_from_jamf_upload.txt --cookie /tmp/jamf_upload_lzg391ft/curl_cookies_from_jamf_upload.txt --data-urlencode client_id=SNIP --data-urlencode grant_type=client_credentials --data-urlencode client_secret=SNIP
JamfComputerProfileUploader: Session token received
JamfComputerProfileUploader: Token: SNIP
JamfComputerProfileUploader: Expires: 2024-10-21T17:50:38.567523Z
JamfComputerProfileUploader: Output file is: /tmp/jamf_upload_lzg391ft/jamf_upload_4_ge26xp.txt
JamfComputerProfileUploader: curl command: /usr/bin/curl --location --dump-header /tmp/jamf_upload_lzg391ft/curl_headers_from_jamf_upload.txt https://datboi.jamfcloud.com/JSSResource/osxconfigurationprofiles --header User-Agent: JamfUploader/2024.10.17.0 --request GET --silent --show-error --header authorization: SNIP --header Accept: application/json --output /tmp/jamf_upload_lzg391ft/jamf_upload_4_ge26xp.txt --cookie-jar /tmp/jamf_upload_lzg391ft/curl_cookies_from_jamf_upload.txt --cookie /tmp/jamf_upload_lzg391ft/curl_cookies_from_jamf_upload.txt
JamfComputerProfileUploader: {'os_x_configuration_profiles': [{'id': 1, 'name': 'ACME certificate'}, {'id': 2, 'name': 'Managed Client information'}, {'id': 4, 'name': 'Munki Configuration'}, {'id': 5, 'name': 'Test Wi-Fi'}, {'id': 6, 'name': 'Test passcode'}, {'id': 8, 'name': 'Sonoma_cis_lvl2-mobiledevice.passwordpolicy'}, {'id': 10, 'name': 'Profile for wifi-8a688e66'}, {'id': 14, 'name': 'chrome setting test'}, {'id': 16, 'name': 'Disable hostname renaming'}]}
JamfComputerProfileUploader: {'id': 1, 'name': 'ACME certificate'}
JamfComputerProfileUploader: {'id': 2, 'name': 'Managed Client information'}
JamfComputerProfileUploader: {'id': 4, 'name': 'Munki Configuration'}
JamfComputerProfileUploader: {'id': 5, 'name': 'Test Wi-Fi'}
JamfComputerProfileUploader: {'id': 6, 'name': 'Test passcode'}
JamfComputerProfileUploader: {'id': 8, 'name': 'Sonoma_cis_lvl2-mobiledevice.passwordpolicy'}
JamfComputerProfileUploader: {'id': 10, 'name': 'Profile for wifi-8a688e66'}
JamfComputerProfileUploader: {'id': 14, 'name': 'chrome setting test'}
JamfComputerProfileUploader: {'id': 16, 'name': 'Disable hostname renaming'}
JamfComputerProfileUploader: Configuration Profile '[cis_lvl2] com.apple.mobiledevice.passwordpolicy settings' not found - will create
JamfComputerProfileUploader: Replacing any instances of 'mobileconfig_name' with '[cis_lvl2] com.apple.mobiledevice.passwordpolicy settings'
JamfComputerProfileUploader: Replacing any instances of 'description' with 'Automatically uploaded by AutoPkg 2024-10-21T19:49:38.028644'
JamfComputerProfileUploader: Replacing any instances of 'uuid' with 'com.github.grahampugh.jamf-upload.db040f13-38b0-467d-8d9f-b46e85611794'
JamfComputerProfileUploader: Replacing any instances of 'payload' with '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>ConsentText</key><dict><key>default</key><string>THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM INFRINGEMENT, AND ANY WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE SOFTWARE, OR ANY WARRANTY THAT THE SOFTWARE WILL BE ERROR FREE. IN NO EVENT SHALL NIST BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR IN ANY WAY CONNECTED WITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY, CONTRACT, TORT, OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY PERSONS OR PROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT OF THE RESULTS OF, OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.</string></dict><key>PayloadContent</key><array><dict><key>PayloadIdentifier</key><string>alacarte.macOS.cis_lvl2.6aff250d-f9d2-466a-9206-807775e8d5bc</string><key>PayloadType</key><string>com.apple.mobiledevice.passwordpolicy</string><key>PayloadUUID</key><string>6aff250d-f9d2-466a-9206-807775e8d5bc</string><key>PayloadVersion</key><integer>1</integer><key>customRegex</key><dict><key>passwordContentDescription</key><dict><key>default</key><string>Password must match custom regex.</string></dict><key>passwordContentRegex</key><string>.*[A-Z]{1,}[a-z]{1,}.*</string></dict><key>maxFailedAttempts</key><integer>5</integer><key>maxPINAgeInDays</key><integer>365</integer><key>minComplexChars</key><integer>1</integer><key>minLength</key><integer>15</integer><key>minutesUntilFailedLoginReset</key><integer>15</integer><key>pinHistory</key><integer>15</integer><key>requireAlphanumeric</key><true/></dict></array><key>PayloadDescription</key><string>Created: 2024-04-09Configuration settings for the com.apple.mobiledevice.passwordpolicy preference domain.</string><key>PayloadDisplayName</key><string>[cis_lvl2] com.apple.mobiledevice.passwordpolicy settings</string><key>PayloadIdentifier</key><string>com.apple.mobiledevice.passwordpolicy.cis_lvl2</string><key>PayloadOrganization</key><string>macOS Security Compliance Project</string><key>PayloadScope</key><string>System</string><key>PayloadType</key><string>Configuration</string><key>PayloadUUID</key><string>87a04d13-b9fc-47fc-8073-96f3294023f3</string><key>PayloadVersion</key><integer>1</integer></dict></plist>'
JamfComputerProfileUploader: Configuration Profile with intermediate substitution:
JamfComputerProfileUploader: <?xml version="1.0" encoding="UTF-8"?>
<os_x_configuration_profile>
<general>
<name>[cis_lvl2] com.apple.mobiledevice.passwordpolicy settings</name>
<description>Automatically uploaded by AutoPkg 2024-10-21T19:49:38.028644</description>
<category>
<name>%profile_category%</name>
</category>
<distribution_method>Install Automatically</distribution_method>
<user_removable>false</user_removable>
<level>computer</level>
<uuid>com.github.grahampugh.jamf-upload.db040f13-38b0-467d-8d9f-b46e85611794</uuid>
<redeploy_on_update>All</redeploy_on_update>
<payloads><?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>ConsentText</key><dict><key>default</key><string>THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM INFRINGEMENT, AND ANY WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE SOFTWARE, OR ANY WARRANTY THAT THE SOFTWARE WILL BE ERROR FREE. IN NO EVENT SHALL NIST BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR IN ANY WAY CONNECTED WITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY, CONTRACT, TORT, OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY PERSONS OR PROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT OF THE RESULTS OF, OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.</string></dict><key>PayloadContent</key><array><dict><key>PayloadIdentifier</key><string>alacarte.macOS.cis_lvl2.6aff250d-f9d2-466a-9206-807775e8d5bc</string><key>PayloadType</key><string>com.apple.mobiledevice.passwordpolicy</string><key>PayloadUUID</key><string>6aff250d-f9d2-466a-9206-807775e8d5bc</string><key>PayloadVersion</key><integer>1</integer><key>customRegex</key><dict><key>passwordContentDescription</key><dict><key>default</key><string>Password must match custom regex.</string></dict><key>passwordContentRegex</key><string>.*[A-Z]{1,}[a-z]{1,}.*</string></dict><key>maxFailedAttempts</key><integer>5</integer><key>maxPINAgeInDays</key><integer>365</integer><key>minComplexChars</key><integer>1</integer><key>minLength</key><integer>15</integer><key>minutesUntilFailedLoginReset</key><integer>15</integer><key>pinHistory</key><integer>15</integer><key>requireAlphanumeric</key><true/></dict></array><key>PayloadDescription</key><string>Created: 2024-04-09Configuration settings for the com.apple.mobiledevice.passwordpolicy preference domain.</string><key>PayloadDisplayName</key><string>[cis_lvl2] com.apple.mobiledevice.passwordpolicy settings</string><key>PayloadIdentifier</key><string>com.apple.mobiledevice.passwordpolicy.cis_lvl2</string><key>PayloadOrganization</key><string>macOS Security Compliance Project</string><key>PayloadScope</key><string>System</string><key>PayloadType</key><string>Configuration</string><key>PayloadUUID</key><string>87a04d13-b9fc-47fc-8073-96f3294023f3</string><key>PayloadVersion</key><integer>1</integer></dict></plist></payloads>
</general>
<scope>
<all_computers>false</all_computers>
<all_jss_users>false</all_jss_users>
<computers/>
<buildings/>
<departments/>
<computer_groups/>
<jss_users/>
<jss_user_groups/>
<limitations>
<users/>
<user_groups/>
<network_segments/>
<ibeacons/>
</limitations>
<exclusions>
<computers/>
<buildings/>
<departments/>
<computer_groups/>
<users/>
<user_groups/>
<network_segments/>
<ibeacons/>
<jss_users/>
<jss_user_groups/>
</exclusions>
</scope>
</os_x_configuration_profile>
JamfComputerProfileUploader: Replacing any instances of 'profile_category' with 'Compliance'
JamfComputerProfileUploader: Configuration Profile to be uploaded:
JamfComputerProfileUploader: <?xml version="1.0" encoding="UTF-8"?>
<os_x_configuration_profile>
<general>
<name>[cis_lvl2] com.apple.mobiledevice.passwordpolicy settings</name>
<description>Automatically uploaded by AutoPkg 2024-10-21T19:49:38.028644</description>
<category>
<name>Compliance</name>
</category>
<distribution_method>Install Automatically</distribution_method>
<user_removable>false</user_removable>
<level>computer</level>
<uuid>com.github.grahampugh.jamf-upload.db040f13-38b0-467d-8d9f-b46e85611794</uuid>
<redeploy_on_update>All</redeploy_on_update>
<payloads><?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>ConsentText</key><dict><key>default</key><string>THE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY THAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM INFRINGEMENT, AND ANY WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE SOFTWARE, OR ANY WARRANTY THAT THE SOFTWARE WILL BE ERROR FREE. IN NO EVENT SHALL NIST BE LIABLE FOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR IN ANY WAY CONNECTED WITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY, CONTRACT, TORT, OR OTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY PERSONS OR PROPERTY OR OTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT OF THE RESULTS OF, OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.</string></dict><key>PayloadContent</key><array><dict><key>PayloadIdentifier</key><string>alacarte.macOS.cis_lvl2.6aff250d-f9d2-466a-9206-807775e8d5bc</string><key>PayloadType</key><string>com.apple.mobiledevice.passwordpolicy</string><key>PayloadUUID</key><string>6aff250d-f9d2-466a-9206-807775e8d5bc</string><key>PayloadVersion</key><integer>1</integer><key>customRegex</key><dict><key>passwordContentDescription</key><dict><key>default</key><string>Password must match custom regex.</string></dict><key>passwordContentRegex</key><string>.*[A-Z]{1,}[a-z]{1,}.*</string></dict><key>maxFailedAttempts</key><integer>5</integer><key>maxPINAgeInDays</key><integer>365</integer><key>minComplexChars</key><integer>1</integer><key>minLength</key><integer>15</integer><key>minutesUntilFailedLoginReset</key><integer>15</integer><key>pinHistory</key><integer>15</integer><key>requireAlphanumeric</key><true/></dict></array><key>PayloadDescription</key><string>Created: 2024-04-09Configuration settings for the com.apple.mobiledevice.passwordpolicy preference domain.</string><key>PayloadDisplayName</key><string>[cis_lvl2] com.apple.mobiledevice.passwordpolicy settings</string><key>PayloadIdentifier</key><string>com.apple.mobiledevice.passwordpolicy.cis_lvl2</string><key>PayloadOrganization</key><string>macOS Security Compliance Project</string><key>PayloadScope</key><string>System</string><key>PayloadType</key><string>Configuration</string><key>PayloadUUID</key><string>87a04d13-b9fc-47fc-8073-96f3294023f3</string><key>PayloadVersion</key><integer>1</integer></dict></plist></payloads>
</general>
<scope>
<all_computers>false</all_computers>
<all_jss_users>false</all_jss_users>
<computers/>
<buildings/>
<departments/>
<computer_groups/>
<jss_users/>
<jss_user_groups/>
<limitations>
<users/>
<user_groups/>
<network_segments/>
<ibeacons/>
</limitations>
<exclusions>
<computers/>
<buildings/>
<departments/>
<computer_groups/>
<users/>
<user_groups/>
<network_segments/>
<ibeacons/>
<jss_users/>
<jss_user_groups/>
</exclusions>
</scope>
</os_x_configuration_profile>
JamfComputerProfileUploader: Uploading Configuration Profile...
JamfComputerProfileUploader: Configuration Profile upload attempt 1
JamfComputerProfileUploader: Output file is: /tmp/jamf_upload_lzg391ft/jamf_upload_59hjgnat.txt
JamfComputerProfileUploader: curl command: /usr/bin/curl --location --dump-header /tmp/jamf_upload_lzg391ft/curl_headers_from_jamf_upload.txt https://datboi.jamfcloud.com/JSSResource/osxconfigurationprofiles/id/0 --header User-Agent: JamfUploader/2024.10.17.0 --request POST --silent --show-error --header authorization: SNIP --upload-file /tmp/jamf_upload_lzg391ft/jamf_upload_rqxcf_q4.txt --header Content-type: application/xml --output /tmp/jamf_upload_lzg391ft/jamf_upload_59hjgnat.txt --cookie-jar /tmp/jamf_upload_lzg391ft/curl_cookies_from_jamf_upload.txt --cookie /tmp/jamf_upload_lzg391ft/curl_cookies_from_jamf_upload.txt
JamfComputerProfileUploader: API response:
b'<html>\n<head>\n <title>Status page</title>\n</head>\n<body style="font-family: sans-serif;">\n<p style="font-size: 1.2em;font-weight: bold;margin: 1em 0px;">Conflict</p>\n<p>Unable to update the database</p>\n<p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10">here</a>.<br>\nPlease continue your visit at our <a href="/">home page</a>.\n</p>\n</body>\n</html>\n'
Traceback (most recent call last):
File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
self.env = processor.process()
File "/Library/AutoPkg/autopkglib/__init__.py", line 626, in process
self.main()
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfComputerProfileUploader.py", line 143, in main
self.execute()
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfUploaderLib/JamfComputerProfileUploaderBase.py", line 514, in execute
self.upload_mobileconfig(
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfUploaderLib/JamfComputerProfileUploaderBase.py", line 260, in upload_mobileconfig
self.status_check(
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfUploaderLib/JamfUploaderBase.py", line 553, in status_check
+ r.output["errors"][0]["description"]
TypeError: byte indices must be integers or slices, not str
File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
self.env = processor.process()
byte indices must be integers or slices, not str
Failed.
Receipt written to /Users/jc0b/Library/AutoPkg/Cache/com.jc0b.jamf.SonomaCISConfigProfile/receipts/com.jc0b.jamf-receipt-20241021-194940.plist
The following recipes failed:
com.jc0b.jamf.SonomaCISConfigProfile
Error in com.jc0b.jamf.SonomaCISConfigProfile: Processor: com.github.grahampugh.jamf-upload.processors/JamfComputerProfileUploader: Error: byte indices must be integers or slices, not str
Nothing downloaded, packaged or imported.
Report plist saved to report.plist.
Report Plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>failures</key>
<array>
<dict>
<key>message</key>
<string>Error in com.jc0b.jamf.SonomaCISConfigProfile: Processor: com.github.grahampugh.jamf-upload.processors/JamfComputerProfileUploader: Error: byte indices must be integers or slices, not str</string>
<key>recipe</key>
<string>com.jc0b.jamf.SonomaCISConfigProfile</string>
<key>traceback</key>
<string>Traceback (most recent call last):
File "/Library/AutoPkg/autopkglib/__init__.py", line 840, in process
self.env = processor.process()
File "/Library/AutoPkg/autopkglib/__init__.py", line 626, in process
self.main()
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfComputerProfileUploader.py", line 143, in main
self.execute()
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfUploaderLib/JamfComputerProfileUploaderBase.py", line 514, in execute
self.upload_mobileconfig(
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfUploaderLib/JamfComputerProfileUploaderBase.py", line 260, in upload_mobileconfig
self.status_check(
File "/Users/jc0b/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes/JamfUploaderProcessors/JamfUploaderLib/JamfUploaderBase.py", line 553, in status_check
+ r.output["errors"][0]["description"]
TypeError: byte indices must be integers or slices, not str
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/autopkg", line 2278, in run_recipes
autopackager.process(recipe)
File "/Library/AutoPkg/autopkglib/__init__.py", line 852, in process
raise AutoPackagerError(
autopkglib.AutoPackagerError: Error in com.jc0b.jamf.SonomaCISConfigProfile: Processor: com.github.grahampugh.jamf-upload.processors/JamfComputerProfileUploader: Error: byte indices must be integers or slices, not str
</string>
</dict>
</array>
<key>summary_results</key>
<dict/>
</dict>
</plist>
Not sure if either of these is the --output
you mentioned (I didn't see it as an arg on AutoPkg 2.7.2), but let me know.
When trying to use jamf-upload to upload a .mobileconfig file with the preference domain
com.apple.mobiledevice.passwordpolicy
, Jamf returns an error:Conflict Unable to update the database
.I'm trying to upload .mobileconfigs from the macOS Security Compliance Project. The others work fine, but this specific preference domain triggers this error, even with an absolutely minimal .mobileconfig profile.
Resources to reproduce this are in this gist, as well as some information about what profiles look like when uploaded via Jamf Compliance Editor (which does work).
The output of running the recipe with
-vvvv
is as follows: