Dreamhost + Ferret

45 views
Skip to first unread message

Bala

unread,
Feb 6, 2008, 2:34:54 PM2/6/08
to Ruby on Rails: Talk
Hi Experts,

Ferret server not running couldnt figure it out. because i'm using
subdomain.

Error:
DRb::DRbConnError (druby://localhost:9010 - #<Errno::ECONNREFUSED:
Connection refused - connect(2)>):
/usr/lib/ruby/1.8/drb/drb.rb:736:in `open'
/usr/lib/ruby/1.8/drb/drb.rb:729:in `each'
/usr/lib/ruby/1.8/drb/drb.rb:729:in `open'
/usr/lib/ruby/1.8/drb/drb.rb:1189:in `initialize'
/usr/lib/ruby/1.8/drb/drb.rb:1169:in `new'
/usr/lib/ruby/1.8/drb/drb.rb:1169:in `open'
/usr/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'
/usr/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'
/usr/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'
/vendor/plugins/acts_as_ferret-0.4.3/lib/remote_index.rb:16:in
`send'
/vendor/plugins/acts_as_ferret-0.4.3/lib/remote_index.rb:16:in
`method_missing'
/vendor/plugins/acts_as_ferret-0.4.3/lib/act_methods.rb:189:in
`acts_as_ferret'
/app/models/category.rb:3
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:496:in `require'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:342:in `new_constants_in'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:496:in `require'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:104:in `require_or_load'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:248:in `load_missing_constant'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:453:in `const_missing'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:465:in `const_missing'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:260:in `load_missing_constant'
/vendor/rails/activerecord/lib/../../activesupport/lib/
active_support/dependencies.rb:469:in `const_missing'
/app/controllers/testing_controller.rb:29:in
`auto_complete_responder_for_category'
/app/controllers/testing_controller.rb:15:in
`auto_complete_for_category_name'
/vendor/rails/actionpack/lib/action_controller/base.rb:1158:in
`send'
/vendor/rails/actionpack/lib/action_controller/base.rb:1158:in
`perform_action_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:697:in
`call_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:689:in
`perform_action_without_benchmark'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
68:in `perform_action_without_rescue'
/vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in
`perform_action_without_caching'
/vendor/rails/actionpack/lib/action_controller/caching.rb:678:in
`perform_action'
/vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/query_cache.rb:33:in `cache'
/vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
`cache'
/vendor/rails/actionpack/lib/action_controller/caching.rb:677:in
`perform_action'
/vendor/rails/actionpack/lib/action_controller/base.rb:524:in
`send'
/vendor/rails/actionpack/lib/action_controller/base.rb:524:in
`process_without_filters'
/vendor/rails/actionpack/lib/action_controller/filters.rb:685:in
`process_without_session_management_support'
/vendor/rails/actionpack/lib/action_controller/
session_management.rb:123:in `process'
/vendor/rails/actionpack/lib/action_controller/base.rb:388:in
`process'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
171:in `handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
115:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
126:in `dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in
`dispatch'
/vendor/rails/railties/lib/fcgi_handler.rb:101:in
`process_request'
/vendor/rails/railties/lib/fcgi_handler.rb:149:in
`with_signal_handler'
/vendor/rails/railties/lib/fcgi_handler.rb:99:in `process_request'
/vendor/rails/railties/lib/fcgi_handler.rb:77:in
`process_each_request'
/usr/lib/ruby/1.8/fcgi.rb:594:in `each_cgi'
/vendor/rails/railties/lib/fcgi_handler.rb:76:in
`process_each_request'
/vendor/rails/railties/lib/fcgi_handler.rb:50:in `process!'
/vendor/rails/railties/lib/fcgi_handler.rb:24:in `process!'
dispatch.fcgi:24


anyone faced this kind of situation? plz help me guys




regards,
Bala

Peter De Berdt

unread,
Feb 6, 2008, 4:06:17 PM2/6/08
to rubyonra...@googlegroups.com

On 06 Feb 2008, at 20:34, Bala wrote:

Ferret server not running couldnt figure it out. because i'm using

subdomain.


Error:

DRb::DRbConnError (druby://localhost:9010 - #<Errno::ECONNREFUSED:

Connection refused - connect(2)>):


Ferret is trying to connect to a druby process, which you can start with "script/ferret_server start -e production". Don't know if you'll be able to start up the extra process on a Dreamhost account, if you can't, you'll have to comment out the production part in config/ferret_server.yml. Do know that if more than one process writes to the index at the same time because you're not using the drb server, it'll be corrupted.



Best regards


Peter De Berdt


Bala

unread,
Feb 7, 2008, 4:43:00 AM2/7/08
to rubyonra...@googlegroups.com
Thanks Peter,

It helped me a lot.

regards,
Bala
--
"Smile while you cry."

"There are only two tragedies in life: one is not getting what one wants, and the other is getting it."
Reply all
Reply to author
Forward
0 new messages