# PLZ HELP - ROR on Redhat Linux :: Problem with backgroundrb

**URL:** <https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328>\
**Category:** Rails\
**Created:** [October 15, 2009, 2:48am UTC](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328 "2009-10-15T02:48:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![learn\_ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Post date:** [October 15, 2009, 2:48am UTC](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328/1 "2009-10-15T02:48:24Z")

</div>

Hi,

I have successfully crossed all the hurdles to install Ruby on rails on  
a redhat 5 Linux based system.

But the last and the biggest hurdle i am facing at this moment is  
installing backgrounrb ☹

I followed all the steps from the [http://backgroundrb.rubyforge.org/](http://backgroundrb.rubyforge.org/)

1. sudo gem install chronic packet

2. script/plugin install svn://rubyforge.org/var/svn/backgroundrb  
[IMP:::: I had to drop from the step 2 and 3 from the  
[http://backgroundrb.rubyforge.org/](http://backgroundrb.rubyforge.org/) as the [deviavu.com](http://deviavu.com) system is no  
longer responding to me and and the git/piston are not supported on my  
system; dono what exactly are they ☹ ]

3. rake backgroundrb:setup  
— Successfully created the database.yml under config dir and  
worker dir under lib.

4. rake db:migrate

5. When started the backgroundrb, I got the following error:  
=======================================================================

# ./script/backgroundrb/start

# /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_support/depreca tion.rb:17: private method `warn' called for nil:NilClass (NoMethodError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_su pport/deprecation.rb:24:in `call’ from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active\_su pport/deprecation.rb:24:in `warn' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_rec ord/connection_adapters/abstract/connection_specification.rb:98:in `allow\_concur rency=’ from ./script/backgroundrb/start:67

MY GEM ENV’s

* * *

RubyGems Environment:

- RUBYGEMS VERSION: 1.3.4
- RUBY VERSION: 1.8.8 (2009-10-09 patchlevel -1) [x86\_64-linux]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
  - ruby
  - x86\_64-linux

- GEM PATHS:
  - /usr/local/lib/ruby/gems/1.8
  - /root/.gem/ruby/1.8

- GEM CONFIGURATION:
  - :update\_sources =\> true
  - :verbose =\> true
  - :benchmark =\> false
  - :backtrace =\> false
  - :bulk\_threshold =\> 1000

- REMOTE SOURCES:
  - [http://gems.rubyforge.org/](http://gems.rubyforge.org/)

* * *

---

<div class="post-metadata">

**Author:** ![learn\_ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Post date:** [October 15, 2009, 3:40am UTC](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328/2 "2009-10-15T03:40:26Z")

</div>

PLS HELP ME TO SOLVE THIS ISSUE

---

<div class="post-metadata">

**Author:** ![learn\_ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Post date:** [October 15, 2009, 9:18am UTC](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328/3 "2009-10-15T09:18:00Z")

</div>

before blaming backgroundrb, make sure your ruby application works in  
production mode & development mode. Then try to start backgroundrb;  
it tries load an instance of your rails application and the errors you  
see might be due to your application.

On Oct 15, 6:40 am, Sapna R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![learn\_ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Post date:** [October 15, 2009, 9:20am UTC](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328/4 "2009-10-15T09:20:54Z")

</div>

Mukund wrote:

> before blaming backgroundrb, make sure your ruby application works in  
> production mode & development mode. Then try to start backgroundrb;  
> it tries load an instance of your rails application and the errors you  
> see might be due to your application.
> 
> On Oct 15, 6:40ï¿½am, Sapna R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Well, my ruby application works pretty well, it just the background  
daemon killing my time… ☹

---

<div class="post-metadata">

**Author:** ![learn\_ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Post date:** [October 15, 2009, 9:20am UTC](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328/5 "2009-10-15T09:20:56Z")

</div>

Again, backgroundrb is now on Github. It clearly states on the  
website to use git to get the latest version.

git clone git://github.com/gnufied/backgroundrb.git (into your vendor/  
plugins directory)

To install git on Redhat? (do you mean fedora?). You can try

$ sudo yum install git

If that doesn’t work for you, download the source for Git from the web  
and build it locally. It isn’t that hard to do on Linux.

---

<div class="post-metadata">

**Author:** ![learn\_ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Post date:** [October 15, 2009, 9:29am UTC](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328/6 "2009-10-15T09:29:07Z")

</div>

Mukund wrote:

> Again, backgroundrb is now on Github. It clearly states on the  
> website to use git to get the latest version.
> 
> git clone git://github.com/gnufied/backgroundrb.git (into your vendor/  
> plugins directory)
> 
> To install git on Redhat? (do you mean fedora?). You can try
> 
> $ sudo yum install git
> 
> If that doesn’t work for you, download the source for Git from the web  
> and build it locally. It isn’t that hard to do on Linux.

Again after the whole day google search I just figured that out.  
Copied the package and the backgroundrb under vendor/plugins on my  
redhat server.

Now the real fun started…  
the git-hub points to the latest gem, but the one mentioned in the  
website is 0.1.6gem.  
Again after invading the whole google pages, I was able to get the 0.1.6  
gem package and then everything went well.

Now when I do the ./script/backgrounrb start, I have couple of issue  
I. I don’t see any logger lessages.  
II. Also, if I copy my worker file under lib/workers the backgroundrb  
fails by complaing about the dependencies ☹

## Snapshot from the background\_server\*.log

/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original _require': no such file to load -- log_worker (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
from  
/usr/local/lib/ruby/gems/1.8/gems/packet-0.1.15/bin/packet\_worker\_r  
unner:35:in `load_worker' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.15/bin/packet_worker_r unner:26:in`initialize’  
from  
/usr/local/lib/ruby/gems/1.8/gems/packet-0.1.15/bin/packet\_worker\_r  
unner:47:in `new’  
from  
/usr/local/lib/ruby/gems/1.8/gems/packet-0.1.15/bin/packet\_worker\_r  
unner:47

---

<div class="post-metadata">

**Author:** ![learn\_ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Post date:** [October 15, 2009, 9:31am UTC](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328/7 "2009-10-15T09:31:49Z")

</div>

Sapna R. wrote:

> Mukund wrote:
> 
> > Again, backgroundrb is now on Github. It clearly states on the  
> > website to use git to get the latest version.
> > 
> > git clone git://github.com/gnufied/backgroundrb.git (into your vendor/  
> > plugins directory)
> > 
> > To install git on Redhat? (do you mean fedora?). You can try
> > 
> > $ sudo yum install git
> > 
> > If that doesn’t work for you, download the source for Git from the web  
> > and build it locally. It isn’t that hard to do on Linux.
> 
> Again after the whole day google search I just figured that out.  
> Copied the package and the backgroundrb under vendor/plugins on my  
> redhat server.
> 
> Now the real fun started…  
> the git-hub points to the latest gem, but the one mentioned in the  
> website is 0.1.6gem.  
> Again after invading the whole google pages, I was able to get the 0.1.6  
> gem package and then everything went well.
> 
> Now when I do the ./script/backgrounrb start, I have couple of issue  
> I. I don’t see any logger lessages.  
> II. Also, if I copy my worker file under lib/workers the backgroundrb  
> fails by complaing about the dependencies ☹
> 
> ## Snapshot from the background\_server\*.log

By the way thanks a lot Mukund for your valuable response, I wish I had  
these details earlier today…

Can you please help me to get the above issue resolved?

---

<div class="post-metadata">

**Author:** ![learn\_ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@learn\_ruby](https://www.ruby-forum.com/u/learn_ruby)\
**Post date:** [October 15, 2009, 9:30am UTC](https://www.ruby-forum.com/t/plz-help-ror-on-redhat-linux-problem-with-backgroundrb/177328/8 "2009-10-15T09:30:19Z")

</div>

On Oct 15, 1:48 am, Sapna R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> pport/deprecation.rb:24:in `warn' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_rec ord/connection_adapters/abstract/connection_specification.rb:98:in `allow\_concur  
> rency=’  
> from ./script/backgroundrb/start:67

It looks like the root cause is that the version of backgroundrb you  
are trying to use is trying to access a deprecated setting in  
activerecord, and the deprecation warning mechanism is blowing up (I’d  
guess because the rails logger isn’t available). In this particular  
case that setting is now a setting with no effect so you could just  
comment it out from backgroundrb/start, however unless you know what  
you’re doing I’d really recommend that you get the latest version, as  
others have advised.

> =======================================================================
> 
> MY GEM ENV’s
> 
> * * *
> 
> RubyGems Environment:
> 
> - RUBYGEMS VERSION: 1.3.4
> - RUBY VERSION: 1.8.8 (2009-10-09 patchlevel -1) [x86\_64-linux]

Probably not relevant here, but I don’t think that ruby 1.8.8 is  
actually out yet.

Fred
