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.
_blackdog (Guest)
on 2006-02-14 16: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.
Zed S. (Guest)
on 2006-02-14 16: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.
_blackdog (Guest)
on 2006-02-14 16:13
(Received via mailing list)
thanks Zed,

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

BD
unknown (Guest)
on 2006-02-14 18:19
(Received via mailing list)
Quoting Zed S. <removed_email_address@domain.invalid>:

> 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
James G. (Guest)
on 2006-02-14 18:31
(Received via mailing list)
On Feb 14, 2006, at 10:19 AM, removed_email_address@domain.invalid 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 G. II
unknown (Guest)
on 2006-02-14 19:50
(Received via mailing list)
Quoting James Edward G. II <removed_email_address@domain.invalid>:

> On Feb 14, 2006, at 10:19 AM, removed_email_address@domain.invalid 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
unknown (Guest)
on 2006-02-14 19:56
(Received via mailing list)
Quoting removed_email_address@domain.invalid:

> Quoting James Edward G. II <removed_email_address@domain.invalid>:
>
> (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.