Menu

Error checking authentication or creating cookie file (lib F_CRTCOOKIE)

eduardo
2012-09-12
2012-09-20
  • eduardo

    eduardo - 2012-09-12

    Hi jogarem,

    sorry for last email, I was think, if I send mail from website, I received it on my personal mail, but I dont received. Because this I send my problem here.

    My problem is: When I try to login on my esxi4 appears message connection sucessful, but dont showing vms, and appears login again ... every time.

    I put here .vEMan/vEMan.log

    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:
    DEBUG: TARGETVM is , AANS is:
    DEBUG: F_ESXMGR starting
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Server setting file included..
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    HASH is U2FsdGVkX1968aZyPAjlrTBvGwOf4ckzyQS/NUXiikc=
    DEBUG: checking config...
    DEBUG: checking config reqs..
    DEBUG: Setting file included..
    DEBUG: No source file detected.
    DEBUG: Server setting file included..
    DEBUG: config reqs checks (F_CHKCFG) finished.
    DEBUG: config ok.
    No session file detected. Creating one..
    HASH is U2FsdGVkX1968aZyPAjlrTBvGwOf4ckzyQS/NUXiikc=
    DEBUG: Error checking authentication or creating cookie file (lib F_CRTCOOKIE)
    DEBUG: Return message was:
    Connection Successful
    Server Time : 2012-09-11T20:18:03.108238Z
    DEBUG: aborted by user
    /home/moreira/vEman/libs/runFUNCTION.vEMan: line 3: : No such file or directory
    DEBUG: reached exit function
    DEBUG: Cleanup end

    If you need more information about my problem, just ask.

    Thanks again for your help.

     
    • secure diversITy

      Hi eduardo,

      oh no problem you can send me emails if you want ;o) It is simply better for the handling if we do it here... and maybe we can find out a problem which would help others, too.
      But it's your choice how you want to communicate - I'am open for everything ;-)

      Hm ok I have some questions/requests for you:

      1) Does your password may contain special characters and if so could you try to connect with another user/pw without special chars?

      2) which version of vEMan do you use (can be found in every window title) ?

      3) Please start vEMan at the commandline and post the console output, too.

      4) Please provide the content of the following files:

      4a) Settings of the current connection
      ~/.vEMan/settings  (<-- I want to see if there is a syntax error here - if you don't want to send that data here you can check the syntax on your own (must be VARIABLE="CONTENT" ensure that there are only 2 " chars on each line) or send it by mail. The password is hashed and can be decrypted with the users password only.)
      
      4b) session data of the current connection
      ~/.vEMan/sessiondata (<-- this exist only when vEMan is currently started and when entered user/pw at least 1 time. This data is also hashed and save to send)
      

      Thanks
      Thomas

       
  • eduardo

    eduardo - 2012-09-12

    Thank you for fast answer.

    1) no, my password doesnt have special characters, just letters lower and upper case.

    2) i tryed many versions, and appears same error ... eg. 0.8.2 / 0.8.5 / 0.9.0 / 0.9.3

    3) I tryed to start from console, and appears same error ... I put log below.
    root@root:/home/moreira/vEman# ./vEMan
    DEBUG: User variable file /home/moreira/vEman/etc/uservars_vEMan.cfg found.
    DEBUG: User variable file /home/moreira/vEman/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /home/moreira/vEman/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: Requirement /home/moreira/vEman/vEMan met.
    DEBUG: Requirement /usr/bin/yad met.
    DEBUG: Requirement /home/moreira/vEman/vmapps/general/connect.pl met.
    DEBUG: Requirement /home/moreira/vEman/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 /home/moreira/vEman/libs/runFUNCTION.vEMan met.
    DEBUG: Requirement /usr/bin/openssl met.
    DEBUG: Requirement /home/moreira/vEman/vmapps/vm/vminfo.pl met.
    DEBUG: Requirement /home/moreira/vEman/vmapps/vm/vmcontrol.pl met.
    DEBUG: Requirement /home/moreira/vEman/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 /home/moreira/vEman/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /home/moreira/vEman/etc/sysvars_vEMan.cfg included successfully.
    DEBUG: setting file included successfully
    DEBUG: selected 192.168.0.4, root, XXXXXXX (PW hidden), button id: 0
    DEBUG: making config
    DEBUG: Hashed pass is: U2FsdGVkX18xsKJP0Gzz5FYhhO5EH8LiziQCVvnfPLw=
    SRV="192.168.0.5"
    Connecting to 192.168.0.5 port 443
    Generating Certificate .... done.
    DEBUG: Cert fetched successfully.
    No session file detected. Creating one..
    HASH is U2FsdGVkX18xsKJP0Gzz5FYhhO5EH8LiziQCVvnfPLw=
    DEBUG: Error (1) checking authentication or creating session cookie file (F_CRTCOOKIE)
    DEBUG: Return message was:
    Connection Successful
    Server Time : 2012-09-12T19:26:34.288177Z
    DEBUG: Argument given is valid (F_ERR Target said:\n\n
    Connection Successful
    Server Time : 2012-09-12T19:26:34.288177Z\n)
    DEBUG: User variable file /home/moreira/vEman/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /home/moreira/vEman/etc/sysvars_vEMan.cfg included successfully.
    DEBUG: Starting keep-alive handler...
    DEBUG: Answer was 0
    DEBUG: Manage_VM was choosen...
    DEBUG: opening action Manage_VM
    DEBUG: FIRSTACT was 0
    DEBUG: firstrun. will skip keep-alive...
    FORCECON (0), FIRSTRUN (1)
    DEBUG: Argument given is valid (F_MAINLOOP)
    DEBUG: User variable file /home/moreira/vEman/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /home/moreira/vEman/etc/sysvars_vEMan.cfg included successfully.
    DEBUG: Last exit before Texas..
    DEBUG: informed keepalive handler about the exit
    DEBUG: reached exit function
    DEBUG: Cleanup end

    4a) VUSER="root"
    HASHPW="U2FsdGVkX1968aZyPAjlrTBvGwOf4ckzyQS/NUXiikc="
    SRV="192.168.0.5"

    4b) i dont have this file on /home/user/.vEMan

    thanks again for help me.

     
  • secure diversITy

    Thanks for your answer and patience..

    There is at least one strange thing I can see here:

    DEBUG: selected 192.168.0.4, root, XXXXXXX (PW hidden), button id: 0
    DEBUG: making config
    DEBUG: Hashed pass is: U2FsdGVkX18xsKJP0Gzz5FYhhO5EH8LiziQCVvnfPLw=
    SRV="192.168.0.5"
    Connecting to 192.168.0.5 port 443

    That means I wondering why there are 2 different IPs here. Can you please delete the file:
    ~/.vEMan/settings

    And then try again? Check the log again if the problem with 2 different IPs is still there or not..

    Thanks
    Thomas

     
  • eduardo

    eduardo - 2012-09-13

    Hi Thomas,

    No, problem with 2 different ips doesnt appears anymore.

    see log.

    root@root:/home/moreira/vEman# ./vEMan
    DEBUG: User variable file /home/moreira/vEman/etc/uservars_vEMan.cfg found.
    DEBUG: User variable file /home/moreira/vEman/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /home/moreira/vEman/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: Requirement /home/moreira/vEman/vEMan met.
    DEBUG: Requirement /usr/bin/yad met.
    DEBUG: Requirement /home/moreira/vEman/vmapps/general/connect.pl met.
    DEBUG: Requirement /home/moreira/vEman/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 /home/moreira/vEman/libs/runFUNCTION.vEMan met.
    DEBUG: Requirement /usr/bin/openssl met.
    DEBUG: Requirement /home/moreira/vEman/vmapps/vm/vminfo.pl met.
    DEBUG: Requirement /home/moreira/vEman/vmapps/vm/vmcontrol.pl met.
    DEBUG: Requirement /home/moreira/vEman/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 /home/moreira/vEman/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /home/moreira/vEman/etc/sysvars_vEMan.cfg included successfully.
    DEBUG: setting file included successfully
    DEBUG: selected 192.168.0.5, root, XXXXXXX (PW hidden), button id: 0
    DEBUG: making config
    DEBUG: Hashed pass is: U2FsdGVkX18MVoIwvXUSlB5ilW7AVYnvCQn2SdszWeA=
    SRV="192.168.0.5"
    DEBUG: Certificate already fetched and available
    DEBUG: skipping certificate activation
    No session file detected. Creating one..
    HASH is U2FsdGVkX18MVoIwvXUSlB5ilW7AVYnvCQn2SdszWeA=
    DEBUG: Error (1) checking authentication or creating session cookie file (F_CRTCOOKIE)
    DEBUG: Return message was:
    Connection Successful
    Server Time : 2012-09-13T10:45:46.360497Z
    DEBUG: Argument given is valid (F_ERR Target said:\n\n
    Connection Successful
    Server Time : 2012-09-13T10:45:46.360497Z\n)
    DEBUG: User variable file /home/moreira/vEman/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /home/moreira/vEman/etc/sysvars_vEMan.cfg included successfully.
    DEBUG: Starting keep-alive handler...
    DEBUG: Answer was 0
    DEBUG: Manage_VM was choosen...
    DEBUG: opening action Manage_VM
    DEBUG: FIRSTACT was 0
    DEBUG: firstrun. will skip keep-alive...
    FORCECON (0), FIRSTRUN (1)
    DEBUG: Argument given is valid (F_MAINLOOP)
    DEBUG: User variable file /home/moreira/vEman/etc/uservars_vEMan.cfg included successfully.
    DEBUG: System variable file /home/moreira/vEman/etc/sysvars_vEMan.cfg included successfully.
    DEBUG: Last exit before Texas..
    DEBUG: informed keepalive handler about the exit
    DEBUG: reached exit function
    DEBUG: Cleanup end

    But problem persist.

     
    • secure diversITy

      ok I have some more questions for you ;-)

      1) Which version VMware SDK is installed?
      2) Is it a ESX or ESXi where you connect to?
      3) What Firmware version is running at the ESX/i?
      4) What Linux version and type do you use?

      Additionally I want to see what happens when you execute that command here:

      https_proxy="" ./~vEman/vmapps/general/connect.pl --savesessionfile /tmp/auth.vEMan --server 192.168.0.5 
      

      --> (This is 1 line) It will ask for your username and password for the ESX/i

      Please paste the output of the command here and check if the file "/tmp/auth.vEMan" exists. If so please paste the content here, too.

      Thanks
      Thomas

       
  • eduardo

    eduardo - 2012-09-14

    hi thomas,

    thanks again for attention.

    1) sorry but I dont know who check version of my vmware sdk ... (please explain how i check it?)
    2) VMware ESXi 4.1.0 build-260247
    3) vmkload_mod -s mptspi |grep Version
    Version: Version 4.21.00.01.1-5vmw, Build: 260247, Interface: ddi_9_1 Built on: May 18 2010
    4) Ubuntu 12.04.1 LTS \n \l

    https_proxy="" ./connect.pl --savesessionfile /tmp/auth.vEMan --server 192.168.0.5
    Enter username: teste
    Enter password:
    Error: Server version unavailable at 'https://192.168.0.5/sdk/vimService.wsdl'

    this file: /tmp/auth.vEMan doesnt exist.

    if you need more information, just ask me.

    Thanks again.

     
    • secure diversITy

      I dont know who check version of my vmware sdk ..

      ... yes, sorry my fault ;-) Here you go:

       vmware-cmd --version
      

      and let's do the previous command again but doing it in 3 steps:
      ( "$>" indicates the commandline prompt)

       $> PERL_LWP_SSL_VERIFY_HOSTNAME=0
       $> export PERL_LWP_SSL_VERIFY_HOSTNAME
      
       and then - to be totaly sure:
       $> PERL_LWP_SSL_VERIFY_HOSTNAME=0 https_proxy="" ~/vEman/vmapps/general/connect.pl --savesessionfile /tmp/auth.vEMan --server 192.168.0.5
      
      Paste again the output of the console and check the file /tmp/auth.vEMan , too.
      
      Regards
      Thomas
      
       
  • eduardo

    eduardo - 2012-09-17

    hi thomas,

    when I tryed to type : vmware-cmd --version
    appears username and password, after, appears help log ..

    root@root:~# vmware-cmd --version
    Enter username: root
    Enter password:
    Usage: vmware-cmd <options> <vm-cfg-path> <vm-action> <arguments>
    vmware-cmd -s <options> <server-action> <arguments></arguments></server-action></options></arguments></vm-action></vm-cfg-path></options>

     Options:
       Connection Options:
          -H or --server <host>            specifies an ESX host or a Virtual Center
          -T <target host>                 specifies a target host if host is a virtual center
    

    PERL_LWP_SSL_VERIFY_HOSTNAME=0 https_proxy="" connect.pl --savesessionfile /tmp/auth.vEMan --server 192.168.0.5connect.pl: command not found
    root@root:/home/moreira/vEman/vmapps/general# PERL_LWP_SSL_VERIFY_HOSTNAME=0 https_proxy="" ./connect.pl --savesessionfile /tmp/auth.vEMan --server 192.168.0.5
    Enter username: root
    Enter password:

    Connection Successful
    Server Time : 2012-09-17T11:12:10.849376Z

    this file: /tmp/auth.vEMan doesnt exist.

    these commands doesnt appears anything:
    $> PERL_LWP_SSL_VERIFY_HOSTNAME=0
    $> export PERL_LWP_SSL_VERIFY_HOSTNAME

    Thanks

     
  • eduardo

    eduardo - 2012-09-17

    I think my problem stay with vmware-cmd, because I dont found this in my linux ... only on vsphere server ... and i copyed this from vmware server to my linux ... maybe this is my problem? and if yes, what I need to install to got vmware-cmd in my linux?

    thanks again

     
  • secure diversITy

    Oh... then we had a big misunderstanding here. :o(
    As stated in the README, vEMan needs some additional tools to run. E.g.ovftool and VMware SDK for Perl.
    The SDK contains the vmware-cmd command and many others.

    Please install the sdk:

    https://my.vmware.com/web/vmware/details?downloadGroup=SDKPERL50&productId=229

    (If that link is not working check the README file. In any case you need a vmware account to download the sdk)

    And please check the README for a download link to the ovftool and other requirements...

    Thanks
    Thomas

     
  • eduardo

    eduardo - 2012-09-19

    hi thomas, ovftools was installed, I installing now sDK, and back soon to say if works.

    thanks again.

     
  • eduardo

    eduardo - 2012-09-19

    ok, now works.

    root@root:/usr/bin# vmware-cmd --version
    vSphere SDK for Perl version: 5.0
    Script 'vmware-cmd' version: 5.0

    PERL_LWP_SSL_VERIFY_HOSTNAME=0 https_proxy="" ./connect.pl --savesessionfile /tmp/auth.vEMan --server 192.168.0.5
    Enter username: root
    Enter password:

    Connection Successful
    Server Time : 2012-09-19T11:12:52.275833Z

    cat /tmp/auth.vEMan

    LWP-Cookies-1.0

    Set-Cookie3: vmware_soap_session="\"52fe510e-efe4-0968-a65e-b43329c34650\""; path="/"; domain=192.168.0.5; path_spec; discard; version=0

    thanks again for you help me.

     
  • eduardo

    eduardo - 2012-09-19

    Thomas,

    how I help project ... like you help me?
    I think donate ... ?

    Do you have paypal or .. ?

    Thanks again!

     
  • secure diversITy

    Hi Eduardo!

    great to hear that! So am I right that now vEMan starts as expected?

    Well yes, if you want to support the project you can donate or add code to the project. If you want to donate here is the way to do that:
    http://sourceforge.net/donate/?user_id=1995733

    Hope you have fun with vEMan!

    Thanks
    Thomas

     

    Last edit: secure diversITy 2012-09-20

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.