[Backgroundrb-devel] IOError problem

Marc Evans Marc at SoftwareHackery.Com
Wed Feb 28 08:41:52 EST 2007


Hello -

Can anyone explain why I get the stack trace in background_server.log when 
I try to start my first worker? I don't get this on subsequent workers, 
only the first one.

I should note, the method I am using to start backgroundrb is documented 
in the archives, and is likely the root of this problem. Suggestions about 
how to "fix" or avoid this issue are appreciated.

http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000756.html

Thanks in advance - Marc

20070228-13:36:12 (9128) closed stream - (IOError)
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/logger.rb:504:in `write'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/logger.rb:504:in `write'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/monitor.rb:238:in 
`synchronize'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/logger.rb:496:in `write'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/logger.rb:326:in `add'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/logger.rb:374:in `info'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in 
`log_connections'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:51:in 
`allow_concurrency='
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/../vendor/plugins/backgroundrb/server/lib/backgroundrb/worker_rails.rb:20:in 
`initialize'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/../vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:211:in 
`new'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/../vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:211:in 
`new_worker'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/../vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:36:in 
`dispatch'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/../vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:22:in 
`initialize'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/../vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:22:in 
`new'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/../vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:22:in 
`dispatch'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/../vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:199:in 
`new_worker'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1555:in 
`__send__'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1555:in 
`perform_without_block'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1515:in 
`perform'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1589:in 
`main_loop'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1585:in `loop'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1585:in 
`main_loop'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1581:in 
`start'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1581:in 
`main_loop'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1430:in `run'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1427:in 
`start'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1427:in `run'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1347:in 
`initialize'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1627:in `new'
20070228-13:36:12 (9128) /usr/local/lib/ruby/1.8/drb/drb.rb:1627:in 
`start_service'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/../vendor/plugins/backgroundrb/server/lib/backgroundrb_server.rb:315:in 
`run'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons/application.rb:186:in 
`call'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons/application.rb:186:in 
`start_proc'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons/daemonize.rb:192:in 
`call'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons/daemonize.rb:192:in 
`call_as_daemon'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons/application.rb:190:in 
`start_proc'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons/application.rb:226:in 
`start'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons/controller.rb:69:in 
`run'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons.rb:182:in 
`run_proc'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons/cmdline.rb:94:in 
`call'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons/cmdline.rb:94:in 
`catch_exceptions'
20070228-13:36:12 (9128) 
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.4/lib/daemons.rb:181:in 
`run_proc'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/../vendor/plugins/backgroundrb/server/lib/backgroundrb_server.rb:301:in 
`run'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/environment.rb:84
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/environment.rb:78:in `fork'
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/../config/environment.rb:78
20070228-13:36:12 (9128) 
/usr/local/www/data/cee/public/dispatch.fcgi:21:in `require'
20070228-13:36:12 (9128) /usr/local/www/data/cee/public/dispatch.fcgi:21



More information about the Backgroundrb-devel mailing list