# Please help with Drb server

**URL:** <https://www.ruby-forum.com/t/please-help-with-drb-server/91126>\
**Category:** Ferret\
**Created:** [April 4, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/please-help-with-drb-server/91126 "2007-04-04T22:43:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaredjackson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@jaredjackson](https://www.ruby-forum.com/u/jaredjackson)\
**Post date:** [April 4, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/please-help-with-drb-server/91126/1 "2007-04-04T22:43:48Z")

</div>

The Problem:

The application is using the AAF plugin. When I attempt to rebuild the  
index on the production server  
from the console, I get the following error:

* * *

DRb::DRbConnError: druby://ferret.mydomain.com:9010 -  
#\<Errno::ETIMEDOUT: Connection timed out - connect(2)\>  
from /usr/lib/ruby/1.8/drb/drb.rb:736:in `open' 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' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/remote_index.rb:16:in `send’  
from  
./script/…/config/…/config/…/vendor/plugins/acts\_as\_ferret/lib/remote\_index.rb:16:in  
`method_missing' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/class_methods.rb:15:in `rebuild\_index’  
from (irb):1

* * *

I have:

Ferret 0.11.3  
AAF plugin  
Rails 1.2.3  
Ruby 1.8.6  
Mongrel 1.0.1

On apache 2.2.3

My ferret+server.yml:

production:  
host: [ferret.mydomain.com](http://ferret.mydomain.com)  
port: 9010  
pid\_file: log/ferret.pid

My model:

acts\_as\_ferret( { :fields =\> [:title, :body], :remote =\> true } ,  
:index\_dir =\> “#{FERRET\_INDEX\_DIR}” )

Where FERRET\_INDEX\_DIR is defined in production.rb as  
“#{RAILS\_ROOT}/…/shared/ferret”

---

<div class="post-metadata">

**Author:** ![jaredjackson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@jaredjackson](https://www.ruby-forum.com/u/jaredjackson)\
**Post date:** [April 4, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/please-help-with-drb-server/91126/2 "2007-04-04T22:53:11Z")

</div>

I think I found the problem.

When I turn off iptables, everything works.

---

<div class="post-metadata">

**Author:** ![jaredjackson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e9bcb4/32.png) [@jaredjackson](https://www.ruby-forum.com/u/jaredjackson)\
**Post date:** [April 5, 2007, 10:32am UTC](https://www.ruby-forum.com/t/please-help-with-drb-server/91126/3 "2007-04-05T10:32:20Z")

</div>

On Wed, Apr 04, 2007 at 10:53:11PM +0200, Jared Jackson wrote:

> I think I found the problem.
> 
> When I turn off iptables, everything works.

A hole for the drb port (TCP) you configured should  
be sufficient, no need to give up security for aaf 🙂

Jens

–  
Jens Krämer  
webit! Gesellschaft für neue Medien mbH  
Schnorrstraße 76 | 01069 Dresden  
Telefon +49 351 46766-0 | Telefax +49 351 46766-66  
removed\_email\_address@domain.invalid | [www.webit.de](http://www.webit.de)

Amtsgericht Dresden | HRB 15422  
GF Sven Haubold, Hagen Malessa
