[Backgroundrb-devel] backgroundrb not cleaning up tmp files?

Erik Morton eimorton at gmail.com
Fri Nov 30 14:17:46 EST 2007


I just had an interesting issue on a production system that has been  
running nicely for about a year. There were approximately 10,000  
backgroundrb temp files in the /tmp directory. It looks like  
backgroundrb wasn't cleaning them up.

I noticed it with the following error:
DRb::DRbConnError: drbunix:///tmp/backgroundrb.20015/ 
backgroundrb_logger_0_0.101544829808665 - #<Errno::ENOENT: No such  
file or directory - ///tmp/backgroundrb.20015/ 
backgroundrb_logger_0_0.101544829808665>
  /usr/lib/ruby/1.8/drb/drb.rb:736:in `open'
  /usr/lib/ruby/1.8/drb/drb.rb:729:in `each'
  /usr/lib/ruby/1.8/drb/drb.rb:729:in `open'
  /usr/lib/ruby/1.8/drb/drb.rb:1189:in `initialize'
  /usr/lib/ruby/1.8/drb/drb.rb:1169:in `new'
  /usr/lib/ruby/1.8/drb/drb.rb:1169:in `open'
  /usr/lib/ruby/1.8/drb/drb.rb:1085:in `method_missing'
  /usr/lib/ruby/1.8/drb/drb.rb:1103:in `with_friend'
  /usr/lib/ruby/1.8/drb/drb.rb:1084:in `method_missing'
  /apps/eisweb/releases/20071120022316/vendor/plugins/backgroundrb/ 
server/lib/backgroundrb/middleman.rb:42:in `initialize'
  /apps/eisweb/releases/20071120022316/vendor/plugins/backgroundrb/ 
server/lib/backgroundrb/middleman.rb:420:in `new'
  /apps/eisweb/releases/20071120022316/vendor/plugins/backgroundrb/ 
server/lib/backgroundrb/middleman.rb:420:in `worker'
  /apps/eisweb/releases/20071120022316/vendor/plugins/backgroundrb/ 
server/lib/backgroundrb/worker.rb:37:in `logger'
  #{RAILS_ROOT}/app/helpers/distribution_helper.rb:4:in  
`do_distribution'

Has anyone else seen this?


More information about the Backgroundrb-devel mailing list