Skip to content

Instantly share code, notes, and snippets.

@homebysix
Created January 12, 2020 00:06
Show Gist options
  • Save homebysix/aac010cce244d4e12a7bad38a1417665 to your computer and use it in GitHub Desktop.
Save homebysix/aac010cce244d4e12a7bad38a1417665 to your computer and use it in GitHub Desktop.
MakeCatalogs unicode error.log
% rm -rfv pkgs/apps/Firefox-72.0.1.dmg pkgsinfo/apps/Firefox-72.0.1.plist; makecatalogs
% autopkg run -vvvv Firefox.munki MakeCatalogs.munki
Processing Firefox.munki...
{'AUTOPKG_VERSION': u'1.4.1',
u'DISABLE_CODE_SIGNATURE_VERIFICATION': False,
u'LOCALE': u'en-US',
u'MUNKI_REPO': u'~/munki_repo',
u'MUNKI_REPO_SUBDIR': u'apps',
u'NAME': u'Firefox',
'PARENT_RECIPES': [u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/Mozilla/Firefox.munki.recipe',
u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/Mozilla/Firefox.download.recipe'],
'RECIPE_CACHE_DIR': u'~/Library/AutoPkg/Cache/local.munki.Firefox',
'RECIPE_DIR': u'~/Library/AutoPkg/RecipeOverrides',
u'RECIPE_OVERRIDE_DIRS': [u'~/Library/AutoPkg/RecipeOverrides'],
'RECIPE_PATH': u'~/Library/AutoPkg/RecipeOverrides/Firefox.munki.recipe',
u'RECIPE_REPOS': {u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {u'URL': u'https://github.com/autopkg/recipes'},
u'~/Library/AutoPkg/RecipeRepos/com.github.hjuutilainen.autopkg-virustotalanalyzer': {u'URL': u'https://github.com/hjuutilainen/autopkg-virustotalanalyzer'}},
u'RECIPE_SEARCH_DIRS': [u'.',
u'~/Library/AutoPkg/Recipes',
u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes',
u'~/Library/AutoPkg/RecipeRepos/com.github.hjuutilainen.autopkg-virustotalanalyzer'],
u'RELEASE': u'latest',
u'pkginfo': {
catalogs = (
testing
);
category = "Web Browsers";
description = "Web browser built with open-source components by Mozilla.";
developer = Mozilla;
"display_name" = "Mozilla Firefox";
"items_to_copy" = (
{
"destination_path" = "/Applications";
mode = 775;
"source_item" = "Firefox.app";
}
);
name = Firefox;
"unattended_install" = 1;
"unattended_uninstall" = 1;
},
'verbose': 4}
MozillaURLProvider
{'Input': {'locale': u'en-US',
'product_name': u'firefox',
'release': u'latest'}}
MozillaURLProvider: Found URL https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US
{'Output': {'url': u'https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US'}}
URLDownloader
{'Input': {'filename': u'Firefox.dmg',
'url': u'https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US'}}
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: No value supplied for CURL_PATH, setting default value of: /usr/bin/curl
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing ~/Library/AutoPkg/Cache/local.munki.Firefox/downloads/Firefox.dmg
{'Output': {'pathname': u'~/Library/AutoPkg/Cache/local.munki.Firefox/downloads/Firefox.dmg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'DISABLE_CODE_SIGNATURE_VERIFICATION': False,
'input_path': u'~/Library/AutoPkg/Cache/local.munki.Firefox/downloads/Firefox.dmg/Firefox*.app',
'requirement': u'anchor apple generic and certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "43AQ936H96"'}}
CodeSignatureVerifier: Mounted disk image ~/Library/AutoPkg/Cache/local.munki.Firefox/downloads/Firefox.dmg
CodeSignatureVerifier: Using path '/private/tmp/dmg.mfqclb/Firefox.app' matched from globbed '/private/tmp/dmg.mfqclb/Firefox*.app'.
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification not defined. Using codesign defaults...
CodeSignatureVerifier: /private/tmp/dmg.mfqclb/Firefox.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.mfqclb/Firefox.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.mfqclb/Firefox.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
{'Output': {}}
MunkiImporter
{'Input': {'MUNKI_REPO': u'~/munki_repo',
'pkg_path': u'~/Library/AutoPkg/Cache/local.munki.Firefox/downloads/Firefox.dmg',
'pkginfo': {
catalogs = (
testing
);
category = "Web Browsers";
description = "Web browser built with open-source components by Mozilla.";
developer = Mozilla;
"display_name" = "Mozilla Firefox";
"items_to_copy" = (
{
"destination_path" = "/Applications";
mode = 775;
"source_item" = "Firefox.app";
}
);
name = Firefox;
"unattended_install" = 1;
"unattended_uninstall" = 1;
},
'repo_subdirectory': u'apps'}}
MunkiImporter: Copied pkginfo to ~/munki_repo/pkgsinfo/apps/Firefox-72.0.1.plist
MunkiImporter: Copied pkg to ~/munki_repo/pkgs/apps/Firefox-72.0.1.dmg
{'Output': {'munki_importer_summary_result': {'data': {'catalogs': u'testing',
'name': u'Firefox',
'pkg_repo_path': u'apps/Firefox-72.0.1.dmg',
'pkginfo_path': u'apps/Firefox-72.0.1.plist',
'version': u'72.0.1'},
'report_fields': ['name',
'version',
'catalogs',
'pkginfo_path',
'pkg_repo_path'],
'summary_text': 'The following new items were imported into Munki:'},
'munki_info': {
"_metadata" = {
"created_by" = dfnq;
"creation_date" = "2020-01-12 00:02:21 +0000";
"munki_version" = "4.0.1.3899";
"os_version" = "10.15.2";
};
autoremove = 0;
catalogs = (
testing
);
category = "Web Browsers";
description = "Web browser built with open-source components by Mozilla.";
developer = Mozilla;
"display_name" = "Mozilla Firefox";
"installer_item_hash" = cd148dfa42e647f2c1ecbdf32c071ee68bcd783ff1cfea08670f2907df9d4ed7;
"installer_item_location" = "apps/Firefox-72.0.1.dmg";
"installer_item_size" = 71019;
"installer_type" = "copy_from_dmg";
installs = (
{
CFBundleIdentifier = "org.mozilla.firefox";
CFBundleName = Firefox;
CFBundleShortVersionString = "72.0.1";
CFBundleVersion = "7220.1.7";
minosversion = "10.9.0";
path = "/Applications/Firefox.app";
type = application;
"version_comparison_key" = CFBundleShortVersionString;
}
);
"items_to_copy" = (
{
"destination_path" = "/Applications";
mode = 775;
"source_item" = "Firefox.app";
}
);
"minimum_os_version" = "10.9.0";
name = Firefox;
"unattended_install" = 1;
"unattended_uninstall" = 1;
"uninstall_method" = "remove_copied_items";
uninstallable = 1;
version = "72.0.1";
},
'munki_repo_changed': True,
'pkg_repo_path': u'~/munki_repo/pkgs/apps/Firefox-72.0.1.dmg',
'pkginfo_repo_path': u'~/munki_repo/pkgsinfo/apps/Firefox-72.0.1.plist'}}
{'AUTOPKG_VERSION': u'1.4.1',
'CHECK_FILESIZE_ONLY': False,
'CURL_PATH': '/usr/bin/curl',
u'DISABLE_CODE_SIGNATURE_VERIFICATION': False,
u'LOCALE': u'en-US',
u'MUNKI_REPO': u'~/munki_repo',
u'MUNKI_REPO_SUBDIR': u'apps',
u'NAME': u'Firefox',
'PARENT_RECIPES': [u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/Mozilla/Firefox.munki.recipe',
u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/Mozilla/Firefox.download.recipe'],
'RECIPE_CACHE_DIR': u'~/Library/AutoPkg/Cache/local.munki.Firefox',
'RECIPE_DIR': u'~/Library/AutoPkg/RecipeOverrides',
u'RECIPE_OVERRIDE_DIRS': [u'~/Library/AutoPkg/RecipeOverrides'],
'RECIPE_PATH': u'~/Library/AutoPkg/RecipeOverrides/Firefox.munki.recipe',
u'RECIPE_REPOS': {u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {u'URL': u'https://github.com/autopkg/recipes'},
u'~/Library/AutoPkg/RecipeRepos/com.github.hjuutilainen.autopkg-virustotalanalyzer': {u'URL': u'https://github.com/hjuutilainen/autopkg-virustotalanalyzer'}},
u'RECIPE_SEARCH_DIRS': [u'.',
u'~/Library/AutoPkg/Recipes',
u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes',
u'~/Library/AutoPkg/RecipeRepos/com.github.hjuutilainen.autopkg-virustotalanalyzer'],
u'RELEASE': u'latest',
u'comment': u'Use wildcard matching for the app so it will also match FirefoxDeveloperEdition.app and FirefoxNightly.app',
'download_changed': False,
'etag': '',
u'filename': u'Firefox.dmg',
u'input_path': u'~/Library/AutoPkg/Cache/local.munki.Firefox/downloads/Firefox.dmg/Firefox*.app',
'last_modified': '',
u'locale': u'en-US',
'munki_importer_summary_result': {'data': {'catalogs': u'testing',
'name': u'Firefox',
'pkg_repo_path': u'apps/Firefox-72.0.1.dmg',
'pkginfo_path': u'apps/Firefox-72.0.1.plist',
'version': u'72.0.1'},
'report_fields': ['name',
'version',
'catalogs',
'pkginfo_path',
'pkg_repo_path'],
'summary_text': 'The following new items were imported into Munki:'},
'munki_info': {
"_metadata" = {
"created_by" = dfnq;
"creation_date" = "2020-01-12 00:02:21 +0000";
"munki_version" = "4.0.1.3899";
"os_version" = "10.15.2";
};
autoremove = 0;
catalogs = (
testing
);
category = "Web Browsers";
description = "Web browser built with open-source components by Mozilla.";
developer = Mozilla;
"display_name" = "Mozilla Firefox";
"installer_item_hash" = cd148dfa42e647f2c1ecbdf32c071ee68bcd783ff1cfea08670f2907df9d4ed7;
"installer_item_location" = "apps/Firefox-72.0.1.dmg";
"installer_item_size" = 71019;
"installer_type" = "copy_from_dmg";
installs = (
{
CFBundleIdentifier = "org.mozilla.firefox";
CFBundleName = Firefox;
CFBundleShortVersionString = "72.0.1";
CFBundleVersion = "7220.1.7";
minosversion = "10.9.0";
path = "/Applications/Firefox.app";
type = application;
"version_comparison_key" = CFBundleShortVersionString;
}
);
"items_to_copy" = (
{
"destination_path" = "/Applications";
mode = 775;
"source_item" = "Firefox.app";
}
);
"minimum_os_version" = "10.9.0";
name = Firefox;
"unattended_install" = 1;
"unattended_uninstall" = 1;
"uninstall_method" = "remove_copied_items";
uninstallable = 1;
version = "72.0.1";
},
'munki_repo_changed': True,
'pathname': u'~/Library/AutoPkg/Cache/local.munki.Firefox/downloads/Firefox.dmg',
u'pkg_path': u'~/munki_repo/pkgs/apps/Firefox-72.0.1.dmg',
'pkg_repo_path': u'~/munki_repo/pkgs/apps/Firefox-72.0.1.dmg',
u'pkginfo': {
catalogs = (
testing
);
category = "Web Browsers";
description = "Web browser built with open-source components by Mozilla.";
developer = Mozilla;
"display_name" = "Mozilla Firefox";
"items_to_copy" = (
{
"destination_path" = "/Applications";
mode = 775;
"source_item" = "Firefox.app";
}
);
name = Firefox;
"unattended_install" = 1;
"unattended_uninstall" = 1;
},
'pkginfo_repo_path': u'~/munki_repo/pkgsinfo/apps/Firefox-72.0.1.plist',
'prefetch_filename': False,
u'product_name': u'firefox',
u'release': u'latest',
u'repo_subdirectory': u'apps',
u'requirement': u'anchor apple generic and certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "43AQ936H96"',
'url': u'https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US',
'verbose': 4}
Receipt written to ~/Library/AutoPkg/Cache/local.munki.Firefox/receipts/Firefox-receipt-20200111-160221.plist
Processing MakeCatalogs.munki...
{'AUTOPKG_VERSION': u'1.4.1',
u'MUNKI_REPO': u'~/munki_repo',
'PARENT_RECIPES': [u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/Munki/MakeCatalogs.munki.recipe'],
'RECIPE_CACHE_DIR': u'~/Library/AutoPkg/Cache/local.munki.MakeCatalogs',
'RECIPE_DIR': u'~/Library/AutoPkg/RecipeOverrides',
u'RECIPE_OVERRIDE_DIRS': [u'~/Library/AutoPkg/RecipeOverrides'],
'RECIPE_PATH': u'~/Library/AutoPkg/RecipeOverrides/MakeCatalogs.munki.recipe',
u'RECIPE_REPOS': {u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes': {u'URL': u'https://github.com/autopkg/recipes'},
u'~/Library/AutoPkg/RecipeRepos/com.github.hjuutilainen.autopkg-virustotalanalyzer': {u'URL': u'https://github.com/hjuutilainen/autopkg-virustotalanalyzer'}},
u'RECIPE_SEARCH_DIRS': [u'.',
u'~/Library/AutoPkg/Recipes',
u'~/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes',
u'~/Library/AutoPkg/RecipeRepos/com.github.hjuutilainen.autopkg-virustotalanalyzer'],
'verbose': 4}
MakeCatalogsProcessor
{'Input': {'MUNKI_REPO': u'~/munki_repo'}}
makecatalogs failed:
Traceback (most recent call last):
File "/usr/local/munki/makecatalogs", line 109, in <module>
main()
File "/usr/local/munki/makecatalogs", line 98, in main
errors = makecatalogslib.makecatalogs(repo, options, output_fn=print)
File "/usr/local/munki/munkilib/admin/makecatalogslib.py", line 258, in makecatalogs
repo, options, output_fn=output_fn)
File "/usr/local/munki/munkilib/admin/makecatalogslib.py", line 231, in process_pkgsinfo
output_fn("Adding %s to %s..." % (pkginfo_ref, catalogname))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0308' in position 22: ordinal not in range(128)
Failed.
Receipt written to ~/Library/AutoPkg/Cache/local.munki.MakeCatalogs/receipts/MakeCatalogs-receipt-20200111-160222.plist
The following recipes failed:
MakeCatalogs.munki
Error in local.munki.MakeCatalogs: Processor: MakeCatalogsProcessor: Error: makecatalogs failed:
Traceback (most recent call last):
File "/usr/local/munki/makecatalogs", line 109, in <module>
main()
File "/usr/local/munki/makecatalogs", line 98, in main
errors = makecatalogslib.makecatalogs(repo, options, output_fn=print)
File "/usr/local/munki/munkilib/admin/makecatalogslib.py", line 258, in makecatalogs
repo, options, output_fn=output_fn)
File "/usr/local/munki/munkilib/admin/makecatalogslib.py", line 231, in process_pkgsinfo
output_fn("Adding %s to %s..." % (pkginfo_ref, catalogname))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0308' in position 22: ordinal not in range(128)
The following new items were imported into Munki:
Name Version Catalogs Pkginfo Path Pkg Repo Path
---- ------- -------- ------------ -------------
Firefox 72.0.1 testing apps/Firefox-72.0.1.plist apps/Firefox-72.0.1.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment