# Strange Connection refused error acts\_as\_ferret server

**URL:** <https://www.ruby-forum.com/t/strange-connection-refused-error-acts-as-ferret-server/110081>\
**Category:** Ferret\
**Created:** [July 22, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/strange-connection-refused-error-acts-as-ferret-server/110081 "2007-07-22T20:42:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [July 22, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/strange-connection-refused-error-acts-as-ferret-server/110081/1 "2007-07-22T20:42:46Z")

</div>

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:

> >

script/ferret\_start  
/usr/lib/ruby/1.8/drb/drb.rb:736:in `open': druby://localhost:3009 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> (DRb::DRbConnError) 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... from /usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/runner.rb:39 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in`gem\_original\_require’  
from  
/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.

Thanks

Matthew

---

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [July 23, 2007, 8:35am UTC](https://www.ruby-forum.com/t/strange-connection-refused-error-acts-as-ferret-server/110081/2 "2007-07-23T08:35:05Z")

</div>

On Sun, Jul 22, 2007 at 08:42:46PM +0200, Matthew L.ham 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’.

Cheers,  
Jens

–  
Jens Krämer  
[http://www.jkraemer.net/](http://www.jkraemer.net/) - Blog  
[http://www.omdb.org/](http://www.omdb.org/) - The new free film database
