I too am getting this error, I was not getting it before with 0.10.4.

AAF 0.4.0
Ferret 0.11.4

I have:
Stopped the webserver (lighttpd-1.4.15 (ssl)), removed all the indexes 
by hand.

Rebuilt the indexes with './script/console production' 
Person.rebuild_index.

Start the site and DRB back up, and bwam anytime it tries to write a new 
person to the index, or a new photo I get the following errors.

Any solution to this? yet?

{{{
Ferret::FileNotFoundError (File Not Found Error occured at 
<except.c>:117 in xpo     p_context
Error occured in fs_store.c:329 - fs_open_input
        tried to open 
"/var/www/site/public/../config/../index/production/ph 
oto/_3z1_5.del" but it doesn't exist: <No such file or directory>

):
    /usr/lib64/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:285:in 
`dele     te'
    /usr/lib64/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:285:in 
`<<'
    /usr/lib64/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:8:in 
`synchr     olock'

}}}


Ryan King wrote:
> On 4/16/07, El Gato <[EMAIL PROTECTED]> wrote:
>> >> Currently I'm running AAF's rebuild_index  (against ferret_server) on
>> > versions of ferret.
>> server errors.  What can I do about this?
> Rebuild index won't work with Drb servers if you're try to write to
> the index from another process besides the one running
> 'rebuild_index'.
> 
> For now, I'd suggest hacking AAF to not automatically rebuild indexes.
> I just commented out line #23 of local_index.rb (which should read
> "rebuild_index").
> 
> Then, to build/rebuild my index I'm running something like:
> 
> model = MyModel
> 
> 0.step(model.count, 1000){|i| model.find(:all, :limit=>1000,
> :offset=>i).each{|r| r.ferret_update}; }
> 
> This should allow concurrent writes, though it will be slower than the
> existing rebuld_model.
> 
> -ryan


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to