Forum: Ferret Strange Connection refused error acts_as_ferret server

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
3fb5c540c91cfd02dc2c1dbbb7e6ff5c?d=identicon&s=25 Matthew Langham (silentpenguin)
on 2007-07-22 20:42
I am having a strange problem starting the acts_as_ferret Drb server on
a particular Linux machine (Debian Etch). The same setup works fine on
my Mac (OSX).

Without the Rails application running (yes, I've checked several times)
I get the following error if I try to start the ferret server and one of
my models contains :remote => true for acts_as_ferret:

/usr/lib/ruby/1.8/drb/drb.rb:736:in `open': druby://localhost:3009 -
#<Errno::ECONNREFUSED: Connection refused - connect(2)>
        from /usr/lib/ruby/1.8/drb/drb.rb:729:in `each'
        from /usr/lib/ruby/1.8/drb/drb.rb:729:in `open'
        from /usr/lib/ruby/1.8/drb/drb.rb:1189:in `initialize'
        from /usr/lib/ruby/1.8/drb/drb.rb:1169:in `new'
        from /usr/lib/ruby/1.8/drb/drb.rb:1169:in `open'
        from /usr/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'
        from /usr/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'
        from /usr/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'
         ... 6 levels...
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from script/runner:3

If I remove the :remote => true bit then I can start the Ferret server
with no problems. I just don't understand why the model entry is causing
this - especially as the application isn't running.

ferret 0.11.3

I'm betting this is in the "Duh" section - but I just don't see it.


36feb4959db6ab8259a44962f0fa761f?d=identicon&s=25 Jens Kraemer (Guest)
on 2007-07-23 08:35
(Received via mailing list)
On Sun, Jul 22, 2007 at 08:42:46PM +0200, Matthew Langham wrote:
> /usr/lib/ruby/1.8/drb/drb.rb:736:in `open': druby://localhost:3009 -
> #<Errno::ECONNREFUSED: Connection refused - connect(2)>
> (DRb::DRbConnError)

This looks like the DRb server itself tries to connect to the DRb
server - normally aaf should detect when it is running *in* the DRb
server, but sometimes this doesn't seem to work. Do you use the latest
aaf (0.4.1)? There have been some fixes in this area since 0.4.0.

Please have a look in your development log, watch out for a line
starting with 'Asked for a remote server'.


Jens Krämer - Blog     - The new free film database
This topic is locked and can not be replied to.