Forum: Ferret Why can't find index file sometimes?

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.
9c662bd4110d5913f6bf6e828fd26dd9?d=identicon&s=25 Martin Xu (martinx)
on 2007-07-24 05:19
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]
D148c5959e4eccc97f33244f1c5396e9?d=identicon&s=25 Benjamin Krause (Guest)
on 2007-07-26 00:46
(Received via mailing list)
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
This topic is locked and can not be replied to.