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:Uservariablefile/tmp/vEMan_v0.9.6/etc/uservars_vEMan.cfgfound.DEBUG:Uservariablefile/tmp/vEMan_v0.9.6/etc/uservars_vEMan.cfgincludedsuccessfully.DEBUG:Systemvariablefile/tmp/vEMan_v0.9.6/etc/sysvars_vEMan.cfgincludedsuccessfully.DEBUG:included>F_MKCFG<successfullyDEBUG:included>F_PARENTF<successfullyDEBUG:included>F_HELP<successfullyDEBUG:included>F_VERSION<successfullyDEBUG:included>F_LICENSE<successfullyDEBUG:included>F_INSTALLER<successfullyDEBUG:included>F_ERR<successfullyDEBUG:included>F_REVIEWER<successfullyDEBUG:Requirement/tmp/vEMan_v0.9.6/vEManmet.DEBUG:Requirement/usr/bin/yadmet.DEBUG:Requirement/tmp/vEMan_v0.9.6/vmapps/general/connect.plmet.DEBUG:Requirement/tmp/vEMan_v0.9.6/libs/getx509certificate.vEManmet.DEBUG:Requirement/usr/bin/ovftoolmet.DEBUG:Requirement/usr/bin/vncviewermet.DEBUG:Requirement/usr/bin/ovftoolmet.DEBUG:Requirement/usr/bin/vmware-cmdmet.DEBUG:Requirement/bin/ncmet.DEBUG:Requirement/usr/bin/esxclimet.DEBUG:Requirement/tmp/vEMan_v0.9.6/libs/runFUNCTION.vEManmet.DEBUG:Requirement/usr/bin/opensslmet.DEBUG:Requirement/tmp/vEMan_v0.9.6/vmapps/vm/vminfo.plmet.DEBUG:Requirement/tmp/vEMan_v0.9.6/vmapps/vm/vmcontrol.plmet.DEBUG:Requirement/tmp/vEMan_v0.9.6/vmapps/vm/snapshotmanager.plmet.DEBUG:vEManhasbeenexecutedbefore.Skippinginstaller.DEBUG:startingauthpopupDEBUG:Argumentgivenisvalid(F_GETCFG)DEBUG:Uservariablefile/tmp/vEMan_v0.9.6/etc/uservars_vEMan.cfgincludedsuccessfully.DEBUG:Systemvariablefile/tmp/vEMan_v0.9.6/etc/sysvars_vEMan.cfgincludedsuccessfully./tmp/vEMan_v0.9.6/libs/runFUNCTION.vEMan: line 111: /home/don-verga-sr/.vEMan/vEMan.log:Permissiondenied****************************************ThisisvEManv0.9.6_BETA****************************************DEBUG:included>F_CHKESXVER<successfullyDEBUG:included>F_MGUSR<successfullyDEBUG:included>F_ADDUSR<successfullyDEBUG:included>F_MSG<successfullyDEBUG:included>F_CHGUSR<successfullyDEBUG:included>F_USERMGR<successfullyDEBUG:included>F_REVIEWER<successfullyDEBUG:included>F_NOTREADY<successfullyDEBUG:included>F_SCANNET<successfullyDEBUG:included>F_SCANDS<successfullyDEBUG:included>F_HOSTMGR<successfullyDEBUG:included>F_SAVEOVFSET<successfullyDEBUG:included>F_VERSION<successfullyDEBUG:included>F_HELP<successfullyDEBUG:included>F_SNAPMGR<successfullyDEBUG:included>F_VMEDITOR<successfullyDEBUG:included>F_VMMGR<successfullyDEBUG:included>F_POWERACT<successfullyDEBUG:included>F_MAINLOOP<successfullyDEBUG:included>F_ACTIONS<successfullyDEBUG:included>F_AUTH<successfullyDEBUG:included>F_CHKCFG<successfullyDEBUG:included>F_CONSOLEMGR<successfullyDEBUG:included>F_CRTCOOKIE<successfullyDEBUG:included>F_CRTVMLIST<successfullyDEBUG:included>F_DEPLOVF<successfullyDEBUG:included>F_DEPLVMX<successfullyDEBUG:included>F_DETECTVNC<successfullyDEBUG:included>F_DISABLEVNC<successfullyDEBUG:included>F_ENABLEVNC<successfullyDEBUG:included>F_ERR<successfullyDEBUG:included>F_ESXMGR<successfullyDEBUG:included>F_GETCFG<successfullyDEBUG:included>F_GETFREEPORT<successfullyDEBUG:included>F_GETVMMANUAL<successfullyDEBUG:included>F_GETVMPATH<successfullyDEBUG:included>F_LOGIN<successfullyDEBUG:included>F_MKCFG<successfullyDEBUG:included>F_MKOVFCFG<successfullyDEBUG:included>F_OPENCONSOLE<successfullyDEBUG:included>F_POWER<successfullyDEBUG:included>F_SELECTVM<successfullyDEBUG:included>F_SPACECONV<successfullyDEBUG:included>F_SUSPEND<successfullyDEBUG:included>F_PARENTF<successfullyDEBUG:included>F_DEC<successfullyDEBUG:included>F_DELETEVM<successfullyDEBUG:checkingconfig...DEBUG:checkingconfigreqs..DEBUG:Settingfileincluded..DEBUG:Nosourcefiledetected.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 successfullyDEBUG: selected 10.0.0.15, root, XXXXXXX (PW hidden), button id: 23DEBUG: 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 deniedtee: /home/don-verga-sr/.vEMan/settings: Permission deniedSRV="10.0.0.15"./vEMan: line 264: /home/don-verga-sr/.vEMan/progress.tmp: Permission deniedmkdir: cannot create directory ‘/home/don-verga-sr/.vEMan/certs/’: Permission deniedConnecting to 10.0.0.15 port 443Generating Certificate .... Can'topen/home/don-verga-sr/.vEMan/certs//10.0.0.15_vm.crtforwriting,Nosuchfileordirectory140225543401920:error:02001002:systemlibrary:fopen:Nosuchfileordirectory:../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 deniedDEBUG: 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.pmline704.DEBUG:Argumentgivenisvalid(F_ERRTargetsaid:\n\nServerversionunavailableat'https://10.0.0.15:443/sdk/vimService.wsdl'at/usr/share/perl/5.26/VMware/VICommon.pmline704.\n)DEBUG:Uservariablefile/tmp/vEMan_v0.9.6/etc/uservars_vEMan.cfgincludedsuccessfully.DEBUG:Systemvariablefile/tmp/vEMan_v0.9.6/etc/sysvars_vEMan.cfgincludedsuccessfully./tmp/vEMan_v0.9.6/libs/runFUNCTION.vEMan: line 111: /home/don-verga-sr/.vEMan/vEMan.log:Permissiondenied****************************************ThisisvEManv0.9.6_BETA****************************************DEBUG:included>F_CHKESXVER<successfullyDEBUG:included>F_MGUSR<successfullyDEBUG:included>F_ADDUSR<successfullyDEBUG:included>F_MSG<successfullyDEBUG:included>F_CHGUSR<successfullyDEBUG:included>F_USERMGR<successfullyDEBUG:included>F_REVIEWER<successfullyDEBUG:included>F_NOTREADY<successfullyDEBUG:included>F_SCANNET<successfullyDEBUG:included>F_SCANDS<successfullyDEBUG:included>F_HOSTMGR<successfullyDEBUG:included>F_SAVEOVFSET<successfullyDEBUG:included>F_VERSION<successfullyDEBUG:included>F_HELP<successfullyDEBUG:included>F_SNAPMGR<successfullyDEBUG:included>F_VMEDITOR<successfullyDEBUG:included>F_VMMGR<successfullyDEBUG:included>F_POWERACT<successfullyDEBUG:included>F_MAINLOOP<successfullyDEBUG:included>F_ACTIONS<successfullyDEBUG:included>F_AUTH<successfullyDEBUG:included>F_CHKCFG<successfullyDEBUG:included>F_CONSOLEMGR<successfullyDEBUG:included>F_CRTCOOKIE<successfullyDEBUG:included>F_CRTVMLIST<successfullyDEBUG:included>F_DEPLOVF<successfullyDEBUG:included>F_DEPLVMX<successfullyDEBUG:included>F_DETECTVNC<successfullyDEBUG:included>F_DISABLEVNC<successfullyDEBUG:included>F_ENABLEVNC<successfullyDEBUG:included>F_ERR<successfullyDEBUG:included>F_ESXMGR<successfullyDEBUG:included>F_GETCFG<successfullyDEBUG:included>F_GETFREEPORT<successfullyDEBUG:included>F_GETVMMANUAL<successfullyDEBUG:included>F_GETVMPATH<successfullyDEBUG:included>F_LOGIN<successfullyDEBUG:included>F_MKCFG<successfullyDEBUG:included>F_MKOVFCFG<successfullyDEBUG:included>F_OPENCONSOLE<successfullyDEBUG:included>F_POWER<successfullyDEBUG:included>F_SELECTVM<successfullyDEBUG:included>F_SPACECONV<successfullyDEBUG:included>F_SUSPEND<successfullyDEBUG:included>F_PARENTF<successfullyDEBUG:included>F_DEC<successfullyDEBUG:included>F_DELETEVM<successfullyDEBUG:abortedbyuserenvironment:line3::NosuchfileordirectoryDEBUG:reachedexitfunctionDEBUG:CleanupendDEBUG:Startingkeep-alivehandler...DEBUG:Answerwas23DEBUG:Manage_VMwaschoosen...DEBUG:openingactionManage_VM./vEMan:line624:/home/don-verga-sr/.vEMan/progress.tmp:PermissiondeniedDEBUG:FIRSTACTwas0./vEMan:line632:/home/don-verga-sr/.vEMan/progress.tmp:PermissiondeniedDEBUG:firstrun.willskipkeep-alive...FORCECON(0),FIRSTRUN(1)DEBUG:Argumentgivenisvalid(F_MAINLOOP)DEBUG:Uservariablefile/tmp/vEMan_v0.9.6/etc/uservars_vEMan.cfgincludedsuccessfully.DEBUG:Systemvariablefile/tmp/vEMan_v0.9.6/etc/sysvars_vEMan.cfgincludedsuccessfully./tmp/vEMan_v0.9.6/libs/runFUNCTION.vEMan: line 111: /home/don-verga-sr/.vEMan/vEMan.log:Permissiondenied****************************************ThisisvEManv0.9.6_BETA****************************************DEBUG:included>F_CHKESXVER<successfullyDEBUG:included>F_MGUSR<successfullyDEBUG:included>F_ADDUSR<successfullyDEBUG:included>F_MSG<successfullyDEBUG:included>F_CHGUSR<successfullyDEBUG:included>F_USERMGR<successfullyDEBUG:included>F_REVIEWER<successfullyDEBUG:included>F_NOTREADY<successfullyDEBUG:included>F_SCANNET<successfullyDEBUG:included>F_SCANDS<successfullyDEBUG:included>F_HOSTMGR<successfullyDEBUG:included>F_SAVEOVFSET<successfullyDEBUG:included>F_VERSION<successfullyDEBUG:included>F_HELP<successfullyDEBUG:included>F_SNAPMGR<successfullyDEBUG:included>F_VMEDITOR<successfullyDEBUG:included>F_VMMGR<successfullyDEBUG:included>F_POWERACT<successfullyDEBUG:included>F_MAINLOOP<successfullyDEBUG:included>F_ACTIONS<successfullyDEBUG:included>F_AUTH<successfullyDEBUG:included>F_CHKCFG<successfullyDEBUG:included>F_CONSOLEMGR<successfullyDEBUG:included>F_CRTCOOKIE<successfullyDEBUG:included>F_CRTVMLIST<successfullyDEBUG:included>F_DEPLOVF<successfullyDEBUG:included>F_DEPLVMX<successfullyDEBUG:included>F_DETECTVNC<successfullyDEBUG:included>F_DISABLEVNC<successfullyDEBUG:included>F_ENABLEVNC<successfullyDEBUG:included>F_ERR<successfullyDEBUG:included>F_ESXMGR<successfullyDEBUG:included>F_GETCFG<successfullyDEBUG:included>F_GETFREEPORT<successfullyDEBUG:included>F_GETVMMANUAL<successfullyDEBUG:included>F_GETVMPATH<successfullyDEBUG:included>F_LOGIN<successfullyDEBUG:included>F_MKCFG<successfullyDEBUG:included>F_MKOVFCFG<successfullyDEBUG:included>F_OPENCONSOLE<successfullyDEBUG:included>F_POWER<successfullyDEBUG:included>F_SELECTVM<successfullyDEBUG:included>F_SPACECONV<successfullyDEBUG:included>F_SUSPEND<successfullyDEBUG:included>F_PARENTF<successfullyDEBUG:included>F_DEC<successfullyDEBUG:included>F_DELETEVM<successfullyDEBUG:Resbefore:/tmp/vEMan_v0.9.6/libs/ESXMGR.vEMan: line 4: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp:Permissiondenied/tmp/vEMan_v0.9.6/libs/ESXMGR.vEMan: line 5: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp:Permissiondenied/tmp/vEMan_v0.9.6/libs/ESXMGR.vEMan: line 10: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp:PermissiondeniedDEBUG:TARGETVMis,AANSis:DEBUG:F_ESXMGRstarting/tmp/vEMan_v0.9.6/libs/ESXMGR.vEMan: line 18: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp:PermissiondeniedDEBUG:checkingconfig...DEBUG:checkingconfigreqs..DEBUG:Settingfileincluded..DEBUG:Nosourcefiledetected.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 blahtail: cannot open '/home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp' for reading: No such file or directorytail: 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'tfind/home/don-verga-sr/.vEMan/10.0.0.15/lastovf.cfgfile,nothingtoinclude.DEBUG:configreqschecks(F_CHKCFG)finished.DEBUG:configok./tmp/vEMan_v0.9.6/libs/CRTCOOKIE.vEMan: line 6: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp:PermissiondeniedNosessionfiledetected.Creatingone..HASHisblahblahblahtail:cannotopen'/home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp'forreading:Nosuchfileordirectorytail:nofilesremaining***WARNING:deprecatedkeyderivationused.Using-iteror-pbkdf2wouldbebetter./tmp/vEMan_v0.9.6/libs/CRTCOOKIE.vEMan: line 18: /home/don-verga-sr/.vEMan/10.0.0.15/progress.tmp:PermissiondeniedDEBUG:Errorcheckingauthenticationorcreatingcookiefile(libF_CRTCOOKIE)DEBUG:Returnmessagewas:Serverversionunavailableat'https://10.0.0.15:443/sdk/vimService.wsdl'at/usr/share/perl/5.26/VMware/VICommon.pmline704.DEBUG:abortedbyuserenvironment:line3::NosuchfileordirectoryDEBUG:reachedexitfunctionDEBUG:CleanupendDEBUG:LastexitbeforeTexas..DEBUG:informedkeepalivehandlerabouttheexitDEBUG:reachedexitfunctionDEBUG:Cleanupend
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am getting the following error and am hoping that I have provided you with enough info to troubleshoot:
vmware-version:
vSphere SDK for Perl version: 6.7.0
Script 'vmware-cmd' version: 6.7.0
~./vEMan/settings
VUSER="root"
HASHPW="blah blah blah"
SRV="10.0.0.15"
Wow someone still using this? :)
You have several permission issues the main one is:
Maybe you started vEMan as root/with sudo once?
Anyways do this:
sudo chmod -R 765 ~/.vEMan
and try again.
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...
ok so back to square 1.
first of all I would recommend to try v1.0.4-preview instead of 0.9.6
--> https://sourceforge.net/projects/veman/files/v1.0_preview/
Read the thread about how to create a proper bug report and read all the details I provided here, there are many important hints and information I would need:
--> https://sourceforge.net/p/veman/discussion/support/thread/0c98a6f0/
Ensure you followed the INSTALL guide briefly:
--> https://raw.githubusercontent.com/xdajog/vEMan/master/INSTALL
Last edit: secure diversITy 2019-07-01