Login CloudFoundry登录错误:";参数数目错误(1对2)“;

Login CloudFoundry登录错误:";参数数目错误(1对2)“;,login,cloud-foundry,Login,Cloud Foundry,我刚刚在CloudFOundry注册了一个新帐户,在通过vmc登录时遇到了问题 我将目标设定为ok 下面是vmc info命令的结果 VMware's Cloud Application Platform target: http://api.cloudfoundry.com version: 0.999 support: http://support.cloudfoundry.com 当我运行以下命令时: vmc登录myemail@address.com--密码myPasswd 我得到以下

我刚刚在CloudFOundry注册了一个新帐户,在通过vmc登录时遇到了问题

我将目标设定为ok

下面是vmc info命令的结果

VMware's Cloud Application Platform

target: http://api.cloudfoundry.com
version: 0.999
support: http://support.cloudfoundry.com
当我运行以下命令时:

vmc登录myemail@address.com--密码myPasswd

我得到以下结果:

target: http://api.cloudfoundry.com

Authenticating... FAILED
ArgumentError: wrong number of arguments (1 for 2)
For more information, see ~/.vmc/crash
这里是~/vmc/crash内容

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

我不敢相信我不能得到关于这个问题的搜索结果。谢谢您的帮助。

我也遇到了同样的问题,这里有一个解决方案:

查找login.rb文件(在我的电脑上:C:\Ruby193\lib\ruby\gems\1.9.1\gems\vmc-0.4.7\lib\vmc\cli\start\login.rb)

编辑此文件并查找行:

info[:token] = client.login(credentials)
并改写为:

info[:token]=客户端登录(凭据[:用户名]、凭据[:密码])


它应该可以工作:)

我也有同样的问题,这里有一个解决方案:

查找login.rb文件(在我的电脑上:C:\Ruby193\lib\ruby\gems\1.9.1\gems\vmc-0.4.7\lib\vmc\cli\start\login.rb)

编辑此文件并查找行:

info[:token] = client.login(credentials)
并改写为:

info[:token]=客户端登录(凭据[:用户名]、凭据[:密码])


而且它应该可以工作:)

我必须推荐login.rb作为解决方法。安装--pre(0.5.0beta20)产生了一个中断的依赖项:

Failed to load tunnel-dummy-vmc-plugin:
Unable to activate tunnel-dummy-vmc-plugin-0.0.2, because cfoundry-0.5.0 conflicts with cfoundry (~> 0.4.0)

我不得不推荐login.rb作为解决方法。安装--pre(0.5.0beta20)产生了一个中断的依赖项:

Failed to load tunnel-dummy-vmc-plugin:
Unable to activate tunnel-dummy-vmc-plugin-0.0.2, because cfoundry-0.5.0 conflicts with cfoundry (~> 0.4.0)

这是一个与to gems-
vmc 0.4.7
cfoundry 0.4.20
之间不兼容的问题。这应该通过2月8日发布到rubygems的
cfoundry 0.4.21
来解决

这是一个与to gems-
vmc 0.4.7
cfoundry 0.4.20
之间不兼容的问题。这应该通过2月8日发布到rubygems的
cfoundry 0.4.21
来解决

实际上,这个更改是在最新版本的vmc源代码()中进行的。vmc的最新预发布版本应具有此更改。您可以通过执行
gem install vmc--pre
来尝试它。实际上,这个更改是在最新版本的vmc源代码()中进行的。vmc的最新预发布版本应具有此更改。您可以通过执行
gem install vmc--pre
来尝试。我今天遇到了相同的问题,并通过删除cfoundry gem和vmc的所有副本并重新安装vmc解决了此问题。preI今天遇到了相同的问题,并通过删除cfoundry gem和vmc的所有副本并重新安装vmc--pre解决了此问题