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:in
`index_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:in
`index_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:in
`index_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:in
`records_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:in
`transaction''
(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:in
`index_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:in `each''
(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:in
`rebuild_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:in
`rebuild_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:in
`rebuild_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:in `with_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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
I am surprised that you could get that far. I cannot even contact the SVN server. It seems to be down? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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]
(C) 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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Bharat Ruparel 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks. I will try to get it using Subversion. On Jan 22, 1:20 am, Carsten Gehling <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Bharat Ruparel 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 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---