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:in
fu_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:in
reverse_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:in
each’
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:in
new’
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:in
new’
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:in
send’
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:in
send’
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:in
rebuild_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.