2

使用 vmc,我将我的 java 应用程序推送到 cloudfoundry 中,并创建了一个绑定到该应用程序的 rabbitmq 服务,我已经测试了两三个这样的应用程序,并且一切都很好,但是从几天开始,我在将 rabbitmq 服务绑定到这两个应用程序时遇到了问题一个现有的应用程序也不是一个新的应用程序,我收到了这条消息:

user@user-System-I7:~$ vmc bind-service rabbitmq-broker myApp
NoMethodError: undefined method `service_by_name' for #<CFoundry::V1::Client:0x7f417344f4b0>
For more information, see ~/.vmc/crash

当我输入: user@user-System-I7:~$more ~/.vmc/crash 我得到

Time of crash:
Wed Jan 02 15:06:31 +0100 2013

NoMethodError: undefined method `service_by_name' for #<CFoundry::V1::Client:0x7f417344f4b0>

vmc-0.4.7/lib/vmc/cli.rb:406:in `send'
vmc-0.4.7/lib/vmc/cli.rb:406:in `by_name'
mothership-0.3.5/lib/mothership/inputs.rb:150:in `instance_exec'
mothership-0.3.5/lib/mothership/inputs.rb:150:in `convert_given'
mothership-0.3.5/lib/mothership/inputs.rb:113:in `get'
mothership-0.3.5/lib/mothership/inputs.rb:69:in `[]'
vmc-0.4.7/lib/vmc/cli/service/bind.rb:15:in `bind_service'
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
1.8/bin/vmc:19:in `load'
1.8/bin/vmc:19

请帮忙 !!

4

2 回答 2

1

我有同样的问题。这似乎有点神秘,但我通过将 vmc 降级到 0.4.4 来解决它。

于 2013-01-04T13:51:49.907 回答
-1

我在绑定 mongodb 服务时遇到了同样的问题,我通过使用解决了它

vmc bind-service
于 2013-01-05T08:14:36.893 回答