Quick tip for BackgrounDRb users

By lucasuyezu

Earlier today I was configuring BackgrounDRb, and I started to receive this error:

 

 

lucas@work:~$ script/backgroundrb start

        Starting BackgrounDRb …. 

/app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `initialize’: No such file or directory – /app/current/tmp/pids/backgroundrb_11006.pid (Errno::ENOENT)

        from /app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `open’

        from /app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `start’

        from /app/current/script/backgroundrb:35

After a little bit of hacking, I found that it tries to create the pid file, but fails if the directories are not created. Something I don’t understand is why the plugin doesn’t create it, since it is so simple.

So, if this problem ever happens to you, a simple mkdir RAILS_HOME/tmp/pids will save your life.

Tags: ,

One Response to “Quick tip for BackgrounDRb users”

  1. Jeff Powers Says:

    Thanks everyone for the great insight and post here.Its great when everyone can share ideas and expirence with others and when it makes a differnce as well.i will be making a contribution here as well.thanks

Leave a Reply