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”