我正在尝试在生产机器中为我的应用程序捆绑 gems,但今天它一直失败并出现以下错误消息:
Gem::RemoteFetcher::FetchError: too many connection resets (http://cachefly.mirrors.rubygems.org/gems/json-1.6.5.gem)
捆绑包试图从下镜像而不是主网站获取有什么原因吗?我仍然可以从下载 gem 文件http://rubygems.org/gems/json-1.6.5.gem
rubygems.org 重定向该请求。它与捆绑器无关。
$ wget http://rubygems.org/gems/json-1.6.5.gem
--2012-05-08 00:09:44-- http://rubygems.org/gems/json-1.6.5.gem
Resolving rubygems.org... 204.232.149.26, 204.232.149.25
Connecting to rubygems.org|204.232.149.26|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://cachefly.mirrors.rubygems.org/gems/json-1.6.5.gem [following]
--2012-05-08 00:09:44-- http://cachefly.mirrors.rubygems.org/gems/json-1.6.5.gem
Resolving cachefly.mirrors.rubygems.org... 205.234.175.175
Connecting to cachefly.mirrors.rubygems.org|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 424960 (415K) [application/octet-stream]
Saving to: `json-1.6.5.gem'
100%[======================================>] 424,960 2.38M/s in 0.2s
2012-05-08 00:09:45 (2.38 MB/s) - `json-1.6.5.gem' saved [424960/424960]