Skip to content
This repository was archived by the owner on Sep 25, 2020. It is now read-only.

Could not fetch prerelease specs from rubygems repository http://rubygems.dev/ #4

Open
kimptoc opened this issue Jul 27, 2011 · 5 comments

Comments

@kimptoc
Copy link

kimptoc commented Jul 27, 2011

Hi,

Thanks for the great gem - the proxy is generally working fine via the command line.

However when I use it via my IDE Rubymine ( http://www.jetbrains.com/ruby/ ), I get the above error or perhaps gzip related messages.

Any suggestions on how I investigate this?

Is it perhaps some of the protocol that the proxy does not support?

Thanks,
Chris

@kimptoc
Copy link
Author

kimptoc commented Jul 31, 2011

Hi,

Also getting a failure today:

$ bundle install
Fetching source index for http://rubygems.dev/
/Users/kimptoc/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:594:in `initialize': not in gzip format (Zlib::GzipFile::Error)
from /Users/kimptoc/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:594:in `new'
from /Users/kimptoc/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:594:in `gunzip'
from /Users/kimptoc/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:194:in `fetch_path'
from /Users/kimptoc/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:254:in `load_specs'
from /Users/kimptoc/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:227:in `block in list'
from /Users/kimptoc/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:223:in `each'
from /Users/kimptoc/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:223:in `list'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/source.rb:247:in `fetch_all_remote_specs'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/source.rb:228:in `block in remote_specs'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/source.rb:225:in `each'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/source.rb:225:in `remote_specs'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/source.rb:164:in `block in fetch_specs'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/index.rb:7:in `build'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/source.rb:161:in `fetch_specs'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/source.rb:70:in `specs'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/definition.rb:159:in `block (2 levels) in index'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/definition.rb:158:in `each'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/definition.rb:158:in `block in index'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/index.rb:7:in `build'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/definition.rb:157:in `index'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/definition.rb:151:in `resolve'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/definition.rb:90:in `specs'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/definition.rb:85:in `resolve_remotely!'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/installer.rb:43:in `run'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/installer.rb:8:in `install'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/cli.rb:222:in `install'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:246:in `dispatch'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:389:in `start'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/gems/bundler-1.0.15/bin/bundle:13:in `<top (required)>'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/bin/bundle:19:in `load'
from /Users/kimptoc/.rvm/gems/ruby-1.9.2-p290@p-service/bin/bundle:19:in `<main>'

The tmp/server.log under rubygems proxy has this in it:

I, [2011-07-31T15:13:38.078447 #31055]  INFO -- : GET /specs.4.8.gz
I, [2011-07-31T15:13:38.078782 #31055]  INFO -- : Read from interwebz: http://production.cf.rubygems.org/specs.4.8.gz
I, [2011-07-31T15:16:19.539247 #31055]  INFO -- : GET /specs.4.8.gz
I, [2011-07-31T15:16:19.539632 #31055]  INFO -- : Read from interwebz: http://production.cf.rubygems.org/specs.4.8.gz

Running on OSX 10.6, using Ruby 1.9.2, rubygem 1.6.2, latest rubygem proxy.

Might be related to using a 3G network, also tried via Starbuck wifi.

@outworlder
Copy link

Are you behind a proxy? I've got the same issue. I've "resolved" in my repository by modifying the code to accept proxy authentication. I'll fork and submit a patch.

@kimptoc
Copy link
Author

kimptoc commented Jan 17, 2012

Hi,

No I wasnt behind a proxy - it was a direct internet connection.

Thanks,
Chris

@outworlder
Copy link

Try downloading the file (something like curl http:///specs.4.8.gz and checking the output.

@kimptoc
Copy link
Author

kimptoc commented Jan 23, 2012

Hi - I can download specs.4.8.gz, although gunzipping it gives a binary file - is that to be expected?

I am now getting errors using bundler (1.0.15):

.../.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:563:in `inflate': incorrect header check (Zlib::DataError)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants