2

cap rubb:create_staging を実行すると、rubber が ec2 インスタンスを作成しようとすると、次のエラーが発生します。構成設定がありませんか?

** Creating instance ami-eafa5883/t1.micro/elearn_production_default,elearn_production_web,elearn_production_web_tools,elearn_production_production,elearn_production_apache,elearn_production_app,elearn_production_passenger,elearn_production_collectd,elearn_production_common,elearn_production_monit,elearn_production_db,elearn_production_mysql,elearn_production_mysql_master,elearn_production_elasticsearch,elearn_production_examples,elearn_production_graphite_server,elearn_production_graphite_web,elearn_production_graylog_elasticsearch,elearn_production_graylog_mongodb, elearn_production_mongodb、elearn_production_graylog_server、elearn_production_graylog_web、elearn_production_haproxy/us-east-1b

/Users/svisamsetty/.rvm/gems/ruby-1.9.3-p429/gems/excon-0.22.1/lib/excon/middlewares/expects.rb:10:in response_call': Expected(200) <=> Actual(400 Bad Request) (Excon::Errors::BadRequest) from /Users/svisamsetty/.rvm/gems/ruby-1.9.3-p429/gems/excon-0.22.1/lib/excon/connection.rb:355:inresponse'

4

3 に答える 3

0

私は同じ問題を抱えています。Rubber github ページの Issue #362 として取り上げられているようです: https://github.com/rubber/rubber/issues/362

于 2013-06-05T23:42:05.990 に答える
0

次のコマンドを実行してフォグ ジェムを更新することで、これを解決しました。

bundle update fog

どうやら、私はフォグ 1.9.0 を実行していて非常に時代遅れでした。現在、1.23.0 を実行しており、Rubber の Railscasts ( http://railscasts.com/episodes/347-rubber-and-amazon-ec2 )に従って、EC2 へのデプロイに成功しました。

これにより、次の gem もこれらのバージョンに更新されました。

  • フォグコア 1.23.0
  • net-scp 1.2.1
  • フォグ-json 1.0.0
  • リスト項目
  • インフレクト 0.0.2
  • フォグブライトボックス 0.1.1
  • フォグソフトレイヤー 0.3.11
  • IP アドレス 0.8.0
  • mini_portile 0.6.0

Nokogiriはlibxml2-2.9.0ライブラリに依存しているので、必ずインストールしてください

それが役に立てば幸い!!

于 2014-08-02T18:41:33.267 に答える
0

excon のバージョンを 0.22.01 から 0.21.0 にダウングレードしました

これをgemファイルに追加してからバンドルすると、問題が修正されました。gem 'excon', '~> 0.21.0'

私は根本的な原因を認識していません。

于 2013-06-06T01:20:16.167 に答える