LoginSignup
2
2

More than 5 years have passed since last update.

gemのインストールで bad response Service Unavailable 503

Last updated at Posted at 2015-08-10

ローカルの開発環境では出ないのにEC2だと出る

グローバルでインストールしたいgemがあって、Ansibleから以下のように実行した。

gem install specific_install --no-rdoc --no-ri

必ず失敗するわけではなかったが、ほとんどが以下のエラーを吐いていた。

Could not find a valid gem 'specific_install' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - bad response Service Unavailable 503 (https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz)

gemにソースを追加して解決

以下を実行してソースを追加する。
gem source http://production.s3.rubygems.org

上のエラーを見て https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz という部分が気になってブラウザでアクセスしてみると何やらS3のエラーが出る。http://production.s3.rubygems.org/latest_specs.4.8.gz にしてみるとダウンロードできた。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2