使用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 I get
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
请帮忙!!
我也遇到了同样的问题。这似乎有点神秘,但我通过将vmc降级到0.4.4来解决它。
我在绑定mongodb服务时遇到了同样的问题,我通过使用
解决了这个问题vmc bind-service