我正在尝试在生产机器中为我的应用程序捆绑宝石,并且今天一直失败,并显示以下错误消息:
Gem::RemoteFetcher::FetchError: too many connection resets (http://cachefly.mirrors.rubygems.org/gems/json-1.6.5.gem)
捆绑包试图从下层镜像而不是主网站获取是否有任何原因?我仍然可以从http://rubygems.org/gems/json-1.6.5.gem
答案 0 :(得分:1)
rubygems.org重定向该请求。它与bundler无关。
$ 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]