Closed Florent2 closed 14 years ago
Finally I could "fix" the problem by deleting my Heroku and recreate app. With the new created app, I did not face the problem.
Great, thanks for reporting back your solution. Sounds like you just had bad luck the first time, and wound up with a corrupted gem.
I bumped in to the same problem using rails 2.3.5 and the Bamboo REE 1.8.7 stack. I even destroyed and recreated the app as suggested above and still got the error. I would call this an ongoing problem to look out for; at least for a little bit.
Hmm. Apparently it was because I was using the factory girl gem from github. Moved to using the gemcutter version (like I'm supposed to be doing) and everything works fine.
It would be nice to have a message that actually pointed us in the right direction from bundler. Thanks!
I would be fascinated to know how we can tell that an error from Zlib means you should change your Factory_girl source :\
Fascinated ehh? Well all you have to do is dig around to find out that the zlib error comes from not being able to connect to the resource. It's a failed connection. It doesn't matter if it's factory girl or some other gem; if it doesn't connect it's not failing gracefully. That's an issue.
But enough bickering. I'll just fork this and fix it myself. I just thought you may be more interested in this than you are I guess.
Sorry that came across as sarcastic. I really do want to fix this, I just didn't understand the actual problem based on your description. This ticket was originally about (afaict) a genuinely corrupted gem, so changing sources didn't make sense to me as a solution.
Since you're seeing a different Zlib error, I'd love a direct repro writeup or a patch. Thanks for the report, we really do appreciate them, honest.
Hi indirect. Thank you for the note. I did fork this and am writing tests to reproduce and fix this issue. I will let you know as soon as I fix it :)
When deploying my Rails3beta4 application (using Bundler 0.9.26) to heroku, I got the following error. I do not have this error when doing a local "bundle install" which works fine. Heroku support told me to fill a bug here. Here is the error and the Gemfile:
\ the error **
$ git push heroku Counting objects: 206, done. [...] -----> Heroku receiving push -----> Rails app detected -----> Detected Rails is not set to serve static_assets Installing rails3_serve_static_assets... done -----> Gemfile detected, running Bundler Unresolved dependencies detected; Installing... Fetching source index from http://rubygems.org/ Using rake (0.8.7) from system gems [...] Installing twitter (0.9.0) from rubygems repository at http://rubygems.org/ Your bundle is complete! Use
bundle show [gemname]
to see where a bundled gem is installed. Locking environment /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:49:ininitialize': not in gzip format (Zlib::GzipFile::Error) from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:49:in
new' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:49:ininitialize' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:63:in
each' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:54:inloop' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:54:in
each' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:32:ininitialize' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:17:in
new' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:17:inopen' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/package.rb:55:in
open' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/format.rb:63:infrom_io' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/format.rb:51:in
from_file_by_path' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/format.rb:50:inopen' from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/format.rb:50:in
from_file_by_path' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/source.rb:149:inspecs' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/source.rb:148:in
each' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/source.rb:148:inspecs' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/index.rb:43:in
from_cached_specs' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/index.rb:39:insystem_cached_gems' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/index.rb:27:in
cached_gems' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/index.rb:5:inbuild' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/index.rb:25:in
cached_gems' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/environment.rb:15:inindex' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/index.rb:5:in
build' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/environment.rb:13:inindex' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/environment.rb:59:in
resolve_locally' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/environment.rb:28:inspecs' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/runtime.rb:129:in
details' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/runtime.rb:118:inwrite_yml_lock' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/runtime.rb:65:in
lock' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/cli.rb:115:inlock' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/task.rb:33:in
send' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/task.rb:33:inrun' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/invocation.rb:109:in
invoke' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/invocation.rb:116:incall' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/invocation.rb:116:in
invoke' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor.rb:137:instart' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor/base.rb:378:in
start' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/lib/bundler/vendor/thor.rb:124:instart' from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-0.9.26/bin/bundle:13 from /usr/ruby1.8.7/bin/bundle:19:in
load' from /usr/ruby1.8.7/bin/bundle:19 FAILED: Could not lock dependencies. Have you updated to use a 0.9 Gemfile? http://docs.heroku.com/gems#gem-bundlererror: hooks/pre-receive exited with error code 1 To git@heroku.com:myapp.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git@heroku.com:myapp.git'
\ the gemfile **
source 'http://rubygems.org'
gem 'rails', '3.0.0.beta4'
gem 'mongoid', '2.0.0.beta7' gem 'haml' gem 'compass' gem 'twitter' gem 'paperclip' gem 'bson_ext' gem 'chargify' gem 'rails3-generators' gem 'devise', '1.1.rc2' gem 'fbgraph'
gem 'machinist', :group => [:development, :test] gem 'machinist_mongo', :require => 'machinist/mongoid', :group => [:development, :test] gem 'faker', :group => [:development, :test]
group :test do gem 'rspec-rails', '>= 2.0.0.beta.10' gem 'mongoid-rspec' end
group :cucumber do gem "rspec" gem "rspec-rails" gem "cucumber" gem "cucumber-rails" gem "launchy" gem "capybara" gem "database_cleaner"
gem 'email_spec', :require => "email_spec", :git => "git://github.com/bmabey/email-spec.git", :branch => "rails3"
end