使用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
请帮助!!
答案 0 :(得分:1)
我有same problem。这似乎有点神秘,但我通过将vmc降级到0.4.4来解决这个问题。
答案 1 :(得分:-1)
绑定mongodb服务时遇到了同样的问题,我使用
解决了这个问题vmc bind-service