autopkg / smithjw-recipes

Smithjw's AutoPkg recipes
Apache License 2.0
14 stars 16 forks source link

FileMover fails on Viscosity [Errno 20] Not a directory #2

Closed krispayne closed 5 years ago

krispayne commented 5 years ago
[autopkg@vnetboot RecipeOverrides]$ autopkg run -vv Viscosity.jss.recipe
Processing Viscosity.jss.recipe...
WARNING: Viscosity.jss.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLDownloader
{'Input': {'filename': u'Viscosity.dmg',
           'url': u'https://www.sparklabs.com/downloads/Viscosity.dmg'}}
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: Item at URL is unchanged.
URLDownloader: Using existing /Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/downloads/Viscosity.dmg
{'Output': {'pathname': u'/Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/downloads/Viscosity.dmg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'input_path': u'/Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/downloads/Viscosity.dmg/Viscosity.app',
           'requirement': u'anchor apple generic and identifier "com.viscosityvpn.Viscosity" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or 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] = "34XR7GXFPX")'}}
CodeSignatureVerifier: Mounted disk image /Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/downloads/Viscosity.dmg
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification not defined. Using codesign defaults...
CodeSignatureVerifier: /private/tmp/dmg.0UEQY6/Viscosity.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.0UEQY6/Viscosity.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.0UEQY6/Viscosity.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
{'Output': {}}
AppDmgVersioner
{'Input': {'dmg_path': u'/Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/downloads/Viscosity.dmg'}}
AppDmgVersioner: Mounted disk image /Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/downloads/Viscosity.dmg
AppDmgVersioner: BundleID: com.viscosityvpn.Viscosity
AppDmgVersioner: Version: 1.7.16
{'Output': {'app_name': u'Viscosity.app',
            'bundleid': u'com.viscosityvpn.Viscosity',
            'version': u'1.7.16'}}
PkgRootCreator
{'Input': {'pkgdirs': {
    Applications = 0775;
},
           'pkgroot': u'/Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/Viscosity'}}
PkgRootCreator: Created /Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/Viscosity
PkgRootCreator: Creating Applications
PkgRootCreator: Created /Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/Viscosity/Applications
{'Output': {}}
FileMover
{'Input': {'source': u'/Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/downloads/Viscosity.dmg/Viscosity.app',
           'target': u'/Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/Viscosity/Applications/Viscosity.app'}}
[Errno 20] Not a directory
Failed.
Receipt written to /Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/receipts/Viscosity.jss-receipt-20190820-082530.plist

The following recipes failed:
    Viscosity.jss.recipe
        Error in local.jss.Viscosity: Processor: FileMover: Error: [Errno 20] Not a directory

Nothing downloaded, packaged or imported.
[autopkg@vnetboot RecipeOverrides]$

Not sure if it's a bad download or an issue with FileMover. I went and checked to see if there were additional options to give FileMover, but only source and target are available.

krispayne commented 5 years ago

ah, maybe Viscosity changed their distribution method?

[autopkg@vnetboot downloads]$ mv /Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/downloads/Viscosity.dmg/Viscosity.app ~/Library/AutoPkg/Cache/local.jss.Viscosity/Viscosity/Applications/Viscosity.app
mv: rename /Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/downloads/Viscosity.dmg/Viscosity.app to /Users/autopkg/Library/AutoPkg/Cache/local.jss.Viscosity/Viscosity/Applications/Viscosity.app: Not a directory
[autopkg@vnetboot downloads]$
krispayne commented 5 years ago

Was able to build my override off of https://github.com/autopkg/crystalllized-recipes/tree/master/Viscosity