librelist archives

« back to archive

vegas error after update

vegas error after update

From:
Adam Tucker
Date:
2010-01-11 @ 19:06
I updated the resque gem, which installed vegas automatically.  I installed
thin manually, but now I'm getting this:

resque-web -p 8081
/usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:15: undefined
method `strip' for nil:NilClass (NoMethodError)
        from
/usr/local/lib/ruby/gems/1.8/gems/vegas-0.1.3/lib/vegas/runner.rb:48:in
`call'
        from
/usr/local/lib/ruby/gems/1.8/gems/vegas-0.1.3/lib/vegas/runner.rb:48:in
`initialize'
        from
/usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:13:in `new'
        from
/usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:13
        from /usr/local/bin/resque-web:19:in `load'
        from /usr/local/bin/resque-web:19

Running rails 2.3.5.

-Adam

Re: [resque] vegas error after update

From:
Aaron Quint
Date:
2010-01-11 @ 19:35
D'oh - I dont know how that strip got in there. Just pushed a 3
character fix to my fork:
http://github.com/quirkey/resque/tree/nil-fix
--AQ


On Mon, Jan 11, 2010 at 2:06 PM, Adam Tucker <adam.j.tucker@gmail.com> wrote:
> I updated the resque gem, which installed vegas automatically.  I installed
> thin manually, but now I'm getting this:
> resque-web -p 8081
> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:15: undefined
> method `strip' for nil:NilClass (NoMethodError)
>         from
> /usr/local/lib/ruby/gems/1.8/gems/vegas-0.1.3/lib/vegas/runner.rb:48:in
> `call'
>         from
> /usr/local/lib/ruby/gems/1.8/gems/vegas-0.1.3/lib/vegas/runner.rb:48:in
> `initialize'
>         from
> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:13:in `new'
>         from
> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:13
>         from /usr/local/bin/resque-web:19:in `load'
>         from /usr/local/bin/resque-web:19
> Running rails 2.3.5.
> -Adam

Re: [resque] vegas error after update

From:
Chris Wanstrath
Date:
2010-01-11 @ 19:38
1.3.1 is now released to Gemcutter with Aaron's fix.

On Mon, Jan 11, 2010 at 11:35 AM, Aaron Quint <aaron@quirkey.com> wrote:
> D'oh - I dont know how that strip got in there. Just pushed a 3
> character fix to my fork:
> http://github.com/quirkey/resque/tree/nil-fix
> --AQ
>
>
> On Mon, Jan 11, 2010 at 2:06 PM, Adam Tucker <adam.j.tucker@gmail.com> wrote:
>> I updated the resque gem, which installed vegas automatically.  I installed
>> thin manually, but now I'm getting this:
>> resque-web -p 8081
>> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:15: undefined
>> method `strip' for nil:NilClass (NoMethodError)
>>         from
>> /usr/local/lib/ruby/gems/1.8/gems/vegas-0.1.3/lib/vegas/runner.rb:48:in
>> `call'
>>         from
>> /usr/local/lib/ruby/gems/1.8/gems/vegas-0.1.3/lib/vegas/runner.rb:48:in
>> `initialize'
>>         from
>> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:13:in `new'
>>         from
>> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:13
>>         from /usr/local/bin/resque-web:19:in `load'
>>         from /usr/local/bin/resque-web:19
>> Running rails 2.3.5.
>> -Adam
>



-- 
Chris Wanstrath
http://github.com/defunkt

Re: [resque] vegas error after update

From:
Adam Tucker
Date:
2010-01-11 @ 19:51
Thanks! Works fine now, the only weird thing I noticed was that I get an
error if I don't launch it as root.

open: Failed to open /dev/console
: Permission denied

Will that affect functionality?  I have it running on Red Hat Enterprise
Linux ES release 4 (Nahant Update 5) if that helps.

On Mon, Jan 11, 2010 at 2:38 PM, Chris Wanstrath <chris@ozmm.org> wrote:

> 1.3.1 is now released to Gemcutter with Aaron's fix.
>
> On Mon, Jan 11, 2010 at 11:35 AM, Aaron Quint <aaron@quirkey.com> wrote:
> > D'oh - I dont know how that strip got in there. Just pushed a 3
> > character fix to my fork:
> > http://github.com/quirkey/resque/tree/nil-fix
> > --AQ
> >
> >
> > On Mon, Jan 11, 2010 at 2:06 PM, Adam Tucker <adam.j.tucker@gmail.com>
> wrote:
> >> I updated the resque gem, which installed vegas automatically.  I
> installed
> >> thin manually, but now I'm getting this:
> >> resque-web -p 8081
> >> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:15:
> undefined
> >> method `strip' for nil:NilClass (NoMethodError)
> >>         from
> >> /usr/local/lib/ruby/gems/1.8/gems/vegas-0.1.3/lib/vegas/runner.rb:48:in
> >> `call'
> >>         from
> >> /usr/local/lib/ruby/gems/1.8/gems/vegas-0.1.3/lib/vegas/runner.rb:48:in
> >> `initialize'
> >>         from
> >> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:13:in
> `new'
> >>         from
> >> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:13
> >>         from /usr/local/bin/resque-web:19:in `load'
> >>         from /usr/local/bin/resque-web:19
> >> Running rails 2.3.5.
> >> -Adam
> >
>
>
>
> --
> Chris Wanstrath
> http://github.com/defunkt
>

Re: [resque] vegas error after update

From:
Aaron Quint
Date:
2010-01-11 @ 21:57
Vegas tries to launch a browser window for you using `open` on unix
based systems and `start`. The error you're seeing is probably because
the ruby process cant properly shell out to those tasks. It shouldn't
actually effect anything other than launching the browser wont work.
You can always start resque-web with -L which will never try to open
the browser.
--AQ



On Mon, Jan 11, 2010 at 2:51 PM, Adam Tucker <adam.j.tucker@gmail.com> wrote:
> Thanks! Works fine now, the only weird thing I noticed was that I get an
> error if I don't launch it as root.
> open: Failed to open /dev/console
> : Permission denied
> Will that affect functionality?  I have it running on Red Hat Enterprise
> Linux ES release 4 (Nahant Update 5) if that helps.
> On Mon, Jan 11, 2010 at 2:38 PM, Chris Wanstrath <chris@ozmm.org> wrote:
>>
>> 1.3.1 is now released to Gemcutter with Aaron's fix.
>>
>> On Mon, Jan 11, 2010 at 11:35 AM, Aaron Quint <aaron@quirkey.com> wrote:
>> > D'oh - I dont know how that strip got in there. Just pushed a 3
>> > character fix to my fork:
>> > http://github.com/quirkey/resque/tree/nil-fix
>> > --AQ
>> >
>> >
>> > On Mon, Jan 11, 2010 at 2:06 PM, Adam Tucker <adam.j.tucker@gmail.com>
>> > wrote:
>> >> I updated the resque gem, which installed vegas automatically.  I
>> >> installed
>> >> thin manually, but now I'm getting this:
>> >> resque-web -p 8081
>> >> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:15:
>> >> undefined
>> >> method `strip' for nil:NilClass (NoMethodError)
>> >>         from
>> >> /usr/local/lib/ruby/gems/1.8/gems/vegas-0.1.3/lib/vegas/runner.rb:48:in
>> >> `call'
>> >>         from
>> >> /usr/local/lib/ruby/gems/1.8/gems/vegas-0.1.3/lib/vegas/runner.rb:48:in
>> >> `initialize'
>> >>         from
>> >> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:13:in
>> >> `new'
>> >>         from
>> >> /usr/local/lib/ruby/gems/1.8/gems/resque-1.3.0/bin/resque-web:13
>> >>         from /usr/local/bin/resque-web:19:in `load'
>> >>         from /usr/local/bin/resque-web:19
>> >> Running rails 2.3.5.
>> >> -Adam
>> >
>>
>>
>>
>> --
>> Chris Wanstrath
>> http://github.com/defunkt
>
>

Re: [resque] vegas error after update

From:
Chris Wanstrath
Date:
2010-01-12 @ 00:55
On Mon, Jan 11, 2010 at 1:57 PM, Aaron Quint <aaron@quirkey.com> wrote:

> Vegas tries to launch a browser window for you using `open` on unix
> based systems and `start`. The error you're seeing is probably because
> the ruby process cant properly shell out to those tasks. It shouldn't
> actually effect anything other than launching the browser wont work.
> You can always start resque-web with -L which will never try to open
> the browser.

Is there a way to make not opening the browser the default?

-- 
Chris Wanstrath
http://github.com/defunkt

Re: [resque] vegas error after update

From:
Aaron Quint
Date:
2010-01-12 @ 02:39
Yes, buuuut then theres not currently a way _to_ launch the browser.
My thinking is as a bin, you're really using it as a tool to run
locally - if you want to run it on prod - wouldn't you want to specify
all the other options and run it with the config.ru anyway? If you're
running it locally launching the browser is pretty helpful.
--AQ

Aaron Quint
http://www.quirkey.com



On Mon, Jan 11, 2010 at 7:55 PM, Chris Wanstrath <chris@ozmm.org> wrote:
> On Mon, Jan 11, 2010 at 1:57 PM, Aaron Quint <aaron@quirkey.com> wrote:
>
>> Vegas tries to launch a browser window for you using `open` on unix
>> based systems and `start`. The error you're seeing is probably because
>> the ruby process cant properly shell out to those tasks. It shouldn't
>> actually effect anything other than launching the browser wont work.
>> You can always start resque-web with -L which will never try to open
>> the browser.
>
> Is there a way to make not opening the browser the default?
>
> --
> Chris Wanstrath
> http://github.com/defunkt
>