Menu

Server Version Unavailable at ... vimService.wsdl

Jon Malic
2019-06-29
2019-07-01
  • Jon Malic

    Jon Malic - 2019-06-29

    Hello,

    I am getting the following error and am hoping that I have provided you with enough info to troubleshoot:

    Server version unavailable at 'https://10.0.0.15:443/sdk/vimService.wsdl' at /usr/share/perl/5.26/VMware/VICommon.pm line 704.

    Try to start vEMan v0.9.6_BETA for Linux at the commandline to see debug output

    vmware-version:
    vSphere SDK for Perl version: 6.7.0
    Script 'vmware-cmd' version: 6.7.0

    • Using vEMan 0.9.6_BETA
    • Password doesn't contain special characters
    • I don't have any file called ~./vEMan/sessiondata when the program is running
    • vEMan settings look accurate (replaced HASHPW here for security purposes):

    ~./vEMan/settings
    VUSER="root"
    HASHPW="blah blah blah"
    SRV="10.0.0.15"

    • In the console output below I do see many references to this:
    /tmp/vEMan_v0.9.6/libs/ESXMGR.vEMan: line 4: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp: Permission denied
    
    • Even after running sudo chmod +777 ~/.vEMan/progress.tmp I still get the same error
    • Here's the console output when I run it:
    DEBUG: User variable file /tmp/vEMan_v0.9.6/etc/uservars_vEMan.cfg found.
    DEBUG: User variable file /tmp/vEMan_v0.9.6/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /tmp/vEMan_v0.9.6/etc/sysvars_vEMan.cfg included successfully.
    DEBUG: included >F_MKCFG< successfully
    DEBUG: included >F_PARENTF< successfully
    DEBUG: included >F_HELP< successfully
    DEBUG: included >F_VERSION< successfully
    DEBUG: included >F_LICENSE< successfully
    DEBUG: included >F_INSTALLER< successfully
    DEBUG: included >F_ERR< successfully
    DEBUG: included >F_REVIEWER< successfully
    DEBUG: Requirement /tmp/vEMan_v0.9.6/vEMan met.
    DEBUG: Requirement /usr/bin/yad met.
    DEBUG: Requirement /tmp/vEMan_v0.9.6/vmapps/general/connect.pl met.
    DEBUG: Requirement /tmp/vEMan_v0.9.6/libs/getx509certificate.vEMan met.
    DEBUG: Requirement /usr/bin/ovftool met.
    DEBUG: Requirement /usr/bin/vncviewer met.
    DEBUG: Requirement /usr/bin/ovftool met.
    DEBUG: Requirement /usr/bin/vmware-cmd met.
    DEBUG: Requirement /bin/nc met.
    DEBUG: Requirement /usr/bin/esxcli met.
    DEBUG: Requirement /tmp/vEMan_v0.9.6/libs/runFUNCTION.vEMan met.
    DEBUG: Requirement /usr/bin/openssl met.
    DEBUG: Requirement /tmp/vEMan_v0.9.6/vmapps/vm/vminfo.pl met.
    DEBUG: Requirement /tmp/vEMan_v0.9.6/vmapps/vm/vmcontrol.pl met.
    DEBUG: Requirement /tmp/vEMan_v0.9.6/vmapps/vm/snapshotmanager.pl met.
    DEBUG: vEMan has been executed before. Skipping installer.
    DEBUG: starting auth popup
    DEBUG: Argument given is valid (F_GETCFG)
    DEBUG: User variable file /tmp/vEMan_v0.9.6/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /tmp/vEMan_v0.9.6/etc/sysvars_vEMan.cfg included successfully.
    /tmp/vEMan_v0.9.6/libs/runFUNCTION.vEMan: line 111: /home/don-verga-sr/.vEMan/vEMan.log: Permission denied
    ****************************************
    This is vEMan v0.9.6_BETA
    ****************************************
    DEBUG: included >F_CHKESXVER< successfully
    DEBUG: included >F_MGUSR< successfully
    DEBUG: included >F_ADDUSR< successfully
    DEBUG: included >F_MSG< successfully
    DEBUG: included >F_CHGUSR< successfully
    DEBUG: included >F_USERMGR< successfully
    DEBUG: included >F_REVIEWER< successfully
    DEBUG: included >F_NOTREADY< successfully
    DEBUG: included >F_SCANNET< successfully
    DEBUG: included >F_SCANDS< successfully
    DEBUG: included >F_HOSTMGR< successfully
    DEBUG: included >F_SAVEOVFSET< successfully
    DEBUG: included >F_VERSION< successfully
    DEBUG: included >F_HELP< successfully
    DEBUG: included >F_SNAPMGR< successfully
    DEBUG: included >F_VMEDITOR< successfully
    DEBUG: included >F_VMMGR< successfully
    DEBUG: included >F_POWERACT< successfully
    DEBUG: included >F_MAINLOOP< successfully
    DEBUG: included >F_ACTIONS< successfully
    DEBUG: included >F_AUTH< successfully
    DEBUG: included >F_CHKCFG< successfully
    DEBUG: included >F_CONSOLEMGR< successfully
    DEBUG: included >F_CRTCOOKIE< successfully
    DEBUG: included >F_CRTVMLIST< successfully
    DEBUG: included >F_DEPLOVF< successfully
    DEBUG: included >F_DEPLVMX< successfully
    DEBUG: included >F_DETECTVNC< successfully
    DEBUG: included >F_DISABLEVNC< successfully
    DEBUG: included >F_ENABLEVNC< successfully
    DEBUG: included >F_ERR< successfully
    DEBUG: included >F_ESXMGR< successfully
    DEBUG: included >F_GETCFG< successfully
    DEBUG: included >F_GETFREEPORT< successfully
    DEBUG: included >F_GETVMMANUAL< successfully
    DEBUG: included >F_GETVMPATH< successfully
    DEBUG: included >F_LOGIN< successfully
    DEBUG: included >F_MKCFG< successfully
    DEBUG: included >F_MKOVFCFG< successfully
    DEBUG: included >F_OPENCONSOLE< successfully
    DEBUG: included >F_POWER< successfully
    DEBUG: included >F_SELECTVM< successfully
    DEBUG: included >F_SPACECONV< successfully
    DEBUG: included >F_SUSPEND< successfully
    DEBUG: included >F_PARENTF< successfully
    DEBUG: included >F_DEC< successfully
    DEBUG: included >F_DELETEVM< successfully
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/don-verga-sr/.vEMan/10.0.0.15/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    DEBUG: setting file included successfully
    DEBUG: selected 10.0.0.15, root, XXXXXXX (PW hidden), button id: 23
    DEBUG: making config
    *** WARNING : deprecated key derivation used.
    Using -iter or -pbkdf2 would be better.
    DEBUG: Hashed pass is: blah blah blah
    /tmp/vEMan_v0.9.6/libs/MKCFG.vEMan: line 16: /home/don-verga-sr/.vEMan/settings: Permission denied
    /tmp/vEMan_v0.9.6/libs/MKCFG.vEMan: line 17: /home/don-verga-sr/.vEMan/settings: Permission denied
    tee: /home/don-verga-sr/.vEMan/settings: Permission denied
    SRV="10.0.0.15"
    ./vEMan: line 264: /home/don-verga-sr/.vEMan/progress.tmp: Permission denied
    mkdir: cannot create directory ‘/home/don-verga-sr/.vEMan/certs/’: Permission denied
    Connecting to 10.0.0.15 port 443
    Generating Certificate .... Can't open /home/don-verga-sr/.vEMan/certs//10.0.0.15_vm.crt for writing, No such file or directory
    140225543401920:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('/home/don-verga-sr/.vEMan/certs//10.0.0.15_vm.crt','wb')
    140225543401920:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
    done.
    DEBUG: Cert fetched successfully.
    No session file detected. Creating one..
    HASH is blah blah blah
    *** WARNING : deprecated key derivation used.
    Using -iter or -pbkdf2 would be better.
    ./vEMan: line 277: /home/don-verga-sr/.vEMan/progress.tmp: Permission denied
    DEBUG: Error (1) checking authentication or creating session cookie file (F_CRTCOOKIE)
    DEBUG: Return message was: Server version unavailable at 'https://10.0.0.15:443/sdk/vimService.wsdl' at /usr/share/perl/5.26/VMware/VICommon.pm line 704.
    DEBUG: Argument given is valid (F_ERR Target said:\n\nServer version unavailable at 'https://10.0.0.15:443/sdk/vimService.wsdl' at /usr/share/perl/5.26/VMware/VICommon.pm line 704.\n)
    DEBUG: User variable file /tmp/vEMan_v0.9.6/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /tmp/vEMan_v0.9.6/etc/sysvars_vEMan.cfg included successfully.
    /tmp/vEMan_v0.9.6/libs/runFUNCTION.vEMan: line 111: /home/don-verga-sr/.vEMan/vEMan.log: Permission denied
    ****************************************
    This is vEMan v0.9.6_BETA
    ****************************************
    DEBUG: included >F_CHKESXVER< successfully
    DEBUG: included >F_MGUSR< successfully
    DEBUG: included >F_ADDUSR< successfully
    DEBUG: included >F_MSG< successfully
    DEBUG: included >F_CHGUSR< successfully
    DEBUG: included >F_USERMGR< successfully
    DEBUG: included >F_REVIEWER< successfully
    DEBUG: included >F_NOTREADY< successfully
    DEBUG: included >F_SCANNET< successfully
    DEBUG: included >F_SCANDS< successfully
    DEBUG: included >F_HOSTMGR< successfully
    DEBUG: included >F_SAVEOVFSET< successfully
    DEBUG: included >F_VERSION< successfully
    DEBUG: included >F_HELP< successfully
    DEBUG: included >F_SNAPMGR< successfully
    DEBUG: included >F_VMEDITOR< successfully
    DEBUG: included >F_VMMGR< successfully
    DEBUG: included >F_POWERACT< successfully
    DEBUG: included >F_MAINLOOP< successfully
    DEBUG: included >F_ACTIONS< successfully
    DEBUG: included >F_AUTH< successfully
    DEBUG: included >F_CHKCFG< successfully
    DEBUG: included >F_CONSOLEMGR< successfully
    DEBUG: included >F_CRTCOOKIE< successfully
    DEBUG: included >F_CRTVMLIST< successfully
    DEBUG: included >F_DEPLOVF< successfully
    DEBUG: included >F_DEPLVMX< successfully
    DEBUG: included >F_DETECTVNC< successfully
    DEBUG: included >F_DISABLEVNC< successfully
    DEBUG: included >F_ENABLEVNC< successfully
    DEBUG: included >F_ERR< successfully
    DEBUG: included >F_ESXMGR< successfully
    DEBUG: included >F_GETCFG< successfully
    DEBUG: included >F_GETFREEPORT< successfully
    DEBUG: included >F_GETVMMANUAL< successfully
    DEBUG: included >F_GETVMPATH< successfully
    DEBUG: included >F_LOGIN< successfully
    DEBUG: included >F_MKCFG< successfully
    DEBUG: included >F_MKOVFCFG< successfully
    DEBUG: included >F_OPENCONSOLE< successfully
    DEBUG: included >F_POWER< successfully
    DEBUG: included >F_SELECTVM< successfully
    DEBUG: included >F_SPACECONV< successfully
    DEBUG: included >F_SUSPEND< successfully
    DEBUG: included >F_PARENTF< successfully
    DEBUG: included >F_DEC< successfully
    DEBUG: included >F_DELETEVM< successfully
    DEBUG: aborted by user
    environment: line 3: : No such file or directory
    DEBUG: reached exit function
    DEBUG: Cleanup end
    DEBUG: Starting keep-alive handler...
    DEBUG: Answer was 23
    DEBUG: Manage_VM was choosen...
    DEBUG: opening action Manage_VM
    ./vEMan: line 624: /home/don-verga-sr/.vEMan/progress.tmp: Permission denied
    DEBUG: FIRSTACT was 0
    ./vEMan: line 632: /home/don-verga-sr/.vEMan/progress.tmp: Permission denied
    DEBUG: firstrun. will skip keep-alive...
    FORCECON (0), FIRSTRUN (1)
    DEBUG: Argument given is valid (F_MAINLOOP)
    DEBUG: User variable file /tmp/vEMan_v0.9.6/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /tmp/vEMan_v0.9.6/etc/sysvars_vEMan.cfg included successfully.
    /tmp/vEMan_v0.9.6/libs/runFUNCTION.vEMan: line 111: /home/don-verga-sr/.vEMan/vEMan.log: Permission denied
    ****************************************
    This is vEMan v0.9.6_BETA
    ****************************************
    DEBUG: included >F_CHKESXVER< successfully
    DEBUG: included >F_MGUSR< successfully
    DEBUG: included >F_ADDUSR< successfully
    DEBUG: included >F_MSG< successfully
    DEBUG: included >F_CHGUSR< successfully
    DEBUG: included >F_USERMGR< successfully
    DEBUG: included >F_REVIEWER< successfully
    DEBUG: included >F_NOTREADY< successfully
    DEBUG: included >F_SCANNET< successfully
    DEBUG: included >F_SCANDS< successfully
    DEBUG: included >F_HOSTMGR< successfully
    DEBUG: included >F_SAVEOVFSET< successfully
    DEBUG: included >F_VERSION< successfully
    DEBUG: included >F_HELP< successfully
    DEBUG: included >F_SNAPMGR< successfully
    DEBUG: included >F_VMEDITOR< successfully
    DEBUG: included >F_VMMGR< successfully
    DEBUG: included >F_POWERACT< successfully
    DEBUG: included >F_MAINLOOP< successfully
    DEBUG: included >F_ACTIONS< successfully
    DEBUG: included >F_AUTH< successfully
    DEBUG: included >F_CHKCFG< successfully
    DEBUG: included >F_CONSOLEMGR< successfully
    DEBUG: included >F_CRTCOOKIE< successfully
    DEBUG: included >F_CRTVMLIST< successfully
    DEBUG: included >F_DEPLOVF< successfully
    DEBUG: included >F_DEPLVMX< successfully
    DEBUG: included >F_DETECTVNC< successfully
    DEBUG: included >F_DISABLEVNC< successfully
    DEBUG: included >F_ENABLEVNC< successfully
    DEBUG: included >F_ERR< successfully
    DEBUG: included >F_ESXMGR< successfully
    DEBUG: included >F_GETCFG< successfully
    DEBUG: included >F_GETFREEPORT< successfully
    DEBUG: included >F_GETVMMANUAL< successfully
    DEBUG: included >F_GETVMPATH< successfully
    DEBUG: included >F_LOGIN< successfully
    DEBUG: included >F_MKCFG< successfully
    DEBUG: included >F_MKOVFCFG< successfully
    DEBUG: included >F_OPENCONSOLE< successfully
    DEBUG: included >F_POWER< successfully
    DEBUG: included >F_SELECTVM< successfully
    DEBUG: included >F_SPACECONV< successfully
    DEBUG: included >F_SUSPEND< successfully
    DEBUG: included >F_PARENTF< successfully
    DEBUG: included >F_DEC< successfully
    DEBUG: included >F_DELETEVM< successfully
    DEBUG: Res before: 
    /tmp/vEMan_v0.9.6/libs/ESXMGR.vEMan: line 4: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp: Permission denied
    /tmp/vEMan_v0.9.6/libs/ESXMGR.vEMan: line 5: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp: Permission denied
    /tmp/vEMan_v0.9.6/libs/ESXMGR.vEMan: line 10: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp: Permission denied
    DEBUG: TARGETVM is  , AANS is: 
    DEBUG: F_ESXMGR starting
    /tmp/vEMan_v0.9.6/libs/ESXMGR.vEMan: line 18: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp: Permission denied
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/don-verga-sr/.vEMan/10.0.0.15/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    HASH is blah blah blah
    tail: cannot open '/home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp' for reading: No such file or directory
    tail: no files remaining
    *** WARNING : deprecated key derivation used.
    Using -iter or -pbkdf2 would be better.
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Can't find /home/don-verga-sr/.vEMan/10.0.0.15/lastovf.cfg file, nothing to include.
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    /tmp/vEMan_v0.9.6/libs/CRTCOOKIE.vEMan: line 6: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp: Permission denied
    No session file detected. Creating one..
    HASH is blah blah blah
    tail: cannot open '/home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp' for reading: No such file or directory
    tail: no files remaining
    *** WARNING : deprecated key derivation used.
    Using -iter or -pbkdf2 would be better.
    /tmp/vEMan_v0.9.6/libs/CRTCOOKIE.vEMan: line 18: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp: Permission denied
    DEBUG: Error checking authentication or creating cookie file (lib F_CRTCOOKIE)
    DEBUG: Return message was: Server version unavailable at 'https://10.0.0.15:443/sdk/vimService.wsdl' at /usr/share/perl/5.26/VMware/VICommon.pm line 704.
    DEBUG: aborted by user
    environment: line 3: : No such file or directory
    DEBUG: reached exit function
    DEBUG: Cleanup end
    DEBUG: Last exit before Texas..
    DEBUG: informed keepalive handler about the exit
    DEBUG: reached exit function
    DEBUG: Cleanup end
    
     
  • Jon Malic

    Jon Malic - 2019-06-29
    • After re-reading my previous post I noticed this line:
    DEBUG: No source file detected.
    DEBUG: Can't find /home/don-verga-sr/.vEMan/10.0.0.15/lastovf.cfg file, nothing to include.
    
    • If this is relevant, I am wondering where I can find this
     
  • secure diversITy

    Wow someone still using this? :)

    You have several permission issues the main one is:

    DEBUG: Hashed pass is: blah blah blah
    /tmp/vEMan_v0.9.6/libs/MKCFG.vEMan: line 16: /home/don-verga-sr/.vEMan/settings: Permission denied
    /tmp/vEMan_v0.9.6/libs/MKCFG.vEMan: line 17: /home/don-verga-sr/.vEMan/settings: Permission denied
    tee: /home/don-verga-sr/.vEMan/settings: Permission denied
    SRV="10.0.0.15"
    ./vEMan: line 264: /home/don-verga-sr/.vEMan/progress.tmp: Permission denied
    mkdir: cannot create directory ‘/home/don-verga-sr/.vEMan/certs/’: Permission denied

    Maybe you started vEMan as root/with sudo once?

    Anyways do this:

    sudo chmod -R 765 ~/.vEMan

    and try again.

     
    • Jon Malic

      Jon Malic - 2019-06-30

      Hey secure diversITy, thanks for the reply. I can confirm that the permissions are now set correctly for ~/.vEMan as per your advice, but still I'm getting the exact same error. I'm not sure what else I can try or show in terms of current config...

       

Log in to post a comment.