Hi,

I have my Model as follows:

class Mutation < ActiveRecord::Base
  acts_as_ferret ({:fields => {:description=>{},
  :product_id=>{:index => :untokenized},
  :product_description=>{},
  :product_label_description=>{},
  :product_label_free=>{},
  :product_product_id_supplier=>{},
  :product_description_supplier=>{},
  :supplier_description=>{},
  :pub_date_sort => {:index => :untokenized_omit_norms, :term_vector =>
:no},
  :location_id => {:index => :untokenized},
  :tab => {:index => :untokenized}},:remote => false})

THis will do the ferret locally without the DRB server. Works ok.

If I change this to:

class Mutation < ActiveRecord::Base
  acts_as_ferret ({:fields => {:description=>{},
  :product_id=>{:index => :untokenized},
  :product_description=>{},
  :product_label_description=>{},
  :product_label_free=>{},
  :product_product_id_supplier=>{},
  :product_description_supplier=>{},
  :supplier_description=>{},
  :pub_date_sort => {:index => :untokenized_omit_norms, :term_vector =>
:no},
  :location_id => {:index => :untokenized},
  :tab => {:index => :untokenized}},:remote => true})

I get the following error when starting ferret server (and also when
starting mongrel)

/opt/local/lib/ruby/1.8/drb/drb.rb:736:in `open': druby://localhost:9010
- #<Errno::ECONNREFUSED: Connection refused - connect(2)>
(DRb::DRbConnError)
        from /opt/local/lib/ruby/1.8/drb/drb.rb:729:in `each'
        from /opt/local/lib/ruby/1.8/drb/drb.rb:729:in `open'
        from /opt/local/lib/ruby/1.8/drb/drb.rb:1189:in `initialize'
        from /opt/local/lib/ruby/1.8/drb/drb.rb:1169:in `new'
        from /opt/local/lib/ruby/1.8/drb/drb.rb:1169:in `open'
        from /opt/local/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'
        from /opt/local/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'
        from /opt/local/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'
         ... 29 levels...
        from
/opt/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/runner.rb:39
        from
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
        from
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
        from script/runner:3


When I change the :remote back to false, both Mongrel as DRB start
without an error message.
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to