再次抱怨,rubygems 对于做镜像的支持非常不完善,我来来回回反复试过很多种方式,其实将 Gem 同步过来是很容易的,麻烦的是后面有个生成 Gem 索引信息的动作,中途有些老式的 Gem 写得不标准导致中断,15W 啊,断了又得从头跑起...,而且一个都没生成出来 后面我终于开窍了,改用分段来处理(a..z) 一个一个的生成,终于搞出来了
@huacnlee 刚新建了一个项目测试了一下,报错了
/path/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:215:in `fetch_http': bad response Not Found 404 (http://ruby.taobao.org/quick/Marshal.4.8/sass-3.1.12.gemspec.rz) (Gem::RemoteFetcher::FetchError)
...
刚才试了一下,也是报错的:`fetch_http': bad response Not Found 404 (http://ruby.taobao.org/quick/Marshal.4.8/coffee-script-source-1.2.0.gemspec.rz) (Gem::RemoteFetcher::FetchError)
@huachlee嗯。现在我不急,等出差回去,准备入手 ROR,现在正在抽空捣鼓 GVIM,工欲善其事,必先利其器。等搞好了,Share 下 O(∩_∩)O
#32 楼 @DavidWei #31 楼 @alucardpj 已经好了 现在 ruby.taobao.org 已经同步成最新的 Gem 版本了与官方服务器的文件数量一致。同时同步时间设置为 30 分钟一次。
#50 楼 @southwolf 用 http://github.com/huacnlee/rubygems-mirror 可以做一个完整镜像 Web 端只需要用 Nginx 指向到镜像目录就好了
gem source -a http://ruby.taobao.org/ -p http://10.16.21.5:8080
直接
Error fetching http://ruby.taobao.org/: bad response Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is d enied. ) 407 (http://ruby.taobao.org/specs.4.8.gz)
Hosting your own gem server, simply http://2beards.net/2012/01/hosting-your-own-rubygem-server
@huacnlee 我每次都是 /Users/bladeyu/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:215:in `fetch_http': bad response Not Found 404 (http://ruby.taobao.org/quick/Marshal.4.8/rbx-require-relative-0.0.5-universal-ruby-1.9.2.gemspec.rz) (Gem::RemoteFetcher::FetchError)
有办法解决吗?
按照主页指引执行 gem install foo 时候返回:
ERROR: Could not find a valid gem 'foo' (>= 0) in any repository
gem sources -a http://ruby.taobao.org/时报错: Error fetching http://ruby.taobao.org/: Errno::ECONNREFUSED:Connection refused 新手望大家指点迷津。
最近有点不稳定啊,又换成了官方的。 Fetching gem metadata from http://ruby.taobao.com/. Fetching source index from http://ruby.taobao.com/ Could not fetch specs from http://ruby.taobao.com/
$ bundle install Fetching source index from http://ruby.taobao.org/ Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from http://ruby.taobao.org/ Retrying source fetch due to error (3/3): Bundler::HTTPError Could not fetch specs from http://ruby.taobao.org/ Could not fetch specs from http://ruby.taobao.org/
今天遇到的
$ gem sources -a https://ruby.taobao.org/ Error fetching https://ruby.taobao.org/: no such name (https://ruby.taobao.org/specs.4.8.gz)
这是啥回事?
ERROR: Could not find a valid gem 'ruby-devel' (>= 0) in any repository 麻烦处理下
Error fetching https://ruby.taobao.org/: too many connection resets (https://ruby.taobao.org/specs.4.8.gz) 有人吗?
$ gem install bundler -V
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
HEAD http://ruby.taobao.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=bundler
200 OK
GET http://ruby.taobao.org/api/v1/dependencies?gems=bundler
200 OK
GET https://api.rubygems.org/quick/Marshal.4.8/bundler-1.10.5.gemspec.rz
302 Moved Temporarily
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ECONNABORTED: An established connection was aborted by the software in your host machine. - SSL_connect (https://api.rubygems.org/quick/Marshal.4.8/bundler-1.10.5.gemspec.rz)
这个怎么处理??
win7 64 位安装 ruby 2.2.1,更换淘宝 ruby 镜像时报错,求大神指教!! 错误信息: Error fetching https://ruby.taobao.org/:SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:certificate verify failed(https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz)
添加 ruby-china https 源报错: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:certificate verify failed(https://gems-ruby-china.b0.upaiyun.com/specs.4.8.gz)
测试证书 openssl s_client -connect gems.ruby-china.org:443 -CAfile /etc/ssl/certs/ca-certificates.crt 得到结果:Verify return code: 0 (ok)
openssl s_client -connect gems-ruby-china.b0.upaiyun.com:443 -CAfile /etc/ssl/certs/ca-certificates.crt 得到结果:Verify return code: 10 (certificate has expired)
调整服务器时间就 ok 了