# Problem with backgroundrb

**URL:** <https://www.ruby-forum.com/t/problem-with-backgroundrb/126007>\
**Category:** Rails\
**Created:** [January 14, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/problem-with-backgroundrb/126007 "2008-01-14T17:01:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babbu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Babbu](https://www.ruby-forum.com/u/Babbu)\
**Post date:** [January 14, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/problem-with-backgroundrb/126007/1 "2008-01-14T17:01:05Z")

</div>

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:in`do\_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:in`do\_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:in`initialize’  
/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:in`start\_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:in`synchronize’  
/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:in` **send** ’  
/usr/lib64/ruby/1.8/drb/drb.rb:1555:in `perform_without_block' /usr/lib64/ruby/1.8/drb/drb.rb:1515:in`perform’  
/usr/lib64/ruby/1.8/drb/drb.rb:1589:in `main_loop' /usr/lib64/ruby/1.8/drb/drb.rb:1585:in`loop’  
/usr/lib64/ruby/1.8/drb/drb.rb:1585:in `main_loop' /usr/lib64/ruby/1.8/drb/drb.rb:1581:in`start’  
/usr/lib64/ruby/1.8/drb/drb.rb:1581:in `main_loop' /usr/lib64/ruby/1.8/drb/drb.rb:1430:in`run’  
/usr/lib64/ruby/1.8/drb/drb.rb:1427:in `start' /usr/lib64/ruby/1.8/drb/drb.rb:1427:in`run’  
/usr/lib64/ruby/1.8/drb/drb.rb:1347:in `initialize' /usr/lib64/ruby/1.8/drb/drb.rb:1627:in`new’  
/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:in`fork’  
/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

---

<div class="post-metadata">

**Author:** ![Babbu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Babbu](https://www.ruby-forum.com/u/Babbu)\
**Post date:** [January 14, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/problem-with-backgroundrb/126007/2 "2008-01-14T18:48:23Z")

</div>

Hi Sandeep,

On Jan 14, 2008 9:29 PM, Babbu [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> dependencies.rb:477:in `const_missing' backgroundrb_rails.rb:36:in `start\_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](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](http://gnufied.org)

---

<div class="post-metadata">

**Author:** ![Babbu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Babbu](https://www.ruby-forum.com/u/Babbu)\
**Post date:** [January 16, 2008, 7:18am UTC](https://www.ruby-forum.com/t/problem-with-backgroundrb/126007/3 "2008-01-16T07:18:08Z")

</div>

On Jan 14, 10:47 pm, hemant [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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:in `new\_worker’  
> > /usr/lib64/ruby/1.8/drb/drb.rb:1427:in `run' start:86:in `fork’
> 
> [http://gnufied.org](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

---

<div class="post-metadata">

**Author:** ![Babbu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@Babbu](https://www.ruby-forum.com/u/Babbu)\
**Post date:** [January 16, 2008, 10:08am UTC](https://www.ruby-forum.com/t/problem-with-backgroundrb/126007/4 "2008-01-16T10:08:49Z")

</div>

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).
