无法找到组(Fog :: Compute :: AWS :: NotFound)

时间:2013-06-17 14:23:40

标签: ruby-on-rails amazon-ec2 rubber

亚马逊ec2与橡胶部署错误。当我运行create staging时,我遇到了以下错误。

/usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/expects.rb:10:in response_call': Unable to find group 'Matchimi_Enterprise_production_default' (Fog::Compute::AWS::NotFound) from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:353:in回复'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:247:in request' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/idempotent.rb:12:in error_call'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/base.rb:10:in error_call' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:260:in救援请求'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:220:in request' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/idempotent.rb:12:in error_call'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/base.rb:10:in error_call' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:260:in救援请求'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:220:in request' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/idempotent.rb:12:in error_call'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/middlewares/base.rb:10:in error_call' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:260:in救援请求'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/excon-0.23.0/lib/excon/connection.rb:220:in request' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/fog-1.12.1/lib/fog/core/connection.rb:25:in request'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/fog-1.12.1/lib/fog/aws/compute.rb:385:in _request' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/fog-1.12.1/lib/fog/aws/compute.rb:380:in request'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/fog-1.12.1/lib/fog/aws/requests/compute/authorize_security_group_ingress.rb:54:in authorize_security_group_ingress' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/fog-1.12.1/lib/fog/aws/models/compute/security_group.rb:104:in authorize_port_range'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:368:in add_security_group_rule' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:500:in块(2级)in sync_security_groups'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:496:in each' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:496:in块中的sync_security_groups'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:490:in each' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:490:in sync_security_groups'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:254:in setup_security_groups' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/cloud/aws.rb:72:in before_create_instance'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/thread_safe_proxy.rb:13:in method_missing' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/recipes/rubber/instances.rb:267:in块中的create_instance'     来自/usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/recipes/rubber/instances.rb:266:in create_instance'     来自/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubber-2.5.2/lib/rubber/recipes/rubber/instances.rb:230:在create_instances中的块(2级)

2 个答案:

答案 0 :(得分:1)

它发生在我身上,原因是我使用我的用户名作为帐户字段而不是我的AWS账号。我假设如果帐号错误,则会出现类似的错误。

答案 1 :(得分:0)

我得到了解决方案。

我从我的gem文件中删除了带有github链接的gem。我发现有一段时间如果你从github关联gem定向,如果github链接关闭,你将得到部署错误。因此,应避免在gemfile中添加github链接以便在部署中保存。