1

CloudFOundry に新しいアカウントを登録したばかりですが、vmc からのログインに問題があります。

ターゲットをhttp://api.cloudfoundry.comに設定しました

これは vmc info コマンドの結果です

VMware's Cloud Application Platform

target: http://api.cloudfoundry.com
version: 0.999
support: http://support.cloudfoundry.com

次のコマンドを実行すると:

vmc login myemail@address.com --password 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

この問題に関する検索結果が得られないなんて信じられません。助けてくれてありがとう。

4

3 に答える 3

1

私は同じ問題を抱えていましたが、ここに解決策があります:

login.rb ファイルを見つけます (私の PC では: 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] = client.login(credentials[:username], credentials[:password])

そしてそれはうまくいくはずです:)

于 2013-02-06T19:56:30.477 に答える
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)
于 2013-02-06T20:56:33.437 に答える
0

vmc 0.4.7これは、gemとの間の非互換性の問題でしたcfoundry 0.4.20cfoundry 0.4.21これは、2 月 8 日に ruby​​gems に公開された のリリースで修正されるはずです。

于 2013-02-11T17:22:11.993 に答える