[Rubygems-developers] gem server problems in 0.9.5

Chad Woolley thewoolleyman at gmail.com
Tue Dec 11 03:30:47 EST 2007


I'm having problems running the 0.9.5 gem server.  I have a directory
of stub gems for testing that works fine with the gem_server <= 0.9.4.
 It's here:

http://geminstaller.rubyforge.org/svn/tags/rel_0.2.4/spec/fixture/gems/

I can run these commands successfully in 0.9.4 to start a server and
list all the gems in this dir:

$ gem_server -d .../gems/ -p 9909
$ gem list --remote --source=http://localhost:9909

However, in 0.9.5, I get errors trying to do this same thing

First, I have to delete the local cache because of this command
failing previously
$ rm -rf ~/.gem

Then, I generate the index from the gem dir (although the error still
happens even if I don't)
$ gem generate_index

Then, I start the server:
$ gem server --dir=.../gems/ --port=9909
Starting gem server on http://localhost:9909/

Then, I get error listing some of the gems:
$ gem list --remote --source=http://localhost:9909

*** REMOTE GEMS ***

Updating metadata for 8 gems from http://localhost:9909
Failed to download spec stubgem-multiplatform-1.0.1-x86-mswin32-60
from http://localhost:9909:
        OpenURI::HTTPError: 404 Not Found  reading
http://localhost:9909/quick/stubgem-multiplatform-1.0.1-x86-mswin32-60.gemspec.rz
Failed to download spec dependent-stubgem-1.0.0 from http://localhost:9909:
        OpenURI::HTTPError: 500 Internal Server Error  reading
http://localhost:9909/quick/dependent-stubgem-1.0.0.gemspec.rz
..Failed to download spec stubgem-multiplatform-1.0.0 from
http://localhost:9909:
        OpenURI::HTTPError: 500 Internal Server Error  reading
http://localhost:9909/quick/stubgem-multiplatform-1.0.0.gemspec.rz
Failed to download spec stubgem-multiplatform-1.0.1 from http://localhost:9909:
        OpenURI::HTTPError: 500 Internal Server Error  reading
http://localhost:9909/quick/stubgem-multiplatform-1.0.1.gemspec.rz
Failed to download spec stubgem-1.0.0 from http://localhost:9909:
        OpenURI::HTTPError: 500 Internal Server Error  reading
http://localhost:9909/quick/stubgem-1.0.0.gemspec.rz
Failed to download spec
dependent-stubgem-multiplatform-1.0.0-x86-mswin32-60 from
http://localhost:9909:
        OpenURI::HTTPError: 404 Not Found  reading
http://localhost:9909/quick/dependent-stubgem-multiplatform-1.0.0-x86-mswin32-60.gemspec.rz

complete
dependent-stubgem-depends-on-multiplatform (1.0.0)
dependent-stubgem-multilevel (1.0.0)



...and here's the output of the server:
127.0.0.1 - - [11/Dec/2007:01:19:12 MST] "HEAD /Marshal.4.8 HTTP/1.1" 200 0
- -> /Marshal.4.8
127.0.0.1 - - [11/Dec/2007:01:20:17 MST] "HEAD /Marshal.4.8 HTTP/1.1" 200 0
- -> /Marshal.4.8
127.0.0.1 - - [11/Dec/2007:01:20:17 MST] "GET /quick/index.rz HTTP/1.1" 200 100
- -> /quick/index.rz
127.0.0.1 - - [11/Dec/2007:01:20:17 MST] "GET
/quick/Marshal.4.8/stubgem-multiplatform-1.0.1-x86-mswin32-60.gemspec.rz
HTTP/1.1" 404 0
- -> /quick/Marshal.4.8/stubgem-multiplatform-1.0.1-x86-mswin32-60.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:17 MST] "GET
/quick/stubgem-multiplatform-1.0.1-x86-mswin32-60.gemspec.rz HTTP/1.1"
404 0
- -> /quick/stubgem-multiplatform-1.0.1-x86-mswin32-60.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:17 MST] "GET
/quick/Marshal.4.8/dependent-stubgem-1.0.0.gemspec.rz HTTP/1.1" 404 0
- -> /quick/Marshal.4.8/dependent-stubgem-1.0.0.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/dependent-stubgem-1.0.0.gemspec.rz HTTP/1.1" 500 0
- -> /quick/dependent-stubgem-1.0.0.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/Marshal.4.8/dependent-stubgem-multilevel-1.0.0.gemspec.rz
HTTP/1.1" 404 0
- -> /quick/Marshal.4.8/dependent-stubgem-multilevel-1.0.0.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/dependent-stubgem-multilevel-1.0.0.gemspec.rz HTTP/1.1" 200 660
- -> /quick/dependent-stubgem-multilevel-1.0.0.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/Marshal.4.8/dependent-stubgem-depends-on-multiplatform-1.0.0.gemspec.rz
HTTP/1.1" 404 0
- -> /quick/Marshal.4.8/dependent-stubgem-depends-on-multiplatform-1.0.0.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/dependent-stubgem-depends-on-multiplatform-1.0.0.gemspec.rz
HTTP/1.1" 200 678
- -> /quick/dependent-stubgem-depends-on-multiplatform-1.0.0.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/Marshal.4.8/stubgem-multiplatform-1.0.0.gemspec.rz HTTP/1.1"
404 0
- -> /quick/Marshal.4.8/stubgem-multiplatform-1.0.0.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/stubgem-multiplatform-1.0.0.gemspec.rz HTTP/1.1" 500 0
- -> /quick/stubgem-multiplatform-1.0.0.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/Marshal.4.8/stubgem-multiplatform-1.0.1.gemspec.rz HTTP/1.1"
404 0
- -> /quick/Marshal.4.8/stubgem-multiplatform-1.0.1.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/stubgem-multiplatform-1.0.1.gemspec.rz HTTP/1.1" 500 0
- -> /quick/stubgem-multiplatform-1.0.1.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/Marshal.4.8/stubgem-1.0.0.gemspec.rz HTTP/1.1" 404 0
- -> /quick/Marshal.4.8/stubgem-1.0.0.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/stubgem-1.0.0.gemspec.rz HTTP/1.1" 500 0
- -> /quick/stubgem-1.0.0.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:18 MST] "GET
/quick/Marshal.4.8/dependent-stubgem-multiplatform-1.0.0-x86-mswin32-60.gemspec.rz
HTTP/1.1" 404 0
- -> /quick/Marshal.4.8/dependent-stubgem-multiplatform-1.0.0-x86-mswin32-60.gemspec.rz
127.0.0.1 - - [11/Dec/2007:01:20:19 MST] "GET
/quick/dependent-stubgem-multiplatform-1.0.0-x86-mswin32-60.gemspec.rz
HTTP/1.1" 404 0
- -> /quick/dependent-stubgem-multiplatform-1.0.0-x86-mswin32-60.gemspec.rz



I notice that the only thing that is generated in the /quick dir is
index and index.rz.  This seems to be the problem, since the gem list
command is looking for other files under /quick.

Is this a bug, or am I doing something wrong?

Thanks,
-- Chad


More information about the Rubygems-developers mailing list