Forum: Ruby mongrel rails issue

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3129cec18482f7185f05ad79aef1734a?d=identicon&s=25 _blackdog (Guest)
on 2006-02-14 15:13
(Received via mailing list)
hi there,

i just installed mongrel 0.32 with my rails app and got this,

-bash-3.00$ mongrel_rails start -p 8081
Running Mongrel server in development mode at 0.0.0.0:8081
Server ready.
ERROR(NoMethodError): undefined method `readpartial' for
#<TCPSocket:0x8e44cc4>
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/lib/mongrel.rb:351:in
`process_client'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/lib/mongrel.rb:331:in
`initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/lib/mongrel.rb:330:in
`timeout'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/lib/mongrel.rb:330:in
`initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/lib/mongrel.rb:327:in
`initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/lib/mongrel.rb:327:in
`new'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/lib/mongrel.rb:327:in
`initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/lib/mongrel.rb:327:in
`times'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/lib/mongrel.rb:327:in
`initialize'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/bin/mongrel_rails:166:in
`new'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/bin/mongrel_rails:166:in
`start_mongrel'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/bin/mongrel_rails:181:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/lib/mongrel/command.rb:183:in
`run'
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.2/bin/mongrel_rails:224
/usr/local/bin/mongrel_rails:18:in `load'
/usr/local/bin/mongrel_rails:18

i do use rails partials if that has anything to do with the readpartial
(above) method, but i expect it isn't. also, script/server webrick -p
8100 works fine.

thanks for any help

BD.
8c43ed7f065406bf171c0f3eb32cf615?d=identicon&s=25 Zed Shaw (Guest)
on 2006-02-14 15:13
(Received via mailing list)
Hey, you need Ruby 1.8.4.  I'll see if I can include that in the gem
dependency information.  The readpartial method is a new method on the
Socket class, nothing to do with rails.
3129cec18482f7185f05ad79aef1734a?d=identicon&s=25 _blackdog (Guest)
on 2006-02-14 15:13
(Received via mailing list)
thanks Zed,

 good work on mongrel it's just what I've been looking for.

BD
912c61d9da47754de7039f4271334a9f?d=identicon&s=25 unknown (Guest)
on 2006-02-14 17:19
(Received via mailing list)
Quoting Zed Shaw <zedshaw@zedshaw.com>:

> Hey, you need Ruby 1.8.4.  I'll see if I can include that in the
> gem dependency information.  The readpartial method is a new
> method on the Socket class, nothing to do with rails.

Argh, I'm stuck on 1.8.2 at the moment because of Syck bugs in
1.8.4.  Is there any way to make it work for 1.8.2?

-mental
4299e35bacef054df40583da2d51edea?d=identicon&s=25 James Gray (bbazzarrakk)
on 2006-02-14 17:31
(Received via mailing list)
On Feb 14, 2006, at 10:19 AM, mental@rydia.net wrote:

> I'm stuck on 1.8.2 at the moment because of Syck bugs in 1.8.4.

I had nothing but trouble with 1.8.3, but 1.8.4 has been working
great for me.  Which bugs are holding you back, if I may ask?

James Edward Gray II
912c61d9da47754de7039f4271334a9f?d=identicon&s=25 unknown (Guest)
on 2006-02-14 18:50
(Received via mailing list)
Quoting James Edward Gray II <james@grayproductions.net>:

> On Feb 14, 2006, at 10:19 AM, mental@rydia.net wrote:
>
> > I'm stuck on 1.8.2 at the moment because of Syck bugs in 1.8.4.
>
> I had nothing but trouble with 1.8.3, but 1.8.4 has been working
> great for me.  Which bugs are holding you back, if I may ask?

It was stripping newlines from folded scalars under some
circumstances.  I didn't stay on 1.8.4 long enough to distill it
down to a testcase though.

(I think _why knows about the issue at least; he was the one that
recommended that I downgrade to 1.8.2 for now)

-mental
912c61d9da47754de7039f4271334a9f?d=identicon&s=25 unknown (Guest)
on 2006-02-14 18:56
(Received via mailing list)
Quoting mental@rydia.net:

> Quoting James Edward Gray II <james@grayproductions.net>:
>
> (I think _why knows about the issue at least; he was the one that
> recommended that I downgrade to 1.8.2 for now)

For Hobix at least.  Lest I scare everyone off 1.8.4, I think this
is a weird corner case that shouldn't affect _most_ users.

-mental
This topic is locked and can not be replied to.