# Asked for a remote server ? nil, ENV\["FERRET\_USE\_LOCAL\_IN

**URL:** <https://www.ruby-forum.com/t/asked-for-a-remote-server-nil-env-ferret-use-local-in/114268>\
**Category:** Ferret\
**Created:** [September 10, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/asked-for-a-remote-server-nil-env-ferret-use-local-in/114268 "2007-09-10T19:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldbug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Post date:** [September 10, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/asked-for-a-remote-server-nil-env-ferret-use-local-in/114268/1 "2007-09-10T19:00:00Z")

</div>

Hello,

I know this subject as been talked many time, but i can not figure out  
how to get rid of this…

ENV : ruby 1.8.4, ferret 0.11.4, acts\_as\_ferret 0.4.1 under win32

Error : Asked for a remote server ? nil, ENV[“FERRET\_USE\_LOCAL\_INDEX”]  
is nil, looks like we are not the server Will use local index.

My application is working find, with 4 mongrels, but i got this message  
on every request…

I tryed to add the following at the end of my environment.rb file,  
without sucess.

FERRET\_USE\_LOCAL\_INDEX=1 # didn’t do anything  
FERRET\_USE\_LOCAL\_INDEX=1 RAILS\_ENV=production script/ferret\_start #  
ruby did not start (exception)

There is a “require ‘acts\_as\_ferret’” at the beginning of my  
environment.rb

I got the same problem with a Fedoracore5, using ferret 0.10.13 and  
acts\_as\_ferret 0.4.1

Thank for you precious help Jens

---

<div class="post-metadata">

**Author:** ![oldbug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Post date:** [September 12, 2007, 1:47pm UTC](https://www.ruby-forum.com/t/asked-for-a-remote-server-nil-env-ferret-use-local-in/114268/2 "2007-09-12T13:47:28Z")

</div>

OK,

Adding ‘,:remote =\> false’ at the end of my acts\_as\_ferret definition,  
in my model did resolve the issue.
