Problem with backgroundrb

hi, i am using drb and it is working fine on my local pc on windows…
and after uploading the code to the server it was working for
sometime but now it gives me error every time i invoke the process…

error—

uninitialized constant EmailWorker::Notifier - (NameError)
/usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/
dependencies.rb:477:in const_missing' /data/flywheel/releases/20071214170355/config/../script/ backgroundrb/../../config/../lib/workers/email_worker.rb:14:indo_work’
/data/flywheel/releases/20071214170355/config/…/script/
backgroundrb/…/…/config/…/lib/workers/email_worker.rb:13:in each' /data/flywheel/releases/20071214170355/config/../script/ backgroundrb/../../config/../lib/workers/email_worker.rb:13:indo_work’
/data/flywheel/releases/20071214170355/config/…/script/
backgroundrb/…/…/config/…/vendor/plugins/backgroundrb/
backgroundrb_rails.rb:36:in start_process' /data/flywheel/releases/20071214170355/config/../script/ backgroundrb/../../config/../vendor/plugins/backgroundrb/ backgroundrb_rails.rb:32:ininitialize’
/data/flywheel/releases/20071214170355/config/…/script/
backgroundrb/…/…/config/…/vendor/plugins/backgroundrb/
backgroundrb_rails.rb:32:in new' /data/flywheel/releases/20071214170355/config/../script/ backgroundrb/../../config/../vendor/plugins/backgroundrb/ backgroundrb_rails.rb:32:instart_process’
/data/flywheel/releases/20071214170355/config/…/script/
backgroundrb/…/…/config/…/vendor/plugins/backgroundrb/
backgroundrb.rb:57:in new_worker' /usr/lib64/ruby/1.8/thread.rb:135:insynchronize’
/data/flywheel/releases/20071214170355/config/…/script/
backgroundrb/…/…/config/…/vendor/plugins/backgroundrb/
backgroundrb.rb:49:in new_worker' /usr/lib64/ruby/1.8/drb/drb.rb:1555:insend
/usr/lib64/ruby/1.8/drb/drb.rb:1555:in perform_without_block' /usr/lib64/ruby/1.8/drb/drb.rb:1515:inperform’
/usr/lib64/ruby/1.8/drb/drb.rb:1589:in main_loop' /usr/lib64/ruby/1.8/drb/drb.rb:1585:inloop’
/usr/lib64/ruby/1.8/drb/drb.rb:1585:in main_loop' /usr/lib64/ruby/1.8/drb/drb.rb:1581:instart’
/usr/lib64/ruby/1.8/drb/drb.rb:1581:in main_loop' /usr/lib64/ruby/1.8/drb/drb.rb:1430:inrun’
/usr/lib64/ruby/1.8/drb/drb.rb:1427:in start' /usr/lib64/ruby/1.8/drb/drb.rb:1427:inrun’
/usr/lib64/ruby/1.8/drb/drb.rb:1347:in initialize' /usr/lib64/ruby/1.8/drb/drb.rb:1627:innew’
/usr/lib64/ruby/1.8/drb/drb.rb:1627:in start_service' /data/flywheel/releases/20071214170355/config/../script/backgroundrb/ start:98 /data/flywheel/releases/20071214170355/config/../script/backgroundrb/ start:94:infork’
/data/flywheel/releases/20071214170355/config/…/script/backgroundrb/
start:94
/data/flywheel/releases/20071214170355/config/…/script/backgroundrb/
start:86:in `fork’
/data/flywheel/releases/20071214170355/config/…/script/backgroundrb/
start:86


it says every time this (uninitialized constant EmailWorker::Notifier

  • (NameError))
    i also tried it without using notifier in my code but it always gives
    the same error…

now i am afraid of this … Help…

Thanks,
Sandeep

Hi Sandeep,

On Jan 14, 2008 9:29 PM, Babbu [email protected] wrote:

dependencies.rb:477:in const_missing' backgroundrb_rails.rb:36:instart_process’
backgroundrb/…/…/config/…/vendor/plugins/backgroundrb/
/usr/lib64/ruby/1.8/drb/drb.rb:1585:in `main_loop’
/data/flywheel/releases/20071214170355/config/…/script/backgroundrb/

  • (NameError))
    i also tried it without using notifier in my code but it always gives
    the same error…

now i am afraid of this … Help…

I will suggest you to upgrade to new version:

http://backgroundrb.rubyforge.org

Please use either trunk or release tag 1.0.1


Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://gnufied.org

On Jan 14, 10:47 pm, hemant [email protected] wrote:

sometime but now it gives me error every time i invoke the process…
backgroundrb/…/…/config/…/lib/workers/email_worker.rb:13:in each' backgroundrb/../../config/../vendor/plugins/backgroundrb/ backgroundrb.rb:49:innew_worker’
/usr/lib64/ruby/1.8/drb/drb.rb:1427:in run' start:86:infork’

http://gnufied.org

Hi,
I tried bot trunk and release tag 1.0.1 on my local pc on windows
but it gives the error when i run the command
---- ruby script/backgroundrb start
error is —

script/backgroundrb:28:in `fork’: the fork() function is unimplemented
on this machine (NotImplementedError)
from script/backgroundrb:28

==== Help…

Thanks,
Sandeep

You can’t use backgroundrb in windows so that’s why the new versions
don’t work. The only version that works is a very old version that you
are probably using. May I recommend doing what I used to do (develop on
a virtual machine of linux on your PC or using Cygwin) or even better
get a mac (what I am doing now).

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