Hi!
Do you use the latest acts_as_ferret (0.4.1)?
Jens
On Wed, Jul 25, 2007 at 01:04:01PM +0200, Izit Izit wrote:
> 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
>
--
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
[EMAIL PROTECTED] | www.webit.de
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk