tag:help.rubygems.org,2010-01-19:/discussions/problems/528-rails-305-breakingRubyGems.org: Discussion 2011-04-07T20:59:38Ztag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T02:38:45Z2011-03-19T02:38:45ZRails 3.0.5 breaking<div><p>Please ensure you're using latest version of RubyGems, then try
the same<br>
command adding --debug --verbose options and include the full
output of that<br>
and gem env command.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T06:06:05Z2011-03-19T06:06:07ZRails 3.0.5 breaking<div><p>Rubygems version:<br>
<code>1.6.2</code> Output from the command</p>
<p>Exception <code>NameError' at
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:163
- uninitialized constant Gem::Commands::InstallCommand
Exception</code>LoadError' at
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36
- no such file to load -- psych<br>
Exception <code>LoadError' at
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:61
- no such file to load -- psych Exception</code>Gem::LoadError' at
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems.rb:900
- Could not find RubyGem sources (> 0.0.1)</p>
<p>GET <a href=
"http://rubygems.org/latest_specs.4.8.gz">http://rubygems.org/latest_specs.4.8.gz</a><br>
302 Found<br>
GET <a href=
"http://production.s3.rubygems.org/latest_specs.4.8.gz">http://production.s3.rubygems.org/latest_specs.4.8.gz</a><br>
304 Not Modified<br>
GET <a href=
"http://rubygems.org/specs.4.8.gz">http://rubygems.org/specs.4.8.gz</a><br>
302 Found<br>
GET <a href=
"http://production.s3.rubygems.org/specs.4.8.gz">http://production.s3.rubygems.org/specs.4.8.gz</a><br>
304 Not Modified<br>
Installing gem actionpack-3.0.5<br>
Exception <code>Zlib::DataError' at
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:219
- invalid stored block lengths Exception</code>Zlib::DataError' at
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:222
- invalid stored block lengths<br>
Exception `IOError' at
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:24
- closed stream<br>
ERROR: While executing gem ... (Zlib::DataError)<br></p>
<pre>
<code>invalid stored block lengths
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:222:in `finish'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:222:in `zipped_stream'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:129:in `each'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:64:in `each'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:55:in `loop'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:55:in `each'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:127:in `each'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/format.rb:66:in `from_io'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:22:in `open'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/package.rb:68:in `open'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/format.rb:62:in `from_io'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/format.rb:46:in `from_file_by_path'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/format.rb:45:in `open'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/format.rb:45:in `from_file_by_path'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/installer.rb:413:in `load_gem_file'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/installer.rb:103:in `initialize'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:286:in `new'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:286:in `install'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:270:in `each'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:270:in `install'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:120:in `execute'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:115:in `each'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:115:in `execute'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/command.rb:278:in `invoke'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:133:in `process_args'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:103:in `run'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:63:in `run'
/home/sapient/.rvm/rubies/ruby-1.8.7-p334/bin/gem:25</code>
</pre></div>Marctag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T12:07:24Z2011-03-19T12:07:24ZRails 3.0.5 breaking<div><p>This could be due a corrupt downloaded file.</p>
<p>Please try removing the cache directory (which you can see in
"gem<br>
env" as I mentioned before under GEM PATHS)</p>
<p>rm -rf path/to/cache</p>
<p>The cache is inside the GEM PATH showed by "gem env"</p>
<p>And try gem installation again.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T12:19:19Z2011-03-19T12:19:19ZRails 3.0.5 breaking<div><p>Thanks for the reply Luis</p>
<p>I don't think it is a corrupt download as I am using rvm and the
first thing I tried was switching ruby interpreters and gemsets,
getting the same result for all.</p>
<p>I did rm the directory anyway, with the same result.</p>
<p>Thanks!</p></div>Marctag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T12:38:51Z2011-03-19T12:38:51ZRails 3.0.5 breaking<div><p>RVM symlinks cache directory along ruby interpreters</p>
<p>Are you sure you removed the cache directory properly? What
version of<br>
zlib is installed in your system?</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T13:27:34Z2011-03-19T13:27:35ZRails 3.0.5 breaking<div><p>I have the latest zlib 1.2.3.4 (Ubuntu version I suppose).</p>
<p>I went so far as to completely remove rvm from my system and
reinstall. I then installed ruby the normal way, and once linking
against a downloaded zlib 1.2.5 (as per <a href=
"http://rvm.beginrescueend.com/packages/zlib/">http://rvm.beginrescueend.com/packages/zlib/</a>
). None of this works.</p>
<p>I was convinced this was a zlib error for hours, but everything
else is working perfectly, including installing rails 3.0.4 . The
only gem which refuses to install seems to be actionpack 3.0.5</p>
<p>Thanks</p></div>Marctag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T14:19:47Z2011-03-19T14:19:48ZRails 3.0.5 breaking<div><p>I have now tried manually downloading actionpack-3.0.5.gem from
rubygems.org, and extracting it with fileroller.</p>
<p>When opened, metadata.tar.gz opens fine, but trying to open
data.tar.gz gives an unrecoverable error.<br>
<code>gzip: stdin: invalid compressed data--format
violated</code></p></div>Marctag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T14:28:26Z2011-03-19T14:28:26ZRails 3.0.5 breaking<div><p>I was able to manually download actionpack-3.0.5.gem, extract it
and<br>
no failures.</p>
<p>The file I downloaded weight 344 KB (352.256 bytes), perhaps
your<br>
download is corrupt?</p>
<p>The MD5 of my file is af25980a393ab111f9fcef3d65f73c89</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T15:16:08Z2011-03-19T15:16:10ZRails 3.0.5 breaking<div><p>Well, I have no idea how, but actionpack downloads incorrectly
on my local computer - and I get the wrong md5 on my local machine.
However when I tried from my linode, the file downloaded fine, and
the md5 is the same as yours.</p>
<p>I suppose there could be some weird caching done by my ISP or
something, but this is infuriating.</p>
<p>Thanks so much for your patience and time Luis, you are
awesome!</p></div>Marctag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T15:39:47Z2011-03-19T15:39:47ZRails 3.0.5 breaking<div><p>Can you try the following?</p>
<p>Try wget from
<code>http://production.s3.rubygems.org/gems/actionpack-3.0.5.gem</code></p>
<p>That will skip Amazon CloudFront CDN which is being used in
production and download directly from S3.</p>
<p>If that works, it could be incorrect fetch from CloudFront to
your closest point of delivery.</p>
<p>Hope that helps.</p></div>Luis Lavenatag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T16:55:59Z2011-03-19T16:55:59ZRails 3.0.5 breaking<div><p>Going straight to the s3 server fetched the correct gem.</p>
<p>I then changed to a different ruby, blatted all cached gems, and
tried again, and, as if by magic, it worked fine... I reckon there
was a broken gem cached somewhere, I just have no idea where.</p>
<p>Thanks again for being awesome Luis</p></div>Marctag:help.rubygems.org,2010-01-19:Comment/60603872011-03-19T17:03:04Z2011-03-19T17:03:04ZRails 3.0.5 breaking<div><p>You're welcome, closing this out.</p></div>Luis Lavena