[Backgroundrb-devel] Error when starting bgrdb

Günter Ladwig gladwig at gmx.de
Wed Nov 22 09:45:31 EST 2006


Hi,

as I said I'm using bgdrb 0.2.0, which I just checked out yesterday.  
Ruby is the version that came with OS X: ruby 1.8.2 (2004-12-25)  
[powerpc-darwin8.0]. Rails is version 1.1.6.

Alright, seems Ruby is the problem. I checked the latest source code  
and format_message is called with a Time object, instead of a String  
object as in 1.8.2. Seems they changed that. Never a good idea to  
override internal methods ;)

Just installed Ruby 1.8.4 and now it works. Maybe add that to the  
readme?

Günter


On 22.11.2006, at 14:53, Michael D'Auria wrote:

> Could you give us some version information?
>
> On 11/22/06, Günter Ladwig <gladwig at gmx.de> wrote:
> On 22.11.2006, at 13:08, hemant wrote:
>
> > On 11/22/06, Günter Ladwig <gladwig at gmx.de> wrote:
> >> Hi,
> >>
> >> I get this error when starting bgdrb using "rake
> >> backgroundrb:start" (on a Mac using bgdrb 0.2.0):
> >>
> >> /Users/gl/Projects/xxxxx/xxxxx/vendor/plugins/backgroundrb/server/
> >> lib/
> >> backgroundrb_server.rb:33:in `format_message': undefined method
> >> `strftime' for "2006-11-22T12:34:18.524572 ":String (NoMethodError)
> >>          from /usr/lib/ruby/1.8/logger.rb:320:in `add'
> >>          from /usr/lib/ruby/1.8/logger.rb:372:in `info'
> >>          from /Users/gl/Projects/xxxxx/xxxxx/vendor/plugins/
> >> backgroundrb/server/lib/backgroundrb_server.rb:133:in `config'
> >>          from /Users/gl/Projects/xxxxx/xxxxx/vendor/plugins/
> >> backgroundrb/server/lib/backgroundrb_server.rb:193:in `run'
> >>          from /Users/gl/Projects/xxxxx/xxxxx/config/../script/
> >> backgroundrb:29
> >>
> >> Seems strftime is called on a String object instead of DateTime/ 
> Time.
> >> Any ideas?
> >>
> >> Günter
> >> _______________________________________________
> >> Backgroundrb-devel mailing list
> >> Backgroundrb-devel at rubyforge.org
> >> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
> >>
> >
> > I thought rake backgroundrb:start was not stable/usable yet. Did you
> > try ./script/backgoundrb start ?
>
> Well, according to the readme it should work. Anyway, I tried
> starting the server using "./script/backgroundrb start", but that
> produces the same error. For that matter, even "./script/backgroundrb
> --help" does not work.
>
> I had a look at logger.rb from the Ruby installation, and it seems
> format_message, which is overriden in backgroundrb_server.rb, is
> called with a String as a timestamp. I'm just wondering why it's
> working for everybody else.
>
> Günter
>
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>



More information about the Backgroundrb-devel mailing list