autopkg / rtrouton-recipes

Recipes for AutoPkg
MIT License
131 stars 93 forks source link

Google Chrome Enterprise doesn't trigger JSSImport #69

Closed staze closed 4 years ago

staze commented 4 years ago

Hi Rich,

Any ideas why your GoogleChromeEnterprise.jss.recipe wouldn't be triggering JSSImport? Autopkgr downloads and notifies it grabbed a version. I can see it in the cache. It just... doesn't upload to the DP, or create a stub in the JSS.

rtrouton commented 4 years ago

Can you send me the verbose output of an AutoPkg run?

staze commented 4 years ago

Certainly... if I could find the friggin' logs.

Finally got something.

2020-04-08 16:44:50.045224-0700 localhost AutoPkgr[4080]: Processing com.github.rtrouton.jss.googlechromeenterprise... URLDownloader URLDownloader: Item at URL is unchanged. URLDownloader: Using existing /Users/sojcadmin/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg EndOfCheckPhase CodeSignatureVerifier CodeSignatureVerifier: Verifying installer package signature... CodeSignatureVerifier: Package "GoogleChrome.pkg": CodeSignatureVerifier: Status: signed by a certificate trusted by Mac OS X CodeSignatureVerifier: Certificate Chain: CodeSignatureVerifier: 1. Developer ID Installer: Google LLC (EQHXZ8M8AV) CodeSignatureVerifier: SHA1 fingerprint: F8 6C 50 3A B4 14 C7 D4 C2 24 0C 35 FF F1 F0 A3 0D B8 63 1E 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 CodeSignatu<…> 2020-04-08 16:44:50.045222-0700 localhost AutoPkgr[4080]: Run status: Processing com.github.rtrouton.jss.googlechromeenterprise... URLDownloader URLDownloader: Item at URL is unchanged. URLDownloader: Using existing /Users/sojcadmin/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg EndOfCheckPhase CodeSignatureVerifier CodeSignatureVerifier: Verifying installer package signature... CodeSignatureVerifier: Package "GoogleChrome.pkg": CodeSignatureVerifier: Status: signed by a certificate trusted by Mac OS X CodeSignatureVerifier: Certificate Chain: CodeSignatureVerifier: 1. Developer ID Installer: Google LLC (EQHXZ8M8AV) CodeSignatureVerifier: SHA1 fingerprint: F8 6C 50 3A B4 14 C7 D4 C2 24 0C 35 FF F1 F0 A3 0D B8 63 1E 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 CodeSignatu<…> 2020-04-08 16:44:50.109988-0700 localhost AutoPkgr[4080]: [DEBUG] Completed AutoPkg Task: /usr/local/autopkg/python /usr/local/bin/autopkg run com.github.rtrouton.jss.googlechromeenterprise --report-plist /var/folders/gg/2zfjqg7s1zzdzqc6x94jc8hw0000gn/T/com.lindegroup.AutoPkgr/20200408164445 -v 2020-04-08 16:44:56.750858-0700 localhost AutoPkgr[4080]: (LaunchServices) 27366555: RECEIVED OUT-OF-SEQUENCE NOTIFICATION: 0 vs 257, 513,

staze commented 4 years ago

That was from turning on verbose logging, and then running:

sudo log stream --style syslog --process "AutoPkgr" --type log

from terminal.

staze commented 4 years ago

Just did a cli run... here's the sanitized output.

autopkgr:~ username$ /Library/AutoPkg/Python3/Python.framework/Versions/3.7/bin/python3.7 /usr/local/bin/autopkg run -vvv /Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/GoogleChromeEnterprise.jss.recipe Processing /Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/GoogleChromeEnterprise.jss.recipe... WARNING: /Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/GoogleChromeEnterprise.jss.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding... {'API_PASSWORD': 'xxxxxx', 'API_USERNAME': 'xxxxxx', 'AUTOPKG_VERSION': '2.0.2', 'CATEGORY': 'Google', 'DESCRIPTION': 'Google Chrome is a browser that combines a minimal design ' 'with sophisticated technology to make the web faster, safer, ' 'and easier.', 'DOWNLOAD_URL': 'https://dl.google.com/chrome/mac/stable/gcem/GoogleChrome.pkg', 'FAIL_RECIPES_WITHOUT_TRUST_INFO': False, 'GIT_PATH': '/usr/local/git/bin/git', 'GROUPNAME': 'GoogleChrome', 'GROUP_NAME': 'GoogleChrome-update-smart', 'GROUP_TEMPLATE': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/SmartGroupTemplate.xml', 'ICON': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/GoogleChromeEnterprise.png', 'JSS_INVENTORY_NAME': 'Google Chrome.app', 'JSS_REPOS': [{'name': 'JDS-1', 'password': 'xxxxxxxxxx'}], 'JSS_URL': 'https://jss.example.com:8443', 'JSS_VERIFY_SSL': True, 'NAME': 'Google Chrome', 'PARENT_RECIPES': ['/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/GoogleChrome/GoogleChromePkg.pkg.recipe', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/GoogleChrome/GoogleChromePkg.download.recipe'], 'POLICY_CATEGORY': 'Testing', 'POLICY_TEMPLATE': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/PolicyTemplate.xml', 'RECIPE_CACHE_DIR': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise', 'RECIPE_DIR': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS', 'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'], 'RECIPE_PATH': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/GoogleChromeEnterprise.jss.recipe', 'RECIPE_REPOS': {'/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes': {'URL': 'https://github.com/autopkg/grahampugh-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes': {'URL': 'https://github.com/autopkg/hansen-m-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes': {'URL': 'https://github.com/autopkg/hjuutilainen-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes': {'URL': 'https://github.com/autopkg/homebysix-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jazzace-recipes': {'URL': 'https://github.com/autopkg/jazzace-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jleggat-recipes': {'URL': 'https://github.com/autopkg/jleggat-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.joshua-d-miller-recipes': {'URL': 'https://github.com/autopkg/joshua-d-miller-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jps3-recipes': {'URL': 'https://github.com/autopkg/jps3-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes': {'URL': 'https://github.com/autopkg/jss-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.moofit-recipes': {'URL': 'https://github.com/autopkg/moofit-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.neilmartin83-recipes': {'URL': 'https://github.com/autopkg/neilmartin83-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.novaksam-recipes': {'URL': 'https://github.com/autopkg/novaksam-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {'URL': 'https://github.com/autopkg/recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes': {'URL': 'https://github.com/autopkg/rtrouton-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rustymyers-recipes': {'URL': 'https://github.com/autopkg/rustymyers-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes': {'URL': 'https://github.com/autopkg/scriptingosx-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes': {'URL': 'https://github.com/autopkg/timsutton-recipes.git'}}, 'RECIPE_SEARCH_DIRS': ['.', '~/Library/AutoPkg/Recipes', '/Library/AutoPkg/Recipes', '/Users/username/Library/AutoPkg/LocalRecipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rustymyers-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.novaksam-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.joshua-d-miller-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jleggat-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.neilmartin83-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jps3-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jazzace-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.moofit-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/GoogleChrome'], 'verbose': 3} URLDownloader {'Input': {'filename': 'GoogleChrome.pkg', 'url': 'https://dl.google.com/chrome/mac/stable/gcem/GoogleChrome.pkg'}} URLDownloader: No value supplied for prefetch_filename, setting default value of: False URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False URLDownloader: Storing new Last-Modified header: Thu, 02 Apr 2020 01:25:08 GMT URLDownloader: Storing new ETag header: "5873df" URLDownloader: Downloaded /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg {'Output': {'download_changed': True, 'etag': '"5873df"', 'last_modified': 'Thu, 02 Apr 2020 01:25:08 GMT', 'pathname': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg', 'url_downloader_summary_result': {'data': {'download_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg'}, 'summary_text': 'The following ' 'new items were ' 'downloaded:'}}} EndOfCheckPhase {'Input': {}} {'Output': {}} CodeSignatureVerifier {'Input': {'expected_authority_names': ['Developer ID Installer: Google LLC ' '(EQHXZ8M8AV)', 'Developer ID Certification Authority', 'Apple Root CA'], 'input_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg'}} CodeSignatureVerifier: Verifying installer package signature... CodeSignatureVerifier: Package "GoogleChrome.pkg": CodeSignatureVerifier: Status: signed by a certificate trusted by Mac OS X CodeSignatureVerifier: Certificate Chain: CodeSignatureVerifier: 1. Developer ID Installer: Google LLC (EQHXZ8M8AV) CodeSignatureVerifier: SHA1 fingerprint: F8 6C 50 3A B4 14 C7 D4 C2 24 0C 35 FF F1 F0 A3 0D B8 63 1E 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 CodeSignatureVerifier: Authority name chain is valid {'Output': {}} FlatPkgUnpacker {'Input': {'destination_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack', 'flat_pkg_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg'}} FlatPkgUnpacker: Unpacked /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg to /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack {'Output': {}} PkgPayloadUnpacker {'Input': {'destination_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack', 'pkg_payload_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack/GoogleChrome.pkg/Payload'}} PkgPayloadUnpacker: Unpacked /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack/GoogleChrome.pkg/Payload to /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack {'Output': {}} PlistReader {'Input': {'info_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack/Google ' 'Chrome.app'}} PlistReader: No value supplied for plist_keys, setting default value of: {'CFBundleShortVersionString': 'version'} PlistReader: Reading: /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack/Google Chrome.app/Contents/Info.plist PlistReader: Assigning value of '81.0.4044.92' to output variable 'version' {'Output': {'plist_reader_output_variables': {'version': '81.0.4044.92'}}} Copier {'Input': {'destination_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/GoogleChrome-81.0.4044.92.pkg', 'overwrite': True, 'source_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg'}} Copier: Parsed dmg results: dmg_path: /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg, dmg: , dmg_source_path: Copier: Copied /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg to /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/GoogleChrome-81.0.4044.92.pkg {'Output': {}} PathDeleter {'Input': {'path_list': ['/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack']}} PathDeleter: Deleted /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack {'Output': {}} JSSImporter {'Input': {'API_PASSWORD': 'xxxxx', 'API_USERNAME': 'xxxxx', 'JSS_REPOS': [{'name': 'JDS-1', 'password': 'xxxxx'}], 'JSS_URL': 'https://jss.example.com:8443', 'JSS_VERIFY_SSL': True, 'category': 'Google', 'groups': [{'name': 'GoogleChrome-update-smart', 'smart': True, 'template_path': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/SmartGroupTemplate.xml'}], 'jss_inventory_name': 'Google Chrome.app', 'policy_category': 'Testing', 'policy_template': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/PolicyTemplate.xml', 'prod_name': 'Google Chrome', 'self_service_description': 'Google Chrome is a browser that ' 'combines a minimal design with ' 'sophisticated technology to make the ' 'web faster, safer, and easier.', 'self_service_icon': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/GoogleChromeEnterprise.png', 'version': '81.0.4044.92'}} JSSImporter: No value supplied for pkg_path, setting default value of: JSSImporter: No value supplied for JSS_SUPPRESS_WARNINGS, setting default value of: True JSSImporter: No value supplied for force_policy_state, setting default value of: True JSSImporter: No value supplied for os_requirements, setting default value of: JSSImporter: No value supplied for package_info, setting default value of: JSSImporter: No value supplied for package_notes, setting default value of: JSSImporter: No value supplied for package_priority, setting default value of: 10 JSSImporter: No value supplied for package_reboot, setting default value of: False JSSImporter: No value supplied for package_boot_volume_required, setting default value of: True JSSImporter: No value supplied for policy_action_type, setting default value of: Install JSSImporter: No value supplied for STOP_IF_NO_JSS_UPLOAD, 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: python-jss version: 2.1. JSSImporter: JSSImporter version: 1.1.0. JSSImporter: Jamf Pro version: '10.18.0-t1576686828' JSSImporter: Category, type 'category', name 'Google', 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 upload and object update skipped. If this is a mistake, ensure you have JSS_REPOS configured. JSSImporter: Unmounting DP... {'Output': {'jss_changed_objects': {'jss_category_added': [], 'jss_extension_attribute_added': [], 'jss_extension_attribute_updated': [], 'jss_group_added': [], 'jss_group_updated': [], 'jss_icon_uploaded': [], 'jss_package_added': [], 'jss_package_updated': [], 'jss_policy_added': [], 'jss_policy_updated': [], 'jss_repo_updated': [], 'jss_script_added': [], 'jss_script_updated': []}}} {'API_PASSWORD': 'xxxxxxxxxx', 'API_USERNAME': 'xxxxxxx', 'AUTOPKG_VERSION': '2.0.2', 'CATEGORY': 'Google', 'CHECK_FILESIZE_ONLY': False, 'DESCRIPTION': 'Google Chrome is a browser that combines a minimal design ' 'with sophisticated technology to make the web faster, safer, ' 'and easier.', 'DOWNLOAD_URL': 'https://dl.google.com/chrome/mac/stable/gcem/GoogleChrome.pkg', 'FAIL_RECIPES_WITHOUT_TRUST_INFO': False, 'GIT_PATH': '/usr/local/git/bin/git', 'GROUPNAME': 'GoogleChrome', 'GROUP_NAME': 'GoogleChrome-update-smart', 'GROUP_TEMPLATE': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/SmartGroupTemplate.xml', 'ICON': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/GoogleChromeEnterprise.png', 'JSS_INVENTORY_NAME': 'Google Chrome.app', 'JSS_REPOS': [{'name': 'JDS-1', 'password': 'xxxxxxx'}], 'JSS_SUPPRESS_WARNINGS': True, 'JSS_URL': 'https://jss.example.com:8443', 'JSS_VERIFY_SSL': True, 'NAME': 'Google Chrome', 'PARENT_RECIPES': ['/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/GoogleChrome/GoogleChromePkg.pkg.recipe', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/GoogleChrome/GoogleChromePkg.download.recipe'], 'POLICY_CATEGORY': 'Testing', 'POLICY_TEMPLATE': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/PolicyTemplate.xml', 'RECIPE_CACHE_DIR': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise', 'RECIPE_DIR': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS', 'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'], 'RECIPE_PATH': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/GoogleChromeEnterprise.jss.recipe', 'RECIPE_REPOS': {'/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes': {'URL': 'https://github.com/autopkg/grahampugh-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes': {'URL': 'https://github.com/autopkg/hansen-m-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes': {'URL': 'https://github.com/autopkg/hjuutilainen-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes': {'URL': 'https://github.com/autopkg/homebysix-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jazzace-recipes': {'URL': 'https://github.com/autopkg/jazzace-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jleggat-recipes': {'URL': 'https://github.com/autopkg/jleggat-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.joshua-d-miller-recipes': {'URL': 'https://github.com/autopkg/joshua-d-miller-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jps3-recipes': {'URL': 'https://github.com/autopkg/jps3-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes': {'URL': 'https://github.com/autopkg/jss-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.moofit-recipes': {'URL': 'https://github.com/autopkg/moofit-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.neilmartin83-recipes': {'URL': 'https://github.com/autopkg/neilmartin83-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.novaksam-recipes': {'URL': 'https://github.com/autopkg/novaksam-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {'URL': 'https://github.com/autopkg/recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes': {'URL': 'https://github.com/autopkg/rtrouton-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rustymyers-recipes': {'URL': 'https://github.com/autopkg/rustymyers-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes': {'URL': 'https://github.com/autopkg/scriptingosx-recipes.git'}, '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes': {'URL': 'https://github.com/autopkg/timsutton-recipes.git'}}, 'RECIPE_SEARCH_DIRS': ['.', '~/Library/AutoPkg/Recipes', '/Library/AutoPkg/Recipes', '/Users/username/Library/AutoPkg/LocalRecipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.homebysix-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rustymyers-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.novaksam-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.joshua-d-miller-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jleggat-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.neilmartin83-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahampugh-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jps3-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.jazzace-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.moofit-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS', '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/GoogleChrome'], 'STOP_IF_NO_JSS_UPLOAD': True, 'category': 'Google', 'destination_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/GoogleChrome-81.0.4044.92.pkg', 'download_changed': True, 'etag': '"5873df"', 'expected_authority_names': ['Developer ID Installer: Google LLC (EQHXZ8M8AV)', 'Developer ID Certification Authority', 'Apple Root CA'], 'filename': 'GoogleChrome.pkg', 'flat_pkg_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg', 'force_policy_state': True, 'groups': [{'name': 'GoogleChrome-update-smart', 'smart': True, 'template_path': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/SmartGroupTemplate.xml'}], 'info_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack/Google ' 'Chrome.app', 'input_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg', 'jss_changed_objects': {'jss_category_added': [], 'jss_extension_attribute_added': [], 'jss_extension_attribute_updated': [], 'jss_group_added': [], 'jss_group_updated': [], 'jss_icon_uploaded': [], 'jss_package_added': [], 'jss_package_updated': [], 'jss_policy_added': [], 'jss_policy_updated': [], 'jss_repo_updated': [], 'jss_script_added': [], 'jss_script_updated': []}, 'jss_inventory_name': 'Google Chrome.app', 'last_modified': 'Thu, 02 Apr 2020 01:25:08 GMT', 'os_requirements': '', 'overwrite': True, 'package_boot_volume_required': 'True', 'package_info': '', 'package_notes': '', 'package_priority': '10', 'package_reboot': 'False', 'path_list': ['/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack'], 'pathname': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg', 'pkg_path': '', 'pkg_payload_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/unpack/GoogleChrome.pkg/Payload', 'plist_keys': {'CFBundleShortVersionString': 'version'}, 'plist_reader_output_variables': {'version': '81.0.4044.92'}, 'policy_action_type': 'Install', 'policy_category': 'Testing', 'policy_template': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/PolicyTemplate.xml', 'prefetch_filename': False, 'prod_name': 'Google Chrome', 'self_service_description': 'Google Chrome is a browser that combines a ' 'minimal design with sophisticated technology to ' 'make the web faster, safer, and easier.', 'self_service_icon': '/Users/username/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes/JSS/GoogleChromeEnterprise.png', 'skip_scope': False, 'skip_scripts': False, 'source_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg', 'url': 'https://dl.google.com/chrome/mac/stable/gcem/GoogleChrome.pkg', 'url_downloader_summary_result': {'data': {'download_path': '/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg'}, 'summary_text': 'The following new items ' 'were downloaded:'}, 'verbose': 3, 'version': '81.0.4044.92'} Receipt written to /Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/receipts/GoogleChromeEnterprise.jss-receipt-20200408-173333.plist

The following new items were downloaded: Download Path


/Users/username/Library/AutoPkg/Cache/com.github.rtrouton.jss.googlechromeenterprise/downloads/GoogleChrome.pkg  
staze commented 4 years ago

So, fwiw, just made my own jss recipe for the Chrome PKG, and it does the same thing. Runs fine, doesn't upload to JSS. No warning/error/etc. =/

staze commented 4 years ago

fwiw, running latest (released) autopkgr 1.5.2, autopkg 2.0.2, jssimporter 1.1.0, and git 2.2.1.

Kinda wondering if we're not passing something jssimporter wants...

rtrouton commented 4 years ago

Try updating your repo and trying again with my recipe. It turns out that the parent GoogleChromePkg.pkg recipe wasn't passing along a pkg_path variable that JSSImporter is looking for:

PR: https://github.com/autopkg/recipes/pull/342

staze commented 4 years ago

bam, that did it. Thank you!

staze commented 4 years ago

dumb that jssimporter just silently fails in that situation. At least, as far as i could find.