当我安装 chef gem 时,出现如下错误。
[root@chefclient35 ~]# gem install chef -V
GET http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/quick/Marshal.4.8/chef-11.6.0.gemspec.rz
302 Moved Temporarily
GET http://tokyo-m.rubygems.org/quick/Marshal.4.8/chef-11.6.0.gemspec.rz
502 Bad Gateway
Error fetching remote data: bad response Bad Gateway 502 (http://tokyo-m.rubygems.org/quick/Marshal.4.8/chef-11.6.0.gemspec.rz)
Falling back to local-only install
ERROR: Could not find a valid gem 'chef' (>= 0) in any repository
ERROR: Possible alternatives: chef
但是上周五安装的另一台机器在相同的环境设置下没有这样的问题。怎么了?