Undefined method rewind and rails 2.3.3

Today I updated a project I’m working on from rails 2.2.something to 2.3.3. Then, I started getting the following wacky error.


undefined method `rewind' for #<TCPSocket:0x3631e58>

Turns out if you see this after a rails 2.3.3 update, you might just need a phusion passenger update (I was on passenger 2.1.3, apparently this error happens on passenger 2.1.2 too)


sudo gem update passenger
sudo passenger-install-apache2-module

Put the lines recommended by the install script in your apache config file, restart apache and you’re good to go.

Hope this helps someone.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Furl
  • NewsVine
  • Reddit
  • StumbleUpon
  • Technorati
  • Pownce
  • Sphinn
  • Spurl
  • TailRank
  • LinkedIn
  • MySpace
  • Hi thanks for your post, but I have a doubt before update passenger.
    I've got 5 apps running and deployed via passenger, only one is rails 2.3.5
    the other 4 are 2.1.0 and 2.2.2.
    Do you know if the older apps will continue working?
  • Hi Andre, I can't guarantee this, but I see no reason why it shouldn't work. I'd recommending checking the modrails website http://www.modrails.com/ for release notes with compatibility if you are concerned. Make sure you try it on a dev box before production :-)
  • Saved my ass! I was pulling my hair out on this one. Weird thing for me was that I was getting an error only trying to login and even then the error messages didn't show until I tried going back to another page.

    Thanks!
  • Thanks - this was exactly what I needed. What a wonky error.
  • jackinmaryland
    Thanks a lot. I'm glad I found your post right away. It saved me a great deal of time!!
  • Jeremy
    Thanks. Wish I would have found this a little sooner though. I'm half bald now ;)
  • Keith
    Thank you! Thank you!
  • chris l
    count me in too. thanks!!! wasted 4 hrs studying logs and crap.

    who would know?
  • Thanks for sharing this info. It helped me a lot.
  • this is really helps me,
    thanks!!
  • Kris
    It helped me. Thanks!
  • denniscas
    Thanks Very much It's work perfect
  • Thank you, you saved me a lot of time and a blog item ;-)
  • Hey, thanks for this - Google turned it up when I was being defeated by Passenger. Fixed it up perfectly.
  • chris
    This worked for me, muchas gracias.
  • Hesham
    Thanks Hamish!
  • steve
    worked for me. thanks.
blog comments powered by Disqus