librelist archives

« back to archive

Resque web

Resque web

From:
Tute
Date:
2011-05-23 @ 10:42
I didn't have any error until I updated the gem. Then resque-web doesn't 
work any more.

mynewtv2@mynewtv2:~$ resque-web resque-web.rb
[2011-05-23 03:24:03 -0700] Starting 'resque-web'...
/usr/local/lib/ruby/1.9.1/open-uri.rb:346:in `open_http': 404 Not Found 
(OpenURI::HTTPError)
     from /usr/local/lib/ruby/1.9.1/open-uri.rb:769:in `buffer_open'
     from /usr/local/lib/ruby/1.9.1/open-uri.rb:203:in `block in open_loop'
     from /usr/local/lib/ruby/1.9.1/open-uri.rb:201:in `catch'
     from /usr/local/lib/ruby/1.9.1/open-uri.rb:201:in `open_loop'
     from /usr/local/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri'
     from /usr/local/lib/ruby/1.9.1/open-uri.rb:671:in `open'
     from /usr/local/lib/ruby/1.9.1/open-uri.rb:33:in `open'
     from 
/home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:142:in 
`port_open?'
     from 
/home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:159:in 
`check_for_running'
     from 
/home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:104:in 
`start'
     from 
/home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:77:in 
`initialize'
     from 
/home/mynewtv2/.gem/ruby/1.9.1/gems/resque-1.10.0/bin/resque-web:13:in `new'
     from 
/home/mynewtv2/.gem/ruby/1.9.1/gems/resque-1.10.0/bin/resque-web:13:in 
`<top (required)>'
     from /usr/local/bin/resque-web:19:in `load'
     from /usr/local/bin/resque-web:19:in `<main>'

In resque-web.rb there's nothing of importance:
Resque.redis = Redis.new(:db => 1)

When I try to access to my_server:5678, I get 
http://my_server:5678/overview/true/false 
<http://mynew.tv:5678/overview/true/false> and a message about


    Sinatra doesn't know this ditty.




Re: [resque] Resque web

From:
Chris Wanstrath
Date:
2011-05-23 @ 19:08
Anyone else having this problem? I wonder if it's Ruby 1.9 related…

On Mon, May 23, 2011 at 3:42 AM, Tute <tute.unique@gmail.com> wrote:
> I didn't have any error until I updated the gem. Then resque-web doesn't
> work any more.
>
> mynewtv2@mynewtv2:~$ resque-web resque-web.rb
> [2011-05-23 03:24:03 -0700] Starting 'resque-web'...
> /usr/local/lib/ruby/1.9.1/open-uri.rb:346:in `open_http': 404 Not Found
> (OpenURI::HTTPError)
>     from /usr/local/lib/ruby/1.9.1/open-uri.rb:769:in `buffer_open'
>     from /usr/local/lib/ruby/1.9.1/open-uri.rb:203:in `block in open_loop'
>     from /usr/local/lib/ruby/1.9.1/open-uri.rb:201:in `catch'
>     from /usr/local/lib/ruby/1.9.1/open-uri.rb:201:in `open_loop'
>     from /usr/local/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri'
>     from /usr/local/lib/ruby/1.9.1/open-uri.rb:671:in `open'
>     from /usr/local/lib/ruby/1.9.1/open-uri.rb:33:in `open'
>     from
> /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:142:in
> `port_open?'
>     from
> /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:159:in
> `check_for_running'
>     from
> /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:104:in
> `start'
>     from
> /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:77:in
> `initialize'
>     from
> /home/mynewtv2/.gem/ruby/1.9.1/gems/resque-1.10.0/bin/resque-web:13:in `new'
>     from
> /home/mynewtv2/.gem/ruby/1.9.1/gems/resque-1.10.0/bin/resque-web:13:in `<top
> (required)>'
>     from /usr/local/bin/resque-web:19:in `load'
>     from /usr/local/bin/resque-web:19:in `<main>'
>
> In resque-web.rb there's nothing of importance:
> Resque.redis = Redis.new(:db => 1)
>
> When I try to access to my_server:5678, I get
> http://my_server:5678/overview/true/false and a message about
>
> Sinatra doesn't know this ditty.
>
>
>
>

Re: [resque] Resque web

From:
Matt Duncan
Date:
2011-05-23 @ 19:12
If it helps, I haven't had any problems running it mounted in Rails 3.1
under 1.9.2 - haven't tried running it directly though.

On Mon, May 23, 2011 at 3:08 PM, Chris Wanstrath <chris@ozmm.org> wrote:

> Anyone else having this problem? I wonder if it's Ruby 1.9 related…
>
> On Mon, May 23, 2011 at 3:42 AM, Tute <tute.unique@gmail.com> wrote:
> > I didn't have any error until I updated the gem. Then resque-web doesn't
> > work any more.
> >
> > mynewtv2@mynewtv2:~$ resque-web resque-web.rb
> > [2011-05-23 03:24:03 -0700] Starting 'resque-web'...
> > /usr/local/lib/ruby/1.9.1/open-uri.rb:346:in `open_http': 404 Not Found
> > (OpenURI::HTTPError)
> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:769:in `buffer_open'
> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:203:in `block in
> open_loop'
> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:201:in `catch'
> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:201:in `open_loop'
> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri'
> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:671:in `open'
> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:33:in `open'
> >     from
> >
> /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:142:in
> > `port_open?'
> >     from
> >
> /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:159:in
> > `check_for_running'
> >     from
> >
> /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:104:in
> > `start'
> >     from
> > /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:77:in
> > `initialize'
> >     from
> > /home/mynewtv2/.gem/ruby/1.9.1/gems/resque-1.10.0/bin/resque-web:13:in
> `new'
> >     from
> > /home/mynewtv2/.gem/ruby/1.9.1/gems/resque-1.10.0/bin/resque-web:13:in
> `<top
> > (required)>'
> >     from /usr/local/bin/resque-web:19:in `load'
> >     from /usr/local/bin/resque-web:19:in `<main>'
> >
> > In resque-web.rb there's nothing of importance:
> > Resque.redis = Redis.new(:db => 1)
> >
> > When I try to access to my_server:5678, I get
> > http://my_server:5678/overview/true/false and a message about
> >
> > Sinatra doesn't know this ditty.
> >
> >
> >
> >
>

Re: [resque] Resque web

From:
Aaron Quint
Date:
2011-05-23 @ 19:32
Just tested on 1.9.2 and working fine. Could it be diff's in the
installed version of resque and resque-web? I know there have been
recent issues with changes to the uri() helper.

--AQ

On Mon, May 23, 2011 at 12:12 PM, Matt Duncan <mrduncan@gmail.com> wrote:
> If it helps, I haven't had any problems running it mounted in Rails 3.1
> under 1.9.2 - haven't tried running it directly though.
>
> On Mon, May 23, 2011 at 3:08 PM, Chris Wanstrath <chris@ozmm.org> wrote:
>>
>> Anyone else having this problem? I wonder if it's Ruby 1.9 related…
>>
>> On Mon, May 23, 2011 at 3:42 AM, Tute <tute.unique@gmail.com> wrote:
>> > I didn't have any error until I updated the gem. Then resque-web doesn't
>> > work any more.
>> >
>> > mynewtv2@mynewtv2:~$ resque-web resque-web.rb
>> > [2011-05-23 03:24:03 -0700] Starting 'resque-web'...
>> > /usr/local/lib/ruby/1.9.1/open-uri.rb:346:in `open_http': 404 Not Found
>> > (OpenURI::HTTPError)
>> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:769:in `buffer_open'
>> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:203:in `block in
>> > open_loop'
>> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:201:in `catch'
>> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:201:in `open_loop'
>> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri'
>> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:671:in `open'
>> >     from /usr/local/lib/ruby/1.9.1/open-uri.rb:33:in `open'
>> >     from
>> >
>> > /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:142:in
>> > `port_open?'
>> >     from
>> >
>> > /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:159:in
>> > `check_for_running'
>> >     from
>> >
>> > /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:104:in
>> > `start'
>> >     from
>> >
>> > /home/mynewtv2/.gem/ruby/1.9.1/gems/vegas-0.1.8/lib/vegas/runner.rb:77:in
>> > `initialize'
>> >     from
>> > /home/mynewtv2/.gem/ruby/1.9.1/gems/resque-1.10.0/bin/resque-web:13:in
>> > `new'
>> >     from
>> > /home/mynewtv2/.gem/ruby/1.9.1/gems/resque-1.10.0/bin/resque-web:13:in
>> > `<top
>> > (required)>'
>> >     from /usr/local/bin/resque-web:19:in `load'
>> >     from /usr/local/bin/resque-web:19:in `<main>'
>> >
>> > In resque-web.rb there's nothing of importance:
>> > Resque.redis = Redis.new(:db => 1)
>> >
>> > When I try to access to my_server:5678, I get
>> > http://my_server:5678/overview/true/false and a message about
>> >
>> > Sinatra doesn't know this ditty.
>> >
>> >
>> >
>> >
>
>

Re: [resque] Resque web

From:
Caius Durling
Date:
2011-05-23 @ 20:09
On 23 May 2011, at 20:08, Chris Wanstrath wrote:

> Anyone else having this problem? I wonder if it's Ruby 1.9 related…


I've seen it before. Bit hazy on the details, been meaning to reproduce it
but haven't touched it locally for a while.

Pretty sure it was when running resque-web inside a bundled rails app, but
running it from outside the app worked fine. Can't reproduce it now though
(of course) so might have been fixed. I seem to remember installing a 
later resque-web version locally since then.

Currently running resque-web v1.15.0 under ruby 1.8.7-p174.

C
---
Caius Durling
PizzaPowered
caius@pizzapowered.com
http://pizzapowered.com/