#174 ✓resolved

Ferret::FileNotFound Errors with local index

Reported by tvdeyen | August 18th, 2010 @ 08:25 AM

I use acts_as_ferret (0.4.8) with ferret (0.11.6) without a DRb Server. We use a local index. I read a lot about acts_as_ferret and the DRb Server. As i understand the server is only needed when using multiple mongrel (or other ruby servers) instances that write on the same index. Jens confirmed that in the ruby forum.

I randomly have Ferret::FileNotFound Errors

Ferret::FileNotFoundError (File Not Found Error occured at <except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input
        tried to open "/var/www/web6/html/customers/bruns/releases/20100816103727/index/production/essence_text/_aw_0.del" but it doesn't exist: <No such file or directory>

ferret (0.11.6) lib/ferret/index.rb:285:in `delete'
ferret (0.11.6) lib/ferret/index.rb:285:in `add_document'
ferret (0.11.6) lib/ferret/index.rb:8:in `synchrolock'
/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/1.8/monitor.rb:242:in `synchronize'
ferret (0.11.6) lib/ferret/index.rb:8:in `synchrolock'
ferret (0.11.6) lib/ferret/index.rb:267:in `add_document'
config/./vendor/plugins/alchemy/plugins/acts_as_ferret/lib/local_index.rb:108:in `<<'
config/./vendor/plugins/alchemy/plugins/acts_as_ferret/lib/instance_methods.rb:100:in `ferret_create'

As you can see that ferret tries to delete an index that is not present. So where does this key came from? I am rebuilding the index after deploying via Capistrano. Also i rebuild the index if an exception raises. But this does not help. I still have a lot of FnF Errors.

Maybe ferret fixes this? I'll try.

But in the meantime please someone can help, or try to explain what could be the issue?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket