Create Rubygems mirror, gem generate_index failed in stack level too deep
I want to create a full rubygems.org mirror in China, Because
rubygems.org's backend store Amazon was be shielded by out GOV some
times. so, we need a mirror server in China.
I was used rubygems-mirror to sync 150000+ gem files in my local
server.
Then I use "gem generate_index /path/rubygems" common, waiting a
long times, will result this error message:
/home/jason/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/indexer.rb:129: stack level too deep (SystemStackError)
I was retry the again and again, and I was try to fix them, but
in finally, it still can not process success.
pls help me.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Nick Quaranto on 18 Dec, 2011 08:05 PM
Can you try with ruby 1.8.7?
Also, have you tried this out?
https://github.com/rubygems/rubygems-mirror
3 Posted by huacnlee on 19 Dec, 2011 02:55 AM
@Nick Quaranto I was used rubygems-mirror to download that 150000+ gem files.
And I had tried Ruby 1.8.7 and others Ruby versions, it both can't working.
4 Posted by huacnlee on 26 Dec, 2011 08:23 AM
This is not need now, can use this gem to sync all files.
https://github.com/huacnlee/rubygems-mirror
5 Posted by huacnlee on 26 Dec, 2011 08:23 AM
https://github.com/huacnlee/rubygems-mirror
Support Staff 6 Posted by Nick Quaranto on 11 Jan, 2012 02:53 PM
Cool, if you wouldn't mind submitting your patches upstream to @raggi it would help out everyone who runs mirrors. :)
7 Posted by João Duarte on 22 Feb, 2012 05:44 PM
I'm getting the same error with 1.9.2. I've used rubygems-mirror to download the gems, but generate_index is still needed afterwards, no?
8 Posted by João Duarte on 22 Feb, 2012 05:53 PM
Nevermind, did not notice it was a different repo that syncs the indexes. Still, this is a workaround..
Support Staff 9 Posted by Evan Phoenix on 23 Feb, 2012 06:13 AM
Are you still having this problem using rubygems-mirror?
10 Posted by João Duarte on 23 Feb, 2012 09:37 AM
rubygems-mirror solves the problem of making a full rubygems.org copy.
I'm guessing though that if rubygems.org itself ever tries to fully reindex the gem collection it will run into this "stack level too deep" error in gem#generate_index.
Support Staff 11 Posted by Evan Phoenix on 23 Feb, 2012 04:54 PM
rubygems.org has a custom indexer, so it won't ever run into this problem. That being said, this is likely a bug in generate_index and should be a bug on github.com/rubygems/rubygems/issues.
Evan Phoenix closed this discussion on 23 Feb, 2012 04:54 PM.