[Backgroundrb-devel] Backgroundrb running under cygwin - having issue with Railsbase workers

Mike Roeder mcroeder at gmail.com
Fri Apr 27 17:37:15 EDT 2007


Hello all,

We're currently running version .1.x in our environment. We would like to
move to .2.x to take advantage of some of the improvements made running in a
multi-process environment. We deploy to a linux environment but develop
locally in Windows. I'm aware that a number of people have reported the
ability to run .2.x of backgroundrb inside cygwin, and for the most part,
I've been able to do the same. My initial test worker runs fine as a
non-RailsBase worker. Once I switch it to load rails as part of the worker,
I run into a problem with fork, namely: Resource temporarily unavailable -
fork(2) - (Errno::EAGAIN). My debug log statements within Middleman show
that backgroundrb_results and backgroundrb_logger get loaded fine, but any
rails worker dies in the new_worker method of middleman, when attempting to
create the slave_obj. Any ideas? I've done a significant amount of poking
around the cygwin lists but haven't found anything of import to relate. I'd
love to hear from any of you guys running this under cygwin to see if
perhaps I've just done something wrong or need my expectations adjusted.
I've copied a stack trace to the end of this message. Thanks!

20070427-13:34:40 (3312) Resource temporarily unavailable - fork(2) -
(Errno::EAGAIN)
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/slave-1.1.0/lib/slave.rb:103:in
`fork'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/slave-1.1.0/lib/slave.rb:103:in
`fork'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/slave-1.1.0/lib/slave.rb:353:in
`initialize'
20070427-13:34:40 (3312)
/var/www/apps/some_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:220:in
`new'
20070427-13:34:40 (3312)
/var/www/apps/some_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:220:in
`new_worker'
20070427-13:34:40 (3312)
/var/www/apps/some_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:36:in
`dispatch'
20070427-13:34:40 (3312)
/var/www/apps/some_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:22:in
`initialize'
20070427-13:34:40 (3312)
/var/www/apps/some_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:22:in
`new'
20070427-13:34:40 (3312)
/var/www/apps/some_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/thread_pool.rb:22:in
`dispatch'
20070427-13:34:40 (3312)
/var/www/apps/some_app/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:206:in
`new_worker'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1555:in `__send__'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1555:in
`perform_without_block'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1515:in `perform'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1589:in `main_loop'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1585:in `loop'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1585:in `main_loop'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1581:in `start'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1581:in `main_loop'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1430:in `run'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1427:in `start'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1427:in `run'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1347:in `initialize'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1627:in `new'
20070427-13:34:40 (3312) /usr/lib/ruby/1.8/drb/drb.rb:1627:in
`start_service'
20070427-13:34:40 (3312)
/var/www/apps/some_app/vendor/plugins/backgroundrb/server/lib/backgroundrb_server.rb:315:in
`run'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/application.rb:187:in
`call'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/application.rb:187:in
`start_proc'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/daemonize.rb:192:in
`call'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/daemonize.rb:192:in
`call_as_daemon'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/application.rb:191:in
`start_proc'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/application.rb:227:in
`start'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/controller.rb:69:in
`run'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons.rb:182:in
`run_proc'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/cmdline.rb:105:in
`call'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/cmdline.rb:105:in
`catch_exceptions'
20070427-13:34:40 (3312)
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons.rb:181:in
`run_proc'
20070427-13:34:40 (3312)
/var/www/apps/some_app/vendor/plugins/backgroundrb/server/lib/backgroundrb_server.rb:301:in
`run'
20070427-13:34:40 (3312) ./script/backgroundrb:29
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20070427/a8fbffcc/attachment.html 


More information about the Backgroundrb-devel mailing list