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
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"
--
Posted via http://www.ruby-forum.com/.
I think I found the problem. When I turn off iptables, everything works. -- Posted via http://www.ruby-forum.com/.
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 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa