[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

mongrel rails issue

_blackdog

2/14/2006 12:52:00 PM

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.

5 Answers

Zed A. Shaw

2/14/2006 1:08:00 PM

0

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.


On 2/14/06 7:53 AM, "_blackdog" <rmt512@gmail.com> wrote:

> 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>




_blackdog

2/14/2006 1:31:00 PM

0

thanks Zed,

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

BD

James Gray

2/14/2006 4:29:00 PM

0

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


MenTaLguY

2/14/2006 5:49:00 PM

0

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


MenTaLguY

2/14/2006 5:56:00 PM

0

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