Rails app cannot connect to Ferret server

I have installet the Ferret gem v. 0.11.6 and the latest acts_as_ferret
plugin from

svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret

I’ve followed the instructions here
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer to set up the
server, and put acts_as_ferret :remote => true on one of my models (Ad)

I can also start the ferret_server, but when starting the Rails
application (with mongrel) and fetching a page, I get the following
errors in the log:

Asked for a remote server ? true, ENV[“FERRET_USE_LOCAL_INDEX”] is nil,
looks like we are not the server
Will use remote index server which should be available at
druby://localhost:9010
Ad Columns (0.004026) SHOW FIELDS FROM ads
default field list: [:keywords, :family_tree_other, :description, :sex,
:top_ad, :background_color, :family_tree, :notified_expired,
:ad_kind_id, :callname, :show_bold_border, :race_id, :castrated,
:display_type, :homepage_url, :distinctive_features, :email,
:read_count, :age, :duration, :title, :show_contact, :ts_create,
:age_unit, :price, :show_image_on_list, :phone2, :ts_display, :color_id,
:show_bold_text, :phone1, :disappeared_from, :qty_available,
:date_sale_ready, :phone3, :user_id, :ts_expire]

ArgumentError (wrong number of arguments (1 for 0)):
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in
ferret_enabled?' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:inindex_records’
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in each' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:inindex_records’
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:29:in measure_time' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:18:inindex_records’
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:52:in
index_model' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/class_methods.rb:66:inrecords_for_rebuild’
(druby://localhost:9010)
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in
transaction' (druby://localhost:9010) /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/transactions.rb:80:intransaction’
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/class_methods.rb:61:in
records_for_rebuild' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:51:inindex_model’
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:39:in
index_models' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:39:ineach’
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/ferret_extensions.rb:39:in
index_models' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:143:inrebuild_index’
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:170:in
reconnect_when_needed' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:141:inrebuild_index’
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:164:in with_class' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:137:inrebuild_index’
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:122:in
ensure_index_exists' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/ferret_server.rb:164:inwith_class’
(druby://localhost:9010)
/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:119:in
`ensure_index_exists’

Any idea what I might have missed?

  • Carsten

I am surprised that you could get that far. I cannot even contact the
SVN server. It seems to be down?

Sorry. See my post in the ferret forum below:

Hello All,
I am trying to install “act_as_ferret” following the instructions given
in the site:

http://projects.jkraemer.net/acts_as_ferret/

I am on the windows XP machine using InstntRails 2.0 and everything thqt
comes with it. I could gem install ferret fine using the same command,
i.e.,

gem install ferret

Now, according to instructions, I have to execute the following command:

ruby script/plugin install
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret

When I try to do that the server times out. I tried pinging the server
projects.jkraemer.net but get the following response:

Microsoft Windows XP [Version 5.1.2600]
© Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\ruparelb>ping projects.jkraemer.net:80
Ping request could not find host projects.jkraemer.net:80. Please check
the name and try again.

C:\Documents and Settings\ruparelb>ping projects.jkraemer.net

Pinging app4.jkraemer.net [213.239.247.222] with 32 bytes of data:

Request timed out.
Request timed out.

Ping statistics for 213.239.247.222:
Packets: Sent = 2, Received = 0, Lost = 2 (100% loss),
Control-C
^C
C:\Documents and Settings\ruparelb>

I am not sure what is going on. Please advise.

Thanks.

Bharat

Thanks. I will try to get it using Subversion.

On Jan 22, 1:20 am, Carsten G. [email protected]

Bharat R. wrote:

ruby script/plugin install
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret

When I try to do that the server times out. I tried pinging the server
projects.jkraemer.net but get the following response:

It timed out for me a few times as well. But eventually I got it. Try to
fetch it directly with subversion instead of using script/plugin install

  • Carsten

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs