# Acts\_as\_ferret error: DRbServerNotFound

**URL:** <https://www.ruby-forum.com/t/acts-as-ferret-error-drbservernotfound/202479>\
**Category:** Ferret\
**Created:** [January 30, 2011, 11:37am UTC](https://www.ruby-forum.com/t/acts-as-ferret-error-drbservernotfound/202479 "2011-01-30T11:37:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 30, 2011, 11:37am UTC](https://www.ruby-forum.com/t/acts-as-ferret-error-drbservernotfound/202479/1 "2011-01-30T11:37:46Z")

</div>

Hi,

I am trying to get acts\_as\_ferret to work in my Rails 2 app. I am using  
the acts\_as\_ferret 0.4.8 and ferret 0.11.6 gems.

I am trying to search a Profile model in my application that has the  
following code:

acts\_as\_ferret(:fields =\> { :first\_name =\> {:store =\> :no,  
:index =\> :yes,  
:term\_vector =\>  
:with\_positions\_offsets,  
:boost =\> 10.0},  
:last\_name =\> {:store =\> :no,  
:index =\> :yes,  
:term\_vector =\>  
:with\_positions\_offsets,  
:boost =\> 1.0}  
},  
:ferret =\> {  
:analyzer =\>  
AppAnalyzer::CustomAnalyzer.new,  
:or\_default =\> true  
}  
)

The problems started in my production environment, so I am now using the  
DRb server in my development environment to find the problem. In both  
cases I am getting the following error in my acts\_as\_ferret.log file:

index\_for [Profile(id: integer, user\_id: integer, first\_name: string,  
last\_name: string, website: string, blog: string, created\_at: datetime,  
updated\_at: datetime, icon\_file\_name: string, icon\_content\_type: string,  
icon\_file\_size: integer, icon\_updated\_at: datetime, age: integer,  
birthDate: date, city: string, country: string)]  
options: {:offset=\>0, :limit=\>1024, :lazy=\>true, :page=\>nil}  
ar\_options: {}  
[profile] lazy\_find: first\_name:james~ last\_name:james~  
[profile] DRb connection error: DRb::DRbServerNotFound  
[profile]  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1658:in  
`current_server' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1726:in`to\_id’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1055:in  
`initialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:642:in`new’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:642:in  
`make_proxy' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:559:in`dump’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:603:in  
`send_request' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:602:in`each’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:602:in  
`send_request' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:908:in`send\_request’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1201:in  
`send_message' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1093:in`method\_missing’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1177:in  
`open' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1092:in`method\_missing’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1110:in  
`with_friend' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1091:in`method\_missing’  
/Library/Ruby/Gems/1.8/gems/acts\_as\_ferret-0.4.8/lib/remote\_index.rb:36:in  
`find_ids' /Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.8/lib/remote_functions.rb:26:in`handle\_drb\_error’  
/Library/Ruby/Gems/1.8/gems/acts\_as\_ferret-0.4.8/lib/remote\_functions.rb:15:in  
`old_handle_drb_error' /Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.8/lib/remote_functions.rb:26:in`handle\_drb\_error’  
/Library/Ruby/Gems/1.8/gems/acts\_as\_ferret-0.4.8/lib/remote\_functions.rb:33:in  
`handle_drb_restart' /Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.8/lib/remote_functions.rb:25:in`handle\_drb\_error’  
/Library/Ruby/Gems/1.8/gems/acts\_as\_ferret-0.4.8/lib/remote\_index.rb:36:in  
`find_ids' /Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.8/lib/ferret_find_methods.rb:28:in`lazy\_find’  
/Library/Ruby/Gems/1.8/gems/acts\_as\_ferret-0.4.8/lib/ferret\_find\_methods.rb:10:in  
`find_records' /Library/Ruby/Gems/1.8/gems/acts_as_ferret-0.4.8/lib/acts_as_ferret.rb:348:in`find’  
/Library/Ruby/Gems/1.8/gems/acts\_as\_ferret-0.4.8/lib/class\_methods.rb:152:in  
`find_with_ferret' /Users/jose/Development/AptanaRadRailsWorkspace/helpeat_tog/app/models/profile.rb:74:in`site\_search’  
/Users/jose/Development/AptanaRadRailsWorkspace/helpeat\_tog/vendor/plugins/tog\_core/app/models/tog/search.rb:46:in  
`search' /Users/jose/Development/AptanaRadRailsWorkspace/helpeat_tog/vendor/plugins/tog_core/app/models/tog/search.rb:41:in`each’  
/Users/jose/Development/AptanaRadRailsWorkspace/helpeat\_tog/vendor/plugins/tog\_core/app/models/tog/search.rb:41:in  
`search' /Users/jose/Development/AptanaRadRailsWorkspace/helpeat_tog/app/controllers/search_controller.rb:6:in`search’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:1331:in  
`send' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in`perform\_action\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/filters.rb:617:in  
`call_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:638:in`run\_before\_filters’  
/Users/jose/Development/AptanaRadRailsWorkspace/helpeat\_tog/vendor/plugins/tog\_core/lib/url\_writer\_retardase\_inhibitor.rb:20:in  
`retardase_inhibitor' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/callbacks.rb:178:in`send’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active\_support/callbacks.rb:178:in  
`evaluate_method' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:186:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/filters.rb:635:in  
`run_before_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:615:in`call\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/filters.rb:610:in  
`perform_action_without_benchmark' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in`perform\_action\_without\_rescue’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active\_support/core\_ext/benchmark.rb:17:in  
`ms' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:308:in`realtime’  
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active\_support/core\_ext/benchmark.rb:17:in  
`ms' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in`perform\_action\_without\_rescue’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/rescue.rb:160:in  
`perform_action_without_flash' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/flash.rb:146:in`perform\_action’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:532:in  
`send' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in`process\_without\_filters’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/filters.rb:606:in  
`process' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:391:in`process’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/base.rb:386:in  
`call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:437:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:87:in  
`dispatch' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in`\_call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:130:in  
`build_middleware_stack' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/string\_coercion.rb:25:in  
`call' /Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in  
`call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/session/abstract\_store.rb:122:in  
`call' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in`call’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active\_record/connection\_adapters/abstract/query\_cache.rb:34:in  
`cache' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in`cache’  
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active\_record/query\_cache.rb:28:in  
`call' /Library/Ruby/Gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/failsafe.rb:26:in  
`call' /Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in  
`synchronize' /Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in`call’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:114:in  
`call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in`run’  
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action\_controller/dispatcher.rb:108:in  
`call' /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:46:in `call' /Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in`each’  
/Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/urlmap.rb:40:in `call' /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/content\_length.rb:13:in  
`call' /Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/chunked.rb:15:in`call’  
/Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:64:in  
`process' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in`process\_client’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in  
`each' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in`process\_client’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in  
`run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in`initialize’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in  
`new' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in`run’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in  
`initialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in`new’  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in  
`run' /Library/Ruby/Gems/1.8/gems/rack-1.0.1/lib/rack/handler/mongrel.rb:34:in`run’  
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111  
/Library/Ruby/Site/1.8/rubygems/custom\_require.rb:29:in  
`gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in`require’  
./script/server:3  
-e:2:in `load’  
-e:2  
Query: first\_name:james~ last\_name:james~  
total hits: 0, results delivered: 0

In ferret\_server.yml I have the following configuration:

production:  
host: 127.0.0.1  
port: 9010  
pid\_file: log/ferret.pid  
log\_file: log/ferret\_server.log  
log\_level: info

development:  
host: 127.0.0.1  
port: 9090  
pid\_file: log/ferret.pid  
log\_file: log/ferret\_server.log  
log\_level: debug

And I start the DRb server with the command:

script/ferret\_server -R . -d development start (in dev. environment)

Any ideas what the problem may be?

During my debugging I have been able to connect to the DRb server  
through an IRB session and it seems to be working OK (I managed to get  
results for a hand-made query).

Thanks!
