jssimporter / JSSImporter

JSSImporter is deprecated. Please see the wiki for alternatives
Apache License 2.0
145 stars 38 forks source link

[Errno 8] nodename nor servname provided, or not known #91

Closed janorn closed 7 years ago

janorn commented 8 years ago

Hi,

I have just configured AutoPKGr with JSSImporter. However I fail to get the recipes working. I have verified all usernames and passwords with the default command. All looks ok. I have tested to connect with Safari to the jss with the credentials.

I also verified that I could connect to our Distribution point. Which is on an SMB share.

Any clues?

$ autopkg run AdobeFlashPlayer.jss -v
Processing AdobeFlashPlayer.jss...
AdobeFlashURLProvider
AdobeFlashURLProvider: Found URL https://fpdownload.macromedia.com/get/flashplayer/pdc/23.0.0.205/install_flash_player_osx.dmg
URLDownloader
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing /Users/auto-user/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/downloads/AdobeFlashPlayer.dmg
EndOfCheckPhase
CodeSignatureVerifier
CodeSignatureVerifier: Mounted disk image /Users/auto-user/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/downloads/AdobeFlashPlayer.dmg
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "Adobe Flash Player.pkg":
CodeSignatureVerifier:    Status: signed by a certificate trusted by Mac OS X
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: Adobe Systems, Inc.
CodeSignatureVerifier:        SHA1 fingerprint: 9D 75 C9 20 01 4A 65 04 94 A7 63 95 E3 91 93 47 04 E8 57 DF
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
Versioner
Versioner: Mounted disk image /Users/auto-user/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/downloads/AdobeFlashPlayer.dmg
Versioner: Found version 23.0.0.205 in file /private/tmp/dmg.soUF1k/Install Adobe Flash Player.app/Contents/Info.plist
PkgCopier
PkgCopier: Mounted disk image /Users/auto-user/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/downloads/AdobeFlashPlayer.dmg
PkgCopier: Copied /private/tmp/dmg.0NDFh3/Install Adobe Flash Player.app/Contents/Resources/Adobe Flash Player.pkg to /Users/auto-user/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/AdobeFlashPlayer-23.0.0.205.pkg
JSSImporter
[Errno 8] nodename nor servname provided, or not known
Failed.
Receipt written to /Users/auto-user/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/receipts/AdobeFlashPlayer-receipt-20161028-135331.plist

The following recipes failed:
    AdobeFlashPlayer.jss
        Error in com.github.jss-recipes.jss.AdobeFlashPlayer: Processor: JSSImporter: Error: [Errno 8] nodename nor servname provided, or not known

The following packages were copied:
    Pkg Path                                                                                                        
    --------                                                                                                        
    /Users/auto-user/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/AdobeFlashPlayer-23.0.0.205.pkg  
janorn commented 8 years ago

More debugging.

name = "AdobeFlashPlayer-update-smart";
smart = 1;
"template_path" = "AdobeFlashPlayerSmartGroupTemplate.xml";
}
),
   'pkg_path': u'/Users/admin/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/AdobeFlashPlayer-23.0.0.205.pkg',
   'policy_category': u'Testing',
   'policy_template': u'PolicyTemplate.xml',
   'prod_name': u'AdobeFlashPlayer',
   'self_service_description': u'Adobe Flash Player is freeware software for using content created on the Adobe Flash platform, including viewing multimedia, executing rich Internet applications, and streaming video and audio.',
   'self_service_icon': u'AdobeFlashPlayer.png',
   'version': u'23.0.0.205'}}
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 JSS_MIGRATED, setting default value of: False
JSSImporter: No value supplied for os_requirements, setting default value of: 
JSSImporter: No value supplied for JSS_SUPPRESS_WARNINGS, setting default value of: True
[Errno 8] nodename nor servname provided, or not known
Failed.
Receipt written to /Users/admin/Library/AutoPkg/Cache/com.github.jss-recipes.jss.AdobeFlashPlayer/receipts/AdobeFlashPlayer-receipt-20161028-160119.plist
janorn commented 7 years ago

The solution for this is to name the Repo exactly as in the JSS if you add it manually. I had to add it manually because it wouldn't work when it was added directly in AutoPkgr.

We are using an SMB share.

Suggestion is to emphasis that the name of the Repo has to be exactly as the name in the JSS. Perhaps improve error detection in the code.