I''m using ferret and acts_as_ferret,i can success save record,but sometimes when i update record,index not found error occurred(not always).I don''t know why:( [quote] 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 "/home/dev/www/index/development/rcu/_12q.cfs" but it doesn''t exist: <No such file or directory> [/quote] Here is the trace [quote] /usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:285:in `delete'' /usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:285:in `<<'' /usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:8:in `synchrolock'' /usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize'' /usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:8:in `synchrolock'' /usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:267:in `<<'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/local_index.rb:157:in `<<'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/instance_methods.rb:73:in `ferret_update'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in `send'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:333:in `callback'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in `each'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in `callback'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:268:in `update_without_timestamps'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/timestamp.rb:48:in `update'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1789:in `create_or_update_without_callbacks'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/callbacks.rb:242:in `create_or_update'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1545:in `save_without_validation'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/validations.rb:752:in `save_without_transactions'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `save'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:59:in `transaction'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/transactions.rb:95:in `transaction'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/transactions.rb:121:in `transaction'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/transactions.rb:129:in `save'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/validations.rb:773:in `update_attribute'' [/quote] -- Posted via http://www.ruby-forum.com/.
On 2007-07-24, at 5:19 AM, Xu Martin wrote:> I''m using ferret and acts_as_ferret,i can success save record,but > sometimes when i update record,index not found error occurred(not > always).I don''t know why:(do you use the ferret indexing server? If not, use it :-) Most of the time these errors occurs, if you have more than one indexwriter open at the same time.. Ben