Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

ERROR: Could not find valid gem... #6

Closed
gregwillits opened this Issue · 8 comments

4 participants

@gregwillits

I have a straight forward local install to play with (via thin, and a simple local thin start). I have the geminabox web site running at localhost:3000.

I use gem inabox pkg/spiffygem-0.1.0.gem and there are no errors during the push.

I can see that everything seems to be in order in the geminabox/data folder, and the web site shows the gem.

I have done gem sources -a http://localhost:3000/

Whether I just gem install xxxx or use the --source option, I get the error that the gem cannot be found.

Is it a valid gem, you ask? Well, I have already built the gem and installed it via the local build process, and it works just fine, AFAICT the gems themselves are valid in that they work in my applications.

What should I be checking?

BTW -- not cleaar to me at all what the Upload on the site is for. Upload what?

@gregwillits

Ah. looking at the console, something is blowing up because of:

RuntimeError - Unknown media type: ".rz":
...
geminabox/lib/hostess.rb:24:in `GET /quick/Marshal.4.8/*.gemspec.rz'

now what?

@cwninja
Owner

Hi Greg,
What version of Sinatra are you using?

The upload button is for uploading a .gem file.

@gregwillits

(sorry for the delay -- I was expecting to get an email from the comment system, maybe it got junked)

Sinatra 1.1.0, Thin 1.2.7, Ruby 1.8.7 (but now that I think about it, I'll have to deploy on 1.8.6)

@jsgoecke

I am having a similar problem using Unicorn:

127.0.0.1 - - [10/Nov/2010 10:26:03] "GET /prerelease_specs.4.8.gz HTTP/1.1" 200 24 0.0012
RuntimeError - Unknown media type: ".rz":
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in content_type'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in
send_file'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/geminabox-0.2.8/lib/hostess.rb:5:in serve'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/geminabox-0.2.8/lib/hostess.rb:24:in
GET /quick/Marshal.4.8/.gemspec.rz'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in
compile!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in instance_eval'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in
route_eval'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:604:in route!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:656:in
process_route'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in catch'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in
process_route'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:603:in route!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in
each'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in route!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:741:in
dispatch!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in call!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
instance_eval'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
catch'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in
call!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in
call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in synchronize'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/lint.rb:48:in _call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/lint.rb:36:in
call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in
call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:510:in process_client'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:585:in
worker_loop'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:583:in each'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:583:in
worker_loop'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:473:in spawn_missing_workers'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:470:in
fork'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:470:in spawn_missing_workers'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:466:in
each'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:466:in spawn_missing_workers'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:480:in
maintain_worker_count'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:163:in start'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn.rb:13:in
run'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/bin/unicorn:120
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/bin/unicorn:19:in load'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/bin/unicorn:19
RuntimeError: Unknown media type: ".rz"
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in
content_type'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in send_file'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/geminabox-0.2.8/lib/hostess.rb:5:in
serve'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/geminabox-0.2.8/lib/hostess.rb:24:in `GET /quick/Marshal.4.8/
.gemspec.rz'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in
compile!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in instance_eval'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in
route_eval'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:604:in route!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:656:in
process_route'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in catch'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in
process_route'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:603:in route!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in
each'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in route!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:741:in
dispatch!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in call!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
instance_eval'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in
catch'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in
call!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in
call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in synchronize'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in
call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/lint.rb:48:in _call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/lint.rb:36:in
call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:in
call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:510:in process_client'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:585:in
worker_loop'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:583:in each'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:583:in
worker_loop'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:473:in spawn_missing_workers'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:470:in
fork'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:470:in spawn_missing_workers'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:466:in
each'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:466:in spawn_missing_workers'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:480:in
maintain_worker_count'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:163:in start'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn.rb:13:in
run'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/bin/unicorn:120
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/bin/unicorn:19:in `load'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/bin/unicorn:19
127.0.0.1 - - [10/Nov/2010 10:26:17] "GET /quick/Marshal.4.8/tropo-provisioning-0.0.1.gemspec.rz HTTP/1.1" 500 126291 0.0597

@cwninja
Owner

Firstly, my apologies for the delay.

I have replicated the problem in Sinatra 1.1, and it now seems fixed in geminabox-0.2.9.pre1.

Try a gem install geminabox --prerelease and let me know if this fixes for you.

Thanks for your patience.

@pablito

Hi Tom,
just a couple of lines to let you know that I had the same issue and 0.2.9.pre1 solved it for me.
My conf was:
MRI ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
passenger (3.0.0)
rack (1.2.1)
sinatra (1.1.0)

Thanks,

Paolo Angelini

@cwninja
Owner

Thanks pablito. I've regression tested it on sinatra 1.0, so I'll ship it out as 0.2.9.

@cwninja
Owner

Release the fix for sinatra 1.1.0.

Closed by 01abc65

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.