# Rails app cannot connect to Ferret server

**URL:** <https://www.ruby-forum.com/t/rails-app-cannot-connect-to-ferret-server/126750>\
**Category:** Rails\
**Created:** [January 21, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/rails-app-cannot-connect-to-ferret-server/126750 "2008-01-21T22:43:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuktuk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/77aa72/32.png) [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Post date:** [January 21, 2008, 10:43pm UTC](https://www.ruby-forum.com/t/rails-app-cannot-connect-to-ferret-server/126750/1 "2008-01-21T22:43:02Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![tuktuk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/77aa72/32.png) [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Post date:** [January 21, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/rails-app-cannot-connect-to-ferret-server/126750/2 "2008-01-21T23:16:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tuktuk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/77aa72/32.png) [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Post date:** [January 21, 2008, 11:18pm UTC](https://www.ruby-forum.com/t/rails-app-cannot-connect-to-ferret-server/126750/3 "2008-01-21T23:18:35Z")

</div>

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/](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](http://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](http://projects.jkraemer.net:80)  
Ping request could not find host [projects.jkraemer.net:80](http://projects.jkraemer.net:80). Please check  
the name and try again.

C:\Documents and Settings\ruparelb\>ping [projects.jkraemer.net](http://projects.jkraemer.net)

Pinging [app4.jkraemer.net](http://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

---

<div class="post-metadata">

**Author:** ![tuktuk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/77aa72/32.png) [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Post date:** [January 22, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/rails-app-cannot-connect-to-ferret-server/126750/4 "2008-01-22T14:31:44Z")

</div>

Thanks. I will try to get it using Subversion.

On Jan 22, 1:20 am, Carsten G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![tuktuk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/77aa72/32.png) [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Post date:** [January 22, 2008, 7:20am UTC](https://www.ruby-forum.com/t/rails-app-cannot-connect-to-ferret-server/126750/5 "2008-01-22T07:20:45Z")

</div>

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](http://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
