Too many open files error during bulkops

Here I am, killing spam again. I’ve let it accumulate for a couple of
days so now I’ve got a fair bit. Only trouble is that the bulkops to
confirm the spam results in the error below.

Clearing out tmp/cache seems to fix the problem.

Known bug? If not, I’ll raise it on Trac.

Errno::EMFILE (Too many open files - /home/alastair/typo/config/…/
tmp/cache/META/DATA/ACTION_PARAM/
girtby.net/articles/permalink/comment=body [snip spam content]:
/vendor/rails/actionpack/lib/action_controller/caching.rb:450:in
open' /vendor/rails/actionpack/lib/action_controller/caching.rb:450:insearch_dir’
/vendor/rails/actionpack/lib/action_controller/caching.rb:454:in
`search_dir’

[…snip about two screenfuls…]

 /vendor/rails/actionpack/lib/action_controller/caching.rb:450:in

search_dir' /vendor/rails/actionpack/lib/action_controller/caching.rb:429:indelete_matched’
/vendor/rails/actionpack/lib/action_controller/caching.rb:317:in
expire_fragment' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 33:inbenchmark’
/vendor/rails/actionpack/lib/action_controller/caching.rb:316:in
expire_fragment' /vendor/rails/actionpack/lib/action_controller/caching.rb:550:inmethod_missing’
/app/models/blog_sweeper.rb:16:in expire_for' /app/models/blog_sweeper.rb:5:inafter_save’
/vendor/rails/activerecord/lib/active_record/observer.rb:123:in
update' /usr/lib/ruby/1.8/observer.rb:185:innotify_observers’
/usr/lib/ruby/1.8/observer.rb:184:in notify_observers' /vendor/rails/activerecord/lib/active_record/callbacks.rb:375:innotify’
/vendor/rails/activerecord/lib/active_record/callbacks.rb:339:in
callback' /vendor/rails/activerecord/lib/active_record/callbacks.rb:254:increate_or_update’
/vendor/rails/activerecord/lib/active_record/base.rb:1392:in
save_without_validation' /vendor/rails/activerecord/lib/active_record/validations.rb: 736:insave_without_transactions’
/vendor/rails/activerecord/lib/active_record/transactions.rb:
126:in save' /vendor/rails/activerecord/lib/active_record/connection_adapters/ abstract/database_statements.rb:51:intransaction’
/vendor/rails/activerecord/lib/active_record/transactions.rb:
91:in transaction' /vendor/rails/activerecord/lib/active_record/transactions.rb: 118:intransaction’
/vendor/rails/activerecord/lib/active_record/transactions.rb:
126:in save' /app/models/feedback.rb:153:inconfirm_classification!’
/app/controllers/admin/feedback_controller.rb:72:in bulkops' /app/controllers/admin/feedback_controller.rb:71:inbulkops’
/vendor/rails/actionpack/lib/action_controller/base.rb:941:in
perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:368:inperform_action_without_benchmark’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
69:in perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
69:in perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:82:inperform_action’
/vendor/rails/actionpack/lib/action_controller/base.rb:408:in
process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:377:inprocess_without_session_management_support’
/vendor/rails/actionpack/lib/action_controller/
session_management.rb:117:in process' /vendor/rails/railties/lib/dispatcher.rb:38:indispatch’
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/
rails.rb:66:in process' /usr/lib/ruby/1.8/thread.rb:135:insynchronize’
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/
rails.rb:64:in process' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 425:inprocess_client’
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:
424:in process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 495:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:
494:in run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 483:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb:
774:in run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel.rb: 772:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/bin/mongrel_rails:
97:in run' /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/lib/mongrel/ command.rb:163:inrun’
/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/bin/mongrel_rails:194
/usr/bin/mongrel_rails:18

I haven’t seen this before. File a bug, I’ll look at it when I can.

Scott

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs