James Bebbington
2007-Jun-18 08:57 UTC
[Ferret-talk] "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: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. -- Posted via http://www.ruby-forum.com/.
Jens Kraemer
2007-Jun-18 18:30 UTC
[Ferret-talk] "No such file or directory - script" Error on Model.rebuild
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 - scriptlooks 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 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa
James Bebbington
2007-Jun-19 08:43 UTC
[Ferret-talk] "No such file or directory - script" Error on Model.rebu
Jens Kraemer 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 :) Cheers, fractious. -- Posted via http://www.ruby-forum.com/.