{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/ruby.taobao.org/issues/1","labels_url":"https://api.github.com/repos/alibaba/ruby.taobao.org/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/ruby.taobao.org/issues/1/comments","events_url":"https://api.github.com/repos/alibaba/ruby.taobao.org/issues/1/events","html_url":"https://github.com/alibaba/ruby.taobao.org/issues/1","id":32765467,"number":1,"title":"在 Gems 同步过程中会出现  ***.gemspec.rz 不存在的问题","user":{"login":"huacnlee","id":5518,"avatar_url":"https://avatars.githubusercontent.com/u/5518?v=3","gravatar_id":"","url":"https://api.github.com/users/huacnlee","html_url":"https://github.com/huacnlee","followers_url":"https://api.github.com/users/huacnlee/followers","following_url":"https://api.github.com/users/huacnlee/following{/other_user}","gists_url":"https://api.github.com/users/huacnlee/gists{/gist_id}","starred_url":"https://api.github.com/users/huacnlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huacnlee/subscriptions","organizations_url":"https://api.github.com/users/huacnlee/orgs","repos_url":"https://api.github.com/users/huacnlee/repos","events_url":"https://api.github.com/users/huacnlee/events{/privacy}","received_events_url":"https://api.github.com/users/huacnlee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-05-04T09:58:05Z","updated_at":"2016-01-22T10:41:05Z","closed_at":null,"body":"```bash\r\nERROR:  Could not find a valid gem 'alibaba-kfc' (>= 0), here is why:\r\n          Unable to download data from https://ruby.taobao.org/ - bad response Not Found 404 (https://rubygems-china.oss.aliyuncs.com/quick/Marshal.4.8/alibaba-kfc-0.0.3.gemspec.rz)\r\nERROR:  Interrupted\r\n```\r\n\r\n原因我猜测是由于 rubygems-mirror 在同步的时候是先下载的 yaml, latest_specs, Marshal 等文件，所以在这个时刻用户安装会拿到新的版本号，而相关的 .gem, .gemspec.rz 文件还未下载完成。\r\n\r\n解决方法是同步 \r\n\r\n```\r\nFetching yaml...304 Not modified with etag 042dac3d18a42b12f474524927807d9f\r\n[Done]\r\nFetching yaml.Z...304 Not modified with etag b0ba87de8c419a500fc1517ff24940b1\r\n[Done]\r\nFetching latest_specs.4.8...304 Not modified with etag f03e9b38599cdfb8940aa9f8b391d37f\r\n[Done]\r\nFetching latest_specs.4.8.gz...store latest_specs.4.8.gz to oss bucket rubygems-china\r\n[Done]\r\nFetching Marshal.4.8...304 Not modified with etag 53aaefc8024abe07cad528531060ffc6\r\n[Done]\r\nFetching Marshal.4.8.Z...304 Not modified with etag 7f849da00751cd28ba45ab69a52a2217\r\n[Done]\r\nFetching prerelease_specs.4.8...store prerelease_specs.4.8 to oss bucket rubygems-china\r\n[Done]\r\nFetching prerelease_specs.4.8.gz...store prerelease_specs.4.8.gz to oss bucket rubygems-china\r\n[Done]\r\nFetching specs.4.8...store specs.4.8 to oss bucket rubygems-china\r\n[Done]\r\nFetching specs.4.8.gz...store specs.4.8.gz to oss bucket rubygems-china\r\n[Done]\r\n```\r\n\r\n这些文件的时候，先放到临时的地方，等 gem, gemspec.gz 文件都同步完成以后，再软连接到正确的位置。"},"comment":{"url":"https://api.github.com/repos/alibaba/ruby.taobao.org/issues/comments/173874718","html_url":"https://github.com/alibaba/ruby.taobao.org/issues/1#issuecomment-173874718","issue_url":"https://api.github.com/repos/alibaba/ruby.taobao.org/issues/1","id":173874718,"user":{"login":"eeve","id":16770728,"avatar_url":"https://avatars.githubusercontent.com/u/16770728?v=3","gravatar_id":"","url":"https://api.github.com/users/eeve","html_url":"https://github.com/eeve","followers_url":"https://api.github.com/users/eeve/followers","following_url":"https://api.github.com/users/eeve/following{/other_user}","gists_url":"https://api.github.com/users/eeve/gists{/gist_id}","starred_url":"https://api.github.com/users/eeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeve/subscriptions","organizations_url":"https://api.github.com/users/eeve/orgs","repos_url":"https://api.github.com/users/eeve/repos","events_url":"https://api.github.com/users/eeve/events{/privacy}","received_events_url":"https://api.github.com/users/eeve/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T10:41:05Z","updated_at":"2016-01-22T10:41:05Z","body":"+1 \r\n```{bash}\r\n$ sudo gem install compass\r\nERROR:  Could not find a valid gem 'compass' (>= 0), here is why:\r\n          Unable to download data from http://ruby.taobao.org/ - bad response Not Found 404 (http://ruby.taobao.org/latest_specs.4.8.gz)\r\n```"}}