Bugs item #25509, was opened at 2009-04-16 13:15
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25509&group_id=126

Category: `gem` commands (other)
Group: v1.3.x
>Status: Closed
Resolution: Accepted
Priority: 3
Submitted By: Johnathan Conley (jconley)
Assigned to: Eric Hodel (drbrain)
Summary: exception using new generate_index in 1.3.2

Initial Comment:

After upgrading to 1.3.2, I wiped out my old indexes, and build a full index 
from scratch. Everything worked fine... but afterwards I rsyned with the 
upstream server, one new gem was available... and then I ran generate_index 
with the --update option and received this error...


receiving file list ... done
Onion-0.0.2.gem

sent 240 bytes  received 623761 bytes  83200.13 bytes/sec
total size is 4929983101  speedup is 7900.60

$ gem generate_index --no-legacy --update -d /home/mirror/www --backtrace
Loading 1 gems from /home/mirror/www
.
Loaded all gems
loaded: 0.004s
Generating Marshal quick index gemspecs for 1 gems
.
Complete
Generated Marshal quick index gemspecs: 0.001s
ERROR:  While executing gem ... (NoMethodError)
    undefined method `<=>' for nil:NilClass
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:703:in
 `<=>'
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:703:in
 `sort'
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:703:in
 `update_specs_index'
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:656:in
 `update_index'
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems.rb:966:in 
`time'
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:655:in
 `update_index'
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/commands/generate_index_command.rb:125:in
 `execute'
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/command.rb:254:in
 `invoke'
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:132:in
 `process_args'
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in
 `run'
        
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in
 `run'
        /opt/ruby/bin/gem:21


Below is the output from the first full index build... likely won't help since 
it completed without errors.

Complete
Generated Marshal quick index gemspecs: 11.859s
Generating specs index
WARNING:  Skipping invalid platform in gem: win32-api-1.0.4-x86-mswin32-60
Generated specs index: 0.483s
Generating latest specs index
Generated latest specs index: 0.094s
Generating prerelease specs index
Generated prerelease specs index: 0.000s
Compressing indicies
Compressed indicies: 0.068s


----------------------------------------------------------------------

Comment By: Ryan Davis (zenspider)
Date: 2010-11-12 14:46

Message:
This ticket has been deemed stale and we're closing it in order to catch up 
with our ticket list. If you think it is still valid, please reopen.

----------------------------------------------------------------------

Comment By: Johnathan Conley (jconley)
Date: 2009-07-12 16:52

Message:
It's not specific to that gem... as long as any new gem is
added to the repo before performing a reindex with --update.
As you'll note in a subsequent post, there are a totally
different set of updated gems pulled before the reindex.

This should be reproducible as I'm replicating the master
rubyforge gems repository:
rsync -av --del --exclude-from=rubygems.excludes
rsync://master.mirror.rubyforge.org/gems/ $GEM_MIRROR_BASE/gems 

rubygems.excludes includes a few gems which had spec
problems affecting other bugs in the past:
win32-api-1.0.4-x86-mswin32-60.gem
facets-2005.10.10.gem
facets-2005.10.11.gem
facets-2005.10.15.gem
facets-2005.10.30.gem

I am running generate_index with the following params:
gem generate_index --no-legacy -d $GEM_MIRROR_BASE
--backtrace -V


----------------------------------------------------------------------

Comment By: Eric Hodel (drbrain)
Date: 2009-07-07 17:30

Message:
What is the output of `gem spec Onion-0.0.2.gem`

Either name, version or platform appear to be nil, or your specs file is 
corrupt on input.

Can you attach Onion-0.0.2.gem to this ticket?

----------------------------------------------------------------------

Comment By: Johnathan Conley (jconley)
Date: 2009-07-07 09:59

Message:
still happening in 1.3.4, now at indexer.rb:704:in `<=>'

----------------------------------------------------------------------

Comment By: Johnathan Conley (jconley)
Date: 2009-05-07 14:03

Message:
yes, still happening... same error and line

----------------------------------------------------------------------

Comment By: Daniel Berger (djberg96)
Date: 2009-05-05 20:39

Message:
Still happening with 1.3.3?

----------------------------------------------------------------------

Comment By: Johnathan Conley (jconley)
Date: 2009-04-16 17:24

Message:

Here is my latest run with -V

$ ./mirror-rubygems.sh
receiving file list ... done
./
gem_tools-0.2.0.gem
graph-1.1.0.gem
hoe-1.12.2.gem
mingle-macro-development-toolkit-1.2.gem
provisional-1.2.5.gem
rforce-0.3.gem
unicorn-0.5.2.gem

sent 378 bytes  received 796293 bytes  75873.43 bytes/sec
total size is 4930164349  speedup is 6188.46
Loading 8 gems from /home/mirror/www
1/8: mingle-macro-development-toolkit-1.2
2/8: hoe-1.12.2
3/8: graph-1.1.0
4/8: gem_tools-0.2.0
5/8: unicorn-0.5.2
6/8: Onion-0.0.2
7/8: provisional-1.2.5
8/8: rforce-0.3
Loaded all gems
loaded: 0.097s
Generating Marshal quick index gemspecs for 8 gems
1/8: gem_tools-0.2.0
2/8: provisional-1.2.5
3/8: graph-1.1.0
4/8: rforce-0.3
5/8: hoe-1.12.2
6/8: unicorn-0.5.2
7/8: Onion-0.0.2
8/8: mingle-macro-development-toolkit-1.2
Complete
Generated Marshal quick index gemspecs: 0.030s
ERROR:  While executing gem ... (NoMethodError)
    undefined method `<=>' for nil:NilClass
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:703:in
`<=>'
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:703:in
`sort'
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:703:in
`update_specs_index'
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:656:in
`update_index'
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems.rb:966:in
`time'
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/indexer.rb:655:in
`update_index'
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/commands/generate_index_command.rb:125:in
`execute'
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/command.rb:254:in
`invoke'
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:132:in
`process_args'
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in
`run'
       
/opt/ruby-enterprise-1.8.6-20081205/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in
`run'
        /opt/ruby/bin/gem:21


----------------------------------------------------------------------

Comment By: Eric Hodel (drbrain)
Date: 2009-04-16 13:40

Message:
Can you run with -V as well?

gem generate_index --no-legacy --update -d /home/mirror/www --backtrace -V

This should give the gem that's causing the problem.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25509&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to