Forum: Ferret Problem with acts_as_ferret and REE-20090421

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.
06e59e0f0cd3a6fa84949363cf237aa3?d=identicon&s=25 Yaroslav Dmitriev (yar)
on 2009-05-08 15:53
Hi

Apparently script/ferret_server (with ruby enterprise edition) silently
crashes upon the first attempt to connect to it. Nothing is written to
the log files, no messages, nothing. Must be something with DRb. I wish
there was a way to prevent its daemonization in debug mode.

Found a workaround by running script/ferret_server with standard ruby
1.8.6 (2007-09-24 patchlevel 111) [i686-linux], while the web
application remains on ruby 1.8.6 (2008-08-11 patchlevel 287)
[i686-linux] Ruby Enterprise Edition 20090421.

I am using acts_as_ferret (0.4.3) and ferret (0.11.6). Rails 2.3.2.
CentOS 5.3 32bit.
Will post a ticket to acts_as_ferret tracker when my account is approved
there by the moderator.

Regards
--
Yar
4375b4aca04b8d72482fd409fb6d0b47?d=identicon&s=25 Roderick van Domburg (roderickvd)
on 2009-05-09 15:14
Yaroslav Dmitriev wrote:
> Apparently script/ferret_server (with ruby enterprise edition) silently
> crashes upon the first attempt to connect to it. Nothing is written to
> the log files, no messages, nothing. Must be something with DRb. I wish
> there was a way to prevent its daemonization in debug mode.
>
> Found a workaround by running script/ferret_server with standard ruby
> 1.8.6 (2007-09-24 patchlevel 111) [i686-linux], while the web
> application remains on ruby 1.8.6 (2008-08-11 patchlevel 287)
> [i686-linux] Ruby Enterprise Edition 20090421.
>
> I am using acts_as_ferret (0.4.3) and ferret (0.11.6). Rails 2.3.2.
> CentOS 5.3 32bit.

That's strange. We're not experiencing that issue with:

 - acts_as_ferret 0.4.3
 - Ferret 0.11.6
 - Rails 2.0.5 / 2.1.2
 - CentOS 5.2 x86_64

Notice the tiny differences in Rails and CentOS makes.
Have you tried recompiling the Ferret gem?

--
Roderick van Domburg
http://www.nedforce.com
06e59e0f0cd3a6fa84949363cf237aa3?d=identicon&s=25 Yaroslav Dmitriev (yar)
on 2009-05-09 23:02
Roderick van Domburg wrote:
> Notice the tiny differences in Rails and CentOS makes.
> Have you tried recompiling the Ferret gem?

Unfortunately I cannot check a 64 bit library on a 32 bit OS. Sure, I
recompiled both gems several times. However, it is probably not ferret
itself, but DRb inside acts_as_ferret, because it works well in
development mode without standalone search server.

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