Can't update to 1.5 on Debian Lenny

Jeremy Lecour's Avatar

Jeremy Lecour

01 Feb, 2011 11:15 AM

I have a bug that I can reproduce. On a Debian Lenny (up-to-date), I have this error if I update rubygems to 1.5

Undefined method `load_yaml' for Gem:Module

I've attached a screenshot (passenger error) with the full backtrace, …

I've updated it with 'rubygems_update'.
If I revert back to 1.3.7 or 1.4.1, it works. If I update again to 1.5, it fails.

Let me know If there is some more information that I can give to be more specific and useful.

  1. Support Staff 1 Posted by Eric Hodel on 01 Feb, 2011 07:15 PM

    Eric Hodel's Avatar

    What does gem env say?

    What does ruby -rubygems -e 'p Gem::VERSION; begin Gem.load_yaml; rescue; end' say?

  2. 2 Posted by Andrew Willis on 01 Feb, 2011 07:34 PM

    Andrew Willis's Avatar

    I got this same error, but restarting apache resolved it. I assume the same would apply for nginx.

  3. Support Staff 3 Posted by Eric Hodel on 01 Feb, 2011 09:25 PM

    Eric Hodel's Avatar

    oops, that second one should be ruby -rubygems -e 'p Gem::VERSION; Gem.load_yaml'

  4. 4 Posted by Jeremy Lecour on 01 Feb, 2011 10:05 PM

    Jeremy Lecour's Avatar

    I've attached what you've asked for, with 1.4.1 and with 1.5.0

  5. Support Staff 5 Posted by Eric Hodel on 01 Feb, 2011 10:24 PM

    Eric Hodel's Avatar

    Looks like you need to restart your running applications to move them to rubygems 1.5

  6. 6 Posted by Jeremy Lecour on 01 Feb, 2011 10:32 PM

    Jeremy Lecour's Avatar

    I'm pretty sure I did this, and the Passenger error seems to imply that they can't start. Am I wrong ? Anyway, I'll give it another try.

  7. 7 Posted by Jeremy Lecour on 01 Feb, 2011 10:35 PM

    Jeremy Lecour's Avatar

    Well, I guess I was wrong. I've upgraded rubygems, then I restarted Apache (and not touched tmp/restart.txt in my apps) and everything seems to be OK.

    Thanks for the help.

  8. Support Staff 8 Posted by Eric Hodel on 01 Feb, 2011 10:37 PM

    Eric Hodel's Avatar


  9. Eric Hodel closed this discussion on 01 Feb, 2011 10:37 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

20 Apr, 2018 02:50 PM
19 Apr, 2018 05:43 PM
11 Apr, 2018 10:06 AM
10 Apr, 2018 02:55 PM
09 Apr, 2018 06:42 PM