Tuesday, May 3, 2011

initialize: not in gzip format (Zlib::GzipFile::Error

Error message:
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:49:in `initialize': not in gzip format (Zlib::GzipFile::Error
 
Problem:
Github may go down/timeout during deploy

Fix:
1. ssh into the server
2. cd to your current deploy folder
3. run bundle show 'name of gem' (shows the location of the gem install)
4. cd to the /gems/ path that is shown in the previous step
5.  run ls -l to see the latest install of the gem
6. run rm -rf on that directory (the latest gem install)