"No such file or directory - script" Error on Model.rebuild

Hi,

Having recently converted to using ferret_server on my staging site my
deployment is now failing due to the following error when attempting to
rebuild the indexes on my models:

from (irb):1>> Post.rebuild_index
Errno::ENOENT: No such file or directory - script
from (druby://127.2.0.1:9100)
/usr/local/lib/ruby/1.8/fileutils.rb:243:in mkdir' from (druby://127.2.0.1:9100) /usr/local/lib/ruby/1.8/fileutils.rb:243:infu_mkdir’
from (druby://127.2.0.1:9100)
/usr/local/lib/ruby/1.8/fileutils.rb:217:in mkdir_p' from (druby://127.2.0.1:9100) /usr/local/lib/ruby/1.8/fileutils.rb:215:inreverse_each’
from (druby://127.2.0.1:9100)
/usr/local/lib/ruby/1.8/fileutils.rb:215:in mkdir_p' from (druby://127.2.0.1:9100) /usr/local/lib/ruby/1.8/fileutils.rb:201:ineach’
from (druby://127.2.0.1:9100)
/usr/local/lib/ruby/1.8/fileutils.rb:201:in mkdir_p' from (druby://127.2.0.1:9100) /usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.3/lib/ferret/index.rb:120:innew’
from (druby://127.2.0.1:9100)
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.3/lib/ferret/index.rb:120:in
initialize' from (druby://127.2.0.1:9100) /usr/local/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/local_index.rb:43:innew’
from (druby://127.2.0.1:9100)
/usr/local/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/local_index.rb:43:in
rebuild_index' from (druby://127.2.0.1:9100) /usr/local/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/ferret_server.rb:68:insend’
from (druby://127.2.0.1:9100)
/usr/local/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/ferret_server.rb:68:in
method_missing' from /usr/local/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/remote_index.rb:16:insend’
from
/usr/local/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/remote_index.rb:16:in
method_missing' from /usr/local/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/class_methods.rb:15:inrebuild_index’

The rebuild did work for a while (week or so) after converting to using
DRb but now its complaining about this ‘script’ directory, anyone have
ideas?

Thanks,
fractious.

On Mon, Jun 18, 2007 at 10:57:51AM +0200, James Bebbington wrote:

Hi,

Having recently converted to using ferret_server on my staging site my
deployment is now failing due to the following error when attempting to
rebuild the indexes on my models:

from (irb):1>> Post.rebuild_index
Errno::ENOENT: No such file or directory - script

looks like you launch the rebuild from some directory other than
RAILS_ROOT, could you check this somehow?

Jens


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

Jens K. wrote:

looks like you launch the rebuild from some directory other than
RAILS_ROOT, could you check this somehow?

Thanks for getting back to me Jens, That output was from
./script/console. The same error was being thrown in the application too
when attempting to do anything on the site that involved ferret. I
restarted the ferret_server (which I’m sure I tried before) and
everything’s working fine now. Odd, but I’m happy as long as it doesn’t
happen again :slight_smile:

Cheers,
fractious.