Forum: Ruby on Rails Ferret file not found error on item delete

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Befa945ac6d3bf13c4b41657e8558f85?d=identicon&s=25 Mike Dershowitz (dersh53)
on 2007-05-22 14:27
Hi:

I'm getting a ferret error when I try to delete any item that has been
previously indexed.  I just installed ferret, so the indexes aren't big
or anything.  What I'm trying to do is to just delete an item on a table
that has been index.  Here's the error I'm getting:

Processing GoalsController#destroy (for 68.83.170.192 at 2007-05-22
08:05:39) [DELETE]
  Session ID: ae7fa224cbeac580bac6fa4c9c250a03
  Parameters: {"_method"=>"delete", "action"=>"destroy", "id"=>"105",
"controller"=>"goals"}


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/apps/goal_buddy/current/config/../index/production/goal/_2s_0.del"
but it doesn't exist: <No such file or directory>

):
    /usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:285:in
`delete'
    /usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:285:in
`<<'
    /usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:8:in
`synchrolock'
    /usr/lib/ruby/1.8/monitor.rb:229:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:8:in
`synchrolock'
    /usr/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:267:in
`<<'
    /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/local_index.rb:140:in
`<<'
    /usr/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/instance_methods.rb:73:in
`ferret_update'

As I really don't know ferret and acts_as_ferret well, any help you
could give would be greatly appreciated!

Thanks!

Mike
Ba3a00606eb530dcab2c4a6a59bf366d?d=identicon&s=25 Alain Ravet (Guest)
on 2007-05-22 16:09
(Received via mailing list)
Mike,

There is an active Ferret dedicated list:

    http://www.ruby-forum.com/forum/5

You'll have better chances to get a good answer there.


Alain Ravet
--------
http://blog.ravet.com
This topic is locked and can not be replied to.