Error during API request. Bundler::HTTPError: Net::HTTPInternalServerError #160

Closed
danielfoglio opened this Issue Mar 6, 2014 · 14 comments

7 participants

@danielfoglio

Fetching from: http://#{ROOT_URL_HERE}/api/v1/dependencies?gems=rake,diff-lcs,facter,json_pure,hiera,highline,json,thor,librarian-puppet,metaclass,mocha,net-ssh,rgen,puppet,puppet-lint,rspec-core,rspec-expectations,rspec-mocks,rspec,rspec-puppet,puppetlabs_spec_helper,serverspec
Error during API request. Bundler::HTTPError: Net::HTTPInternalServerError: <!DOCTYPE html>



Errno::ECONNRESET at /rubygems/api/v1/dependencies
..........
sinatra.error

#<Errno::ECONNRESET: Connection reset by peer - SSL_connect>


.......
/export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/fetcher.rb:229:in fetch' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/fetcher.rb:222:infetch' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/fetcher.rb:242:in fetch_dependency_remote_specs' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/fetcher.rb:151:infetch_remote_specs' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/fetcher.rb:106:in specs' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:235:inblock in remote_specs' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:235:in each' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:235:inremote_specs' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:163:in fetch_specs' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb:67:inspecs' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/lazy_specification.rb:52:in __materialize__' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/spec_set.rb:88:inblock in materialize' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in map!' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:inmaterialize' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in specs' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/definition.rb:109:inresolve_remotely!' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/installer.rb:83:in run' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/installer.rb:14:ininstall' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/cli.rb:247:in install' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/vendor/thor/task.rb:27:inrun' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/vendor/thor/invocation.rb:120:in invoke_task' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/vendor/thor.rb:344:indispatch' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/vendor/thor/base.rb:434:in start' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/bin/bundle:20:inblock in ' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/lib/bundler/friendly_errors.rb:3:in with_friendly_errors' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.3.5/bin/bundle:20:in' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/bin/bundle:23:in load' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/bin/bundle:23:in' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in eval' /export/home/code_builds/.rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in'
[exec] Fetching source index from http://code/rubygems/

It then downloads everything in /quick/Marshal.4.8

This error does not happen all the time, however it does happen..

@reggieb
Gem in a Box member

Interesting that this is an SSL error. I wonder if it is related to this: #161

That is, it is called by an inherent problem HTTPClient has with HTTPS

@reggieb
Gem in a Box member

I've just released 0.12.4, and that includes an alternative adapter. Try adding this to your config.ru:

Geminabox.http_adapter = TemplateFaradayAdapter.new

That adapter used Faraday rather than HTTPClient.

@inventitecnologia

How to install TemplateFaradayAdapter.new ?
I install faraday gem and din't work.

@jperville

@inventitech configure the adapter it in your config.ru like this:

# config.ru
require "geminabox"

# The default HttpAdapter poorly handles timeouts, so we switch to Faraday.
require 'geminabox/http_adapter/template_faraday_adapter'
Geminabox.http_adapter = Geminabox::TemplateFaradayAdapter.new

run Geminabox::Server
@reggieb
Gem in a Box member

@jperville, I've modified your post so it only includes the modifications need to enable the template faraday adapter.

@jperville

You're welcome

@danielfoglio

Just updated due to the issue peeking its head out. Saw this in my log:

HTTPClient::BadResponseError - unexpected response: #<HTTP::Message::Headers:0x0000001f9c1a98 @http_version="1.1", @body_size=0, @chunked=false, @request_method="GET", @request_uri=#<URI::HTTPS:0x0000001f
9c1e58 URL:https://bundler.rubygems.org/api/v1/dependencies.json?gems=rake,diff-lcs,facter,json_pure,hiera,highline,json,thor,librarian-puppet,metaclass,mocha,net-ssh,rgen,puppet,puppet-lint,rspec-core,rs
pec-expectations,rspec-mocks,rspec,rspec-puppet,puppetlabs_spec_helper,serverspec>, @request_query=nil, @request_absolute_uri=nil, @status_code=503, @reason_phrase="Service Unavailable", @body_type=nil, @
body_charset=nil, @body_date=nil, @body_encoding=#<Encoding:UTF-8>, @is_request=false, @header_item=[["Cache-Control", "no-cache, no-store"], ["Content-Type", "text/html; charset=utf-8"], ["Date", "Mon, 2
8 Apr 2014 20:40:10 GMT"], ["Server", "MochiWeb/1.0 (Any of you quaids got a smint?)"], ["Content-Length", "409"], ["Connection", "keep-alive"]], @dumped=false>:

When I use the other adapter:

Thin web server (v1.6.2 codename Doc Brown)
Maximum connections set to 1024
Listening on 0.0.0.0:8092, CTRL+C to stop
Zlib::GzipFile::Error - not in gzip format:
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/util.rb:16:in `initialize'
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/util.rb:16:in `new'
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/util.rb:16:in `gunzip'
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems.rb:520:in `gunzip'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:54:in `unpackage'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:50:in `merge_gziped_content'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:38:in `merge_content'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:18:in `new_content'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `block in create'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `open'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `create'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:8:in `make'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/hostess.rb:71:in `splice_file'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/hostess.rb:22:in `block (2 levels) in <class:Hostess>'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `block in compile!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `[]'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `block (3 levels) in route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:976:in `route_eval'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `block (2 levels) in route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:997:in `block in process_route'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `process_route'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:955:in `block in route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `each'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1067:in `block in dispatch!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `block in invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1064:in `dispatch!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `block in call!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `block in invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `call!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:877:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/xss_header.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/path_traversal.rb:16:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/json_csrf.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/frame_options.rb:31:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/show_exceptions.rb:21:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/xss_header.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/path_traversal.rb:16:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/json_csrf.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/frame_options.rb:31:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/show_exceptions.rb:21:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `block in call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1778:in `synchronize'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/thin:23:in `load'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/thin:23:in `<main>'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/ruby_executable_hooks:15:in `eval'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/ruby_executable_hooks:15:in `<main>'
Zlib::GzipFile::Error - not in gzip format:
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/util.rb:16:in `initialize'
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/util.rb:16:in `new'
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/util.rb:16:in `gunzip'
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems.rb:520:in `gunzip'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:54:in `unpackage'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:50:in `merge_gziped_content'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:38:in `merge_content'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:18:in `new_content'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `block in create'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `open'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `create'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:8:in `make'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/hostess.rb:71:in `splice_file'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/hostess.rb:22:in `block (2 levels) in <class:Hostess>'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `block in compile!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `[]'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `block (3 levels) in route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:976:in `route_eval'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `block (2 levels) in route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:997:in `block in process_route'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `process_route'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:955:in `block in route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `each'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1067:in `block in dispatch!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `block in invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1064:in `dispatch!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `block in call!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `block in invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `call!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:877:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/xss_header.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/path_traversal.rb:16:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/json_csrf.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/frame_options.rb:31:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/show_exceptions.rb:21:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/xss_header.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/path_traversal.rb:16:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/json_csrf.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/frame_options.rb:31:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/show_exceptions.rb:21:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `block in call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1778:in `synchronize'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/thin:23:in `load'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/thin:23:in `<main>'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/ruby_executable_hooks:15:in `eval'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/ruby_executable_hooks:15:in `<main>'
Zlib::GzipFile::Error - not in gzip format:
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/util.rb:16:in `initialize'
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/util.rb:16:in `new'
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/util.rb:16:in `gunzip'
    /export/home/code/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems.rb:520:in `gunzip'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:54:in `unpackage'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:50:in `merge_gziped_content'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:38:in `merge_content'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:18:in `new_content'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `block in create'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `open'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `create'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:8:in `make'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/hostess.rb:71:in `splice_file'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/geminabox-0.12.4/lib/geminabox/proxy/hostess.rb:22:in `block (2 levels) in <class:Hostess>'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1593:in `block in compile!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `[]'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `block (3 levels) in route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:976:in `route_eval'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:957:in `block (2 levels) in route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:997:in `block in process_route'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:995:in `process_route'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:955:in `block in route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `each'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:954:in `route!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1067:in `block in dispatch!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `block in invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1064:in `dispatch!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `block in call!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `block in invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1049:in `invoke'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:889:in `call!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:877:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/xss_header.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/path_traversal.rb:16:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/json_csrf.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/frame_options.rb:31:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/show_exceptions.rb:21:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/xss_header.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/path_traversal.rb:16:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/json_csrf.rb:18:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/base.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-protection-1.5.2/lib/rack/protection/frame_options.rb:31:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/show_exceptions.rb:21:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:180:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:2004:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `block in call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1778:in `synchronize'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/sinatra-1.4.4/lib/sinatra/base.rb:1469:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/controllers/controller.rb:87:in `start'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/runner.rb:199:in `run_command'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/lib/thin/runner.rb:155:in `run!'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/gems/thin-1.6.2/bin/thin:6:in `<top (required)>'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/thin:23:in `load'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/thin:23:in `<main>'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/ruby_executable_hooks:15:in `eval'
    /export/home/code/.rvm/gems/ruby-1.9.3-p545@code/bin/ruby_executable_hooks:15:in `<main>'
Exiting!
@reggieb
Gem in a Box member

That looks like a new problem. Can you please raise this as a new issue.

Also have a look at https://help.github.com/articles/github-flavored-markdown

If you enter your log outputs as code, your post will be a lot easier to read. I've modified your post as an example.

@reggieb reggieb closed this Apr 29, 2014
@mcg

@danielfoglio Did you resolve this issue? I am getting what looks to be the same "Zlib::GzipFile::Error - not in gzip format" when I switch to Faraday and I don't see another ticket that addresses it.

@reggieb
Gem in a Box member

@mcg if you don't see it, it probably doesn't exist. Can you please raise it as a new error.

@danielfoglio

I never got the other adapter to work, however the default seems to be working with 0.12.4 ... Having issues?

@mcg

Yup. Having bundler hangs during deploys(Bundler::HTTPError Could not fetch specs), but only to our geminabox instance that is acting as a rubygems cache not our other instance that hosts internal gems. Trying to catch a hang with enough detail to submit a useful bug report.

@ashwinphatak

I'm seeing this error from bundler:

Fetching source index from http://192.168.0.3:9292/
Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from http://192.168.0.3:9292/
Retrying source fetch due to error (3/3): Bundler::HTTPError Could not fetch specs from http://192.168.0.3:9292/
Could not fetch specs from http://192.168.0.3:9292/

My config.ru looks like this:

require "rubygems"
require "geminabox"
require 'geminabox/http_adapter/template_faraday_adapter'

Geminabox.data = "./cache"
Geminabox.http_adapter = Geminabox::TemplateFaradayAdapter.new
Geminabox.rubygems_proxy = true

run Geminabox::Server

and the exception from from the gem on the console

[2014-12-08 19:01:47] INFO  WEBrick 1.3.1
[2014-12-08 19:01:47] INFO  ruby 1.9.3 (2013-11-22) [x86_64-linux]
[2014-12-08 19:01:47] INFO  WEBrick::HTTPServer#start: pid=11961 port=9292
172.17.0.6 - - [08/Dec/2014 19:02:04] "GET /api/v1/dependencies HTTP/1.1" 200 - 0.0410
172.17.0.6 - - [08/Dec/2014 19:02:14] "GET /api/v1/dependencies HTTP/1.1" 200 - 0.0027
Zlib::GzipFile::Error - not in gzip format:
    /usr/lib/ruby/1.9.1/rubygems.rb:543:in `initialize'
    /usr/lib/ruby/1.9.1/rubygems.rb:543:in `new'
    /usr/lib/ruby/1.9.1/rubygems.rb:543:in `gunzip'
    /var/lib/gems/1.9.1/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:54:in `unpackage'
    /var/lib/gems/1.9.1/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:50:in `merge_gziped_content'
    /var/lib/gems/1.9.1/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:38:in `merge_content'
    /var/lib/gems/1.9.1/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:18:in `new_content'
    /var/lib/gems/1.9.1/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `block in create'
    /var/lib/gems/1.9.1/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `open'
    /var/lib/gems/1.9.1/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:13:in `create'
    /var/lib/gems/1.9.1/gems/geminabox-0.12.4/lib/geminabox/proxy/splicer.rb:8:in `make'
    /var/lib/gems/1.9.1/gems/geminabox-0.12.4/lib/geminabox/proxy/hostess.rb:71:in `splice_file'
    /var/lib/gems/1.9.1/gems/geminabox-0.12.4/lib/geminabox/proxy/hostess.rb:22:in `block (2 levels) in <class:Hostess>'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `call'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `[]'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (2 levels) in route!'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `catch'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `each'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `catch'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in `call'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
    /var/lib/gems/1.9.1/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in `call'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/lint.rb:49:in `_call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/lint.rb:37:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/showexceptions.rb:24:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call'
    /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:217:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/chunked.rb:43:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
    /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
    /usr/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
    /usr/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
    /usr/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'

Any idea what causes the Zlib::GzipFile::Error - not in gzip format error?

@newdark

It is because of bad data in your Marshal folder. the path should be this

Geminabox.data + '/proxy/quick/Marshal.4.8/

The root path is where ever your data is stored for the gems. Just by clearing out that folder/directory you should see the error go away. However it will make everything super slow until it can rebuild all the rz files.

There are other ways to find the file the broken file but I found this to be the fastest way to resolve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment