I'm seeing an odd problem with a Jamf Cloud-hosted server, where I can see the server return the ID number of the uploaded package, but JSSImporter isn't able to properly work with it for some reason:
JSSImporter: Waiting to get Package ID from server (none reported)...
JSSImporter: Package ID '4' verified on server
JSSImporter: Waiting to get Package ID from server (none reported)...
JSSImporter: Package ID '4' verified on server
Response Code: 500 Response: Internal Server Error. The server encountered an unexpected condition which prevented it from fulfilling the request https://servername.jamfcloud.com/JSSResource/packages/id/4.
Failed.
Jamf Pro server is running a beta version of 10.16.x.
Full output of run is below. In this case, I'm trying to upload a Mozilla Firefox installer package.
computername:~ autopkg$ autopkg run com.company.jss.MozillaFirefox -vvv
Processing com.company.jss.MozillaFirefox...
WARNING: com.company.jss.MozillaFirefox is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
{u'API_PASSWORD': u'Password_Goes_Here',
u'API_USERNAME': u'Username_Goes_Here',
'AUTOPKG_VERSION': u'1.2',
u'CATEGORY': u'Apps',
u'DESCRIPTION': u'Web Browser.',
u'GIT_PATH': u'/Library/Developer/CommandLineTools/usr/bin/git',
u'GROUP_NAME': u'Update-Smart-Firefox',
u'GROUP_TEMPLATE': u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes/JSS/SmartGroupTemplate.xml',
u'ICON': u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes/JSS/MozillaFirefox.png',
u'JSS_REPOS': [{u'type': u'CDP'}],
u'JSS_URL': u'https://servername.jamfcloud.com',
u'LOCALE': u'en-US',
u'NAME': u'Firefox',
'PARENT_RECIPES': [u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes/MozillaFirefox/MozillaFirefox.pkg.recipe',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/Mozilla/FirefoxSignedPkg.download.recipe'],
u'POLICY_CATEGORY': u'Testing',
u'POLICY_TEMPLATE': u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes/JSS/PolicyTemplate.xml',
'RECIPE_CACHE_DIR': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox',
'RECIPE_DIR': u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes/JSS',
'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'],
'RECIPE_PATH': u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes/JSS/MozillaFirefox.jss.recipe',
u'RECIPE_REPOS': {u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.apettinen-recipes': {u'URL': u'https://github.com/autopkg/apettinen-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.arubdesu-recipes': {u'URL': u'https://github.com/autopkg/arubdesu-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.bkerns-recipes': {u'URL': u'https://github.com/autopkg/bkerns-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.cgerke-recipes': {u'URL': u'https://github.com/autopkg/cgerke-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes': {u'URL': u'https://github.com/autopkg/dataJAR-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes': {u'URL': u'https://github.com/autopkg/grahampugh-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes': {u'URL': u'https://github.com/autopkg/hansen-m-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes': {u'URL': u'https://github.com/autopkg/hjuutilainen-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes': {u'URL': u'https://github.com/autopkg/homebysix-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes': {u'URL': u'https://github.com/autopkg/jss-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.justinrummel-recipes': {u'URL': u'https://github.com/autopkg/justinrummel-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.killahquam-recipes': {u'URL': u'https://github.com/autopkg/killahquam-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {u'URL': u'https://github.com/autopkg/recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes': {u'URL': u'https://github.com/autopkg/rtrouton-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.smithjw-recipes': {u'URL': u'https://github.com/autopkg/smithjw-recipes'},
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes': {u'URL': u'https://github.com/rtrouton/autopkg_recipes'}},
u'RECIPE_SEARCH_DIRS': [u'.',
u'~/Library/AutoPkg/Recipes',
u'/Library/AutoPkg/Recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.apettinen-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.arubdesu-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.bkerns-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.cgerke-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.justinrummel-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.killahquam-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.smithjw-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes/JSS',
u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes/MozillaFirefox'],
u'SOFTWARETITLE': u'Firefox',
u'VENDOR': u'Mozilla',
'verbose': 3}
URLTextSearcher
{'Input': {'re_pattern': u'"LATEST_FIREFOX_VERSION": "([\\d\\.]+)"',
'result_output_var_name': u'version',
'url': u'https://product-details.mozilla.org/1.0/firefox_versions.json'}}
URLTextSearcher: No value supplied for CURL_PATH, setting default value of: /usr/bin/curl
URLTextSearcher: Found matching text (version): 69.0.2
{'Output': {u'version': '69.0.2'}}
URLDownloader
{'Input': {'CURL_PATH': '/usr/bin/curl',
'filename': u'Firefox-69.0.2.pkg',
'url': u'http://releases.mozilla.org/pub/firefox/releases/69.0.2/mac/en-US/Firefox%2069.0.2.pkg'}}
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/downloads/Firefox-69.0.2.pkg
{'Output': {'pathname': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/downloads/Firefox-69.0.2.pkg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'input_path': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/downloads/Firefox-69.0.2.pkg'}}
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "Firefox-69.0.2.pkg":
CodeSignatureVerifier: Status: signed by a certificate trusted by Mac OS X
CodeSignatureVerifier: Certificate Chain:
CodeSignatureVerifier: 1. Developer ID Installer: Mozilla Corporation (43AQ936H96)
CodeSignatureVerifier: SHA1 fingerprint: 6E FE 9A 14 AE 39 59 E5 AB AD 4C C9 44 7E 1C D1 06 11 DE A9
CodeSignatureVerifier: -----------------------------------------------------------------------------
CodeSignatureVerifier: 2. Developer ID Certification Authority
CodeSignatureVerifier: SHA1 fingerprint: 3B 16 6C 3B 7D C4 B7 51 C9 FE 2A FA B9 13 56 41 E3 88 E1 86
CodeSignatureVerifier: -----------------------------------------------------------------------------
CodeSignatureVerifier: 3. Apple Root CA
CodeSignatureVerifier: SHA1 fingerprint: 61 1E 5B 66 2C 59 3A 08 FF 58 D1 4A E2 24 52 D1 98 DF 6C 60
CodeSignatureVerifier:
CodeSignatureVerifier: Signature is valid
{'Output': {}}
FlatPkgUnpacker
{'Input': {'destination_path': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/unpack',
'flat_pkg_path': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/downloads/Firefox-69.0.2.pkg'}}
FlatPkgUnpacker: Unpacked /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/downloads/Firefox-69.0.2.pkg to /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/unpack
{'Output': {}}
PkgPayloadUnpacker
{'Input': {'destination_path': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/payload',
'pkg_payload_path': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/unpack/Payload'}}
PkgPayloadUnpacker: Unpacked /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/unpack/Payload to /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/payload
{'Output': {}}
Versioner
{'Input': {'input_plist_path': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/payload/Firefox.app/Contents/Info.plist',
'plist_version_key': u'CFBundleShortVersionString'}}
Versioner: Found version 69.0.2 in file /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/payload/Firefox.app/Contents/Info.plist
{'Output': {'version': u'69.0.2'}}
PkgCopier
{'Input': {'pkg_path': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/Mozilla_Firefox_69.0.2.pkg',
'source_pkg': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/downloads/Firefox-69.0.2.pkg'}}
PkgCopier: Copied /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/downloads/Firefox-69.0.2.pkg to /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/Mozilla_Firefox_69.0.2.pkg
{'Output': {'pkg_copier_summary_result': {'data': {'pkg_path': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/Mozilla_Firefox_69.0.2.pkg'},
'summary_text': 'The following packages were copied:'},
'pkg_path': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/Mozilla_Firefox_69.0.2.pkg'}}
PathDeleter
{'Input': {'path_list': (
"/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/payload",
"/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/unpack"
)}}
PathDeleter: Deleted /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/payload
PathDeleter: Deleted /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/unpack
{'Output': {}}
JSSImporter
{'Input': {'API_PASSWORD': u'Password_Goes_Here',
'API_USERNAME': u'Username_Goes_Here',
'JSS_REPOS': [{u'type': u'CDP'}],
'JSS_URL': u'https://servername.jamfcloud.com',
'category': u'Apps',
'pkg_path': u'/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/Mozilla_Firefox_69.0.2.pkg',
'policy_category': u'Testing',
'policy_template': u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes/JSS/PolicyTemplate.xml',
'prod_name': u'Firefox',
'self_service_description': u'Web Browser.',
'self_service_icon': u'/Users/autopkg/Library/AutoPkg/RecipeRepos/com.github.rtrouton.autopkg_recipes/JSS/MozillaFirefox.png',
'version': u'69.0.2'}}
JSSImporter: No value supplied for STOP_IF_NO_JSS_UPLOAD, setting default value of: True
JSSImporter: No value supplied for package_priority, setting default value of: 10
JSSImporter: No value supplied for JSS_VERIFY_SSL, setting default value of: True
JSSImporter: No value supplied for policy_action_type, setting default value of: Install
JSSImporter: No value supplied for package_info, setting default value of:
JSSImporter: No value supplied for force_policy_state, setting default value of: True
JSSImporter: No value supplied for package_boot_volume_required, setting default value of: True
JSSImporter: No value supplied for skip_scope, setting default value of: False
JSSImporter: No value supplied for skip_scripts, setting default value of: False
JSSImporter: No value supplied for os_requirements, setting default value of:
JSSImporter: No value supplied for package_notes, setting default value of:
JSSImporter: No value supplied for package_reboot, setting default value of: False
JSSImporter: No value supplied for JSS_SUPPRESS_WARNINGS, setting default value of: True
JSSImporter: python-jss version: 2.0.1.
JSSImporter: JSSImporter version: 1.0.3.
JSSImporter: Jamf Pro version: '10.16.0-t1569851716'
JSSImporter: Category, type 'category', name 'Apps', already exists on the Jamf Pro server, moving on...
JSSImporter: Category, type 'policy_category', name 'Testing', already exists on the Jamf Pro server, moving on...
JSSImporter: Checking if DP already mounted...
JSSImporter: Package object does not already exist on the Jamf Pro server.
JSSImporter: Copying /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/Mozilla_Firefox_69.0.2.pkg to all distribution points.
JSSImporter: Copying to https://servername.jamfcloud.com
JSSImporter: Copied '/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/Mozilla_Firefox_69.0.2.pkg'
JSSImporter: Waiting to get Package ID from server (none reported)...
JSSImporter: Package ID '4' verified on server
JSSImporter: Waiting to get Package ID from server (none reported)...
JSSImporter: Package ID '4' verified on server
Response Code: 500 Response: Internal Server Error. The server encountered an unexpected condition which prevented it from fulfilling the request https://servername.jamfcloud.com/JSSResource/packages/id/4.
Failed.
Receipt written to /Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/receipts/com.company.jss-receipt-20191007-191152.plist
The following recipes failed:
com.company.jss.MozillaFirefox
Error in com.company.jss.MozillaFirefox: Processor: JSSImporter: Error: Response Code: 500 Response: Internal Server Error. The server encountered an unexpected condition which prevented it from fulfilling the request https://servername.jamfcloud.com/JSSResource/packages/id/4.
The following packages were copied:
Pkg Path
--------
/Users/autopkg/Library/AutoPkg/Cache/com.company.jss.MozillaFirefox/Mozilla_Firefox_69.0.2.pkg
computername:~ autopkg$
I'm seeing an odd problem with a Jamf Cloud-hosted server, where I can see the server return the ID number of the uploaded package, but JSSImporter isn't able to properly work with it for some reason:
macOS 10.14.6 (fully updated)
AutoPkg 1.2
python-jss version: 2.0.1.
JSSImporter version: 1.0.3.
Jamf Pro server is running a beta version of 10.16.x.
Full output of run is below. In this case, I'm trying to upload a Mozilla Firefox installer package.