I just registerd a new account with CloudFOundry and am having trouble loging in through vmc.
I set target ok to http://api.cloudfoundry.com
Here is result from vmc info command
VMware's Cloud Application Platform
target: http://api.cloudfoundry.com
version: 0.999
support: http://support.cloudfoundry.com
When I run following command:
vmc login myemail@address.com –password myPasswd
I get following result:
target: http://api.cloudfoundry.com
Authenticating... FAILED
ArgumentError: wrong number of arguments (1 for 2)
For more information, see ~/.vmc/crash
Here is ~/vmc/crash content
Time of crash: Wed Feb 06 11:57:38 -0500 2013
ArgumentError: wrong number of arguments (1 for 2)
vmc-0.4.7/lib/vmc/cli/start/login.rb:74:in `login'
vmc-0.4.7/lib/vmc/cli/start/login.rb:74:in `login'
interact-0.5.2/lib/interact/progress.rb:98:in `with_progress'
vmc-0.4.7/lib/vmc/cli/start/login.rb:72:in `login'
mothership-0.3.5/lib/mothership/base.rb:61:in `send'
mothership-0.3.5/lib/mothership/base.rb:61:in `run'
mothership-0.3.5/lib/mothership/command.rb:68:in `invoke'
mothership-0.3.5/lib/mothership/command.rb:82:in `instance_exec'
mothership-0.3.5/lib/mothership/command.rb:82:in `invoke'
mothership-0.3.5/lib/mothership/base.rb:50:in `execute'
vmc-0.4.7/lib/vmc/cli.rb:106:in `execute'
mothership-0.3.5/lib/mothership.rb:45:in `start' vmc-0.4.7/bin/vmc:11
/usr/bin/vmc:19:in `load' /usr/bin/vmc:19
I cannot believe that I can’t get search result regarding this issue. Thanks for any help.
I had the same problem and here is a solution:
find login.rb file (on my pc: C:\Ruby193\lib\ruby\gems\1.9.1\gems\vmc-0.4.7\lib\vmc\cli\start\login.rb)
edit this file and find line:
and rewrite to:
info[:token] = client.login(credentials[:username], credentials[:password])and it should work 🙂