Hi! most probably this happens because with script/runner, your model classes get loaded before the server gets a chance to tell them they shouldn't run in remote mode. Hence aaf tries to connect to the DRb server, which of course is impossible since it hasn't been started up yet, resulting in the error you see.
Try to set the environment variable FERRET_USE_LOCAL_INDEX to 'true' in your launch command: $ FERRET_USE_LOCAL_INDEX=true /Library/WebServer/rails/ccdb/current/script/runner -e production /Library/WebServer/rails/ccdb/current/script/ferret_start cheers, Jens On Fri, Oct 05, 2007 at 06:07:47AM +0200, Tom Brice wrote: > I am running ferret (0.11.4) and acts_as_ferret (stable from svn) in a > rails 1.2.3 app in production using the DRb server. I recently upgraded > my configuration and the method with which I start and stop the server > no longer works: Here is the command I would like to use (and have used > in the past) to start the aaf server: > > $ /Library/WebServer/rails/ccdb/current/script/runner -e production > /Library/WebServer/rails/ccdb/current/script/ferret_start > /opt/local/lib/ruby/1.8/drb/drb.rb:736:in `open': druby://localhost:9090 > - #<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' > ... 28 levels... > from > /Library/WebServer/rails/ccdb/current/script/../config/../vendor/rails/railties/lib/commands/runner.rb:39:in > `require' > from > /Library/WebServer/rails/ccdb/current/script/../config/../vendor/rails/railties/lib/commands/runner.rb:39 > from /Library/WebServer/rails/ccdb/current/script/runner:3:in > `require' > from /Library/WebServer/rails/ccdb/current/script/runner:3 > > Strangely the follwoing command works: > > $ cd /Library/WebServer/rails/ccdb/current && RAILS_ENV=production > /Library/WebServer/rails/ccdb/current/script/ferret_start > Starting ferret DRb server...Done. > > I would simply switch to that but I am on an Xserve and I'm using > launchd to start the aaf server on reboot. launchd does not seem to > like the command that works. > > Anyone know why I would get a DRbConnError when using script/runner? > > Thanks in advance, > Tom > -- > 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

