librelist archives

« back to archive

Running into a slight problem launching my resque queue; even though (at one point) it worked on my development enviornment.

Running into a slight problem launching my resque queue; even though (at one point) it worked on my development enviornment.

From:
David Parkinson
Date:
2011-05-19 @ 22:08
Hi folks:

I'm in love with resque and got it working locally; and then tried to deploy
to a production box.  Both machines are 10.04 Ubuntu LTS.  Here's the error
message I got on my production box.  This is using RVM and ruby 1.8.7 p-334.
 In addition, I have listed my gems below.  I tried googling for the error
message and didn't see anything.  Then I thought it might have to do with
the version of ruby 1.8.7 but ruby 1.8.7 resque doesn't seem to produce
results either.  I'd love any insights on this.  The only thing I can think
of is that my local box: 1) is not using rvm but rather the regular ubuntu
install of ruby and is ruby 1.8.7 patch 249.  And potentially different gem
versions of resque and redis-namespace.  But now the evil not working virus
has struck my local box and I get the same error there.


QUEUE=scraper RAILS_ENV=backend rake resque:work --trace

(in /var/www/dev1/releases/20110519010406)
** Invoke resque:work (first_time)
** Invoke resque:setup (first_time)
** Execute resque:setup
** Execute resque:work
rake aborted!
undefined method `get' for nil:NilClass

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.11/lib/active_support/whiny_nil.rb:52:in
`method_missing'


/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`send'


/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`method_missing'


/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:430:in
`processing'


/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:362:in
`unregister_worker'


/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:145:in
`work'


/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/tasks.rb:27

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:636:in
`call'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:636:in
`execute'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:631:in
`each'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:597:in
`invoke_with_call_chain'

/home/chasetoys/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/monitor.rb:242:in
`synchronize'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2001:in
`run'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:1998:in
`run'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/bin/rake:31

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/bin/rake:19:in `load'

/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/bin/rake:19





* running ruby 1.8.7... and resque 1.16.1




and


=David

--
http://www.davidparkinson.com
http://www.linkedin.com/in/davidcparkinson

Re: [resque] Running into a slight problem launching my resque queue; even though (at one point) it worked on my development enviornment.

From:
Sam Hamilton
Date:
2011-05-19 @ 22:18
David,
What version of the Redis gem are you using? I'm using Resque in 
production and ran into a similar problem whend using an older Redis gem 
when first deploying it. I don't remember the exact version that caused 
the problem but we have no issues with Resque 1.11.0 and Redis 2.1.1. 

- Sam

On Thursday, May 19, 2011 at 6:08 PM, David Parkinson wrote: 
> 
> Hi folks:
> 
> I'm in love with resque and got it working locally; and then tried to 
deploy to a production box. Both machines are 10.04 Ubuntu LTS. Here's the
error message I got on my production box. This is using RVM and ruby 1.8.7
p-334. In addition, I have listed my gems below. I tried googling for the 
error message and didn't see anything. Then I thought it might have to do 
with the version of ruby 1.8.7 but ruby 1.8.7 resque doesn't seem to 
produce results either. I'd love any insights on this. The only thing I 
can think of is that my local box: 1) is not using rvm but rather the 
regular ubuntu install of ruby and is ruby 1.8.7 patch 249. And 
potentially different gem versions of resque and redis-namespace. But now 
the evil not working virus has struck my local box and I get the same 
error there. 
> 
> 
> QUEUE=scraper RAILS_ENV=backend rake resque:work --trace 
> (in /var/www/dev1/releases/20110519010406)
> ** Invoke resque:work (first_time)
> ** Invoke resque:setup (first_time)
> ** Execute resque:setup
> ** Execute resque:work
> rake aborted!
> undefined method `get' for nil:NilClass
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.11/lib/active_support/whiny_nil.rb:52:in
`method_missing'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`send'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`method_missing'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:430:in
`processing'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:362:in
`unregister_worker'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:145:in
`work'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/tasks.rb:27
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:636:in
`call'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:636:in
`execute'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:631:in
`each'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:597:in
`invoke_with_call_chain'
> 
/home/chasetoys/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/monitor.rb:242:in
`synchronize'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2001:in
`run'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:1998:in
`run'
> /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/bin/rake:31
> /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/bin/rake:19:in `load'
> /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/bin/rake:19
> 
> 
> * running ruby 1.8.7... and resque 1.16.1 
> 
>  and
> 
> =David
> 
> --
> http://www.davidparkinson.com
> http://www.linkedin.com/in/davidcparkinson
> 

Re: Running into a slight problem launching my resque queue; even though (at one point) it worked on my development enviornment.

From:
David Parkinson
Date:
2011-05-19 @ 22:40
@Sam:  Thanks for the quick response!  May I inquire which version of ruby
you have running in production as well?

I also meant to include my gem list that I have in production in the
previous email.  Please see below.

gem list --local

*** LOCAL GEMS ***

aaronh-chronic (0.3.9)
actionmailer (2.3.11)
actionpack (2.3.11)
active_merchant (1.5.2)
activemodel (3.0.7)
activerecord (3.0.7, 2.3.11)
activeresource (2.3.11)
activesupport (3.0.7, 2.3.11)
arel (2.0.9)
builder (3.0.0, 2.1.2)
columnize (0.3.2)
gmail (0.4.0)
gmail_xoauth (0.3.0)
i18n (0.5.0)
json (1.4.6)
linecache (0.43)
mail (2.3.0)
mime (0.1)
mime-types (1.16)
money (3.6.1)
oauth (0.4.4)
paperclip (2.3.11)
paypal (2.0.0)
polyglot (0.3.1)
rack (1.2.2, 1.1.2)
rails (2.3.11)
rake (0.8.7)
redis (2.2.0)
redis-namespace (1.0.3, 1.0)
resque (1.16.1, 1.15.0)
rest-client (1.6.1)
ruby-debug (0.10.4)
ruby-debug-base (0.10.4)
ruby-gmail (0.2.1)
shared-mime-info (0.1)
simple-rss (1.2.3)
sinatra (1.2.6)
tilt (1.3)
treetop (1.4.9)
tzinfo (0.3.27)
vegas (0.1.8)
whenever (0.6.7)
will_paginate (2.3.15)
xml-simple (1.0.15)


=David

--
http://www.davidparkinson.com
http://www.linkedin.com/in/davidcparkinson


On Thu, May 19, 2011 at 3:08 PM, David Parkinson
<david@davidparkinson.com>wrote:

>
> Hi folks:
>
> I'm in love with resque and got it working locally; and then tried to
> deploy to a production box.  Both machines are 10.04 Ubuntu LTS.  Here's the
> error message I got on my production box.  This is using RVM and ruby 1.8.7
> p-334.  In addition, I have listed my gems below.  I tried googling for the
> error message and didn't see anything.  Then I thought it might have to do
> with the version of ruby 1.8.7 but ruby 1.8.7 resque doesn't seem to produce
> results either.  I'd love any insights on this.  The only thing I can think
> of is that my local box: 1) is not using rvm but rather the regular ubuntu
> install of ruby and is ruby 1.8.7 patch 249.  And potentially different gem
> versions of resque and redis-namespace.  But now the evil not working virus
> has struck my local box and I get the same error there.
>
>
> QUEUE=scraper RAILS_ENV=backend rake resque:work --trace
>
>
> (in /var/www/dev1/releases/20110519010406)
> ** Invoke resque:work (first_time)
> ** Invoke resque:setup (first_time)
> ** Execute resque:setup
> ** Execute resque:work
> rake aborted!
> undefined method `get' for nil:NilClass
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.11/lib/active_support/whiny_nil.rb:52:in
`method_missing'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`send'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`method_missing'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:430:in
`processing'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:362:in
`unregister_worker'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:145:in
`work'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/tasks.rb:27
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:636:in
`call'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:636:in
`execute'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:631:in
`each'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:597:in
`invoke_with_call_chain'
>
>
> 
/home/chasetoys/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/monitor.rb:242:in
`synchronize'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2001:in
`run'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:1998:in
`run'
>
>
> /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/bin/rake:31
>
>
> /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/bin/rake:19:in `load'
>
>
> /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/bin/rake:19
>
>
>
>
>
>
>
>
> * running ruby 1.8.7... and resque 1.16.1
>
>
>
>
>
>
> and
>
>
> =David
>
> --
> http://www.davidparkinson.com
> http://www.linkedin.com/in/davidcparkinson
>

Re: [resque] Re: Running into a slight problem launching my resque queue; even though (at one point) it worked on my development enviornment.

From:
Sam Hamilton
Date:
2011-05-20 @ 15:23
We are using 1.8.7-p302 in production.


- Sam

On Thursday, May 19, 2011 at 6:40 PM, David Parkinson wrote: 
> @Sam: Thanks for the quick response! May I inquire which version of ruby
you have running in production as well? 
> 
> I also meant to include my gem list that I have in production in the 
previous email. Please see below.
> 
> gem list --local
> 
> *** LOCAL GEMS ***
> 
> aaronh-chronic (0.3.9)
> actionmailer (2.3.11)
> actionpack (2.3.11)
> active_merchant (1.5.2)
> activemodel (3.0.7)
> activerecord (3.0.7, 2.3.11)
> activeresource (2.3.11)
> activesupport (3.0.7, 2.3.11)
> arel (2.0.9)
> builder (3.0.0, 2.1.2)
> columnize (0.3.2)
> gmail (0.4.0)
> gmail_xoauth (0.3.0)
> i18n (0.5.0)
> json (1.4.6)
> linecache (0.43)
> mail (2.3.0)
> mime (0.1)
> mime-types (1.16)
> money (3.6.1)
> oauth (0.4.4)
> paperclip (2.3.11)
> paypal (2.0.0)
> polyglot (0.3.1)
> rack (1.2.2, 1.1.2)
> rails (2.3.11)
> rake (0.8.7)
> redis (2.2.0)
> redis-namespace (1.0.3, 1.0)
> resque (1.16.1, 1.15.0)
> rest-client (1.6.1)
> ruby-debug (0.10.4)
> ruby-debug-base (0.10.4)
> ruby-gmail (0.2.1)
> shared-mime-info (0.1)
> simple-rss (1.2.3)
>  sinatra (1.2.6)
> tilt (1.3)
> treetop (1.4.9)
> tzinfo (0.3.27)
> vegas (0.1.8)
> whenever (0.6.7)
> will_paginate (2.3.15)
> xml-simple (1.0.15)
> 
> 
> =David
> 
> --
> http://www.davidparkinson.com
> http://www.linkedin.com/in/davidcparkinson
> 
> 
> On Thu, May 19, 2011 at 3:08 PM, David Parkinson 
<david@davidparkinson.com> wrote:
> > 
> > Hi folks:
> > 
> > I'm in love with resque and got it working locally; and then tried to 
deploy to a production box. Both machines are 10.04 Ubuntu LTS. Here's the
error message I got on my production box. This is using RVM and ruby 1.8.7
p-334. In addition, I have listed my gems below. I tried googling for the 
error message and didn't see anything. Then I thought it might have to do 
with the version of ruby 1.8.7 but ruby 1.8.7 resque doesn't seem to 
produce results either. I'd love any insights on this. The only thing I 
can think of is that my local box: 1) is not using rvm but rather the 
regular ubuntu install of ruby and is ruby 1.8.7 patch 249. And 
potentially different gem versions of resque and redis-namespace. But now 
the evil not working virus has struck my local box and I get the same 
error there. 
> > 
> > 
> > QUEUE=scraper RAILS_ENV=backend rake resque:work --trace 
> > (in /var/www/dev1/releases/20110519010406)
> > ** Invoke resque:work (first_time)
> > ** Invoke resque:setup (first_time)
> > ** Execute resque:setup
> > ** Execute resque:work
> > rake aborted!
> > undefined method `get' for nil:NilClass
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.11/lib/active_support/whiny_nil.rb:52:in
`method_missing'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`send'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`method_missing'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:430:in
`processing'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:362:in
`unregister_worker'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:145:in
`work'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/tasks.rb:27
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:636:in
`call'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:636:in
`execute'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:631:in
`each'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:597:in
`invoke_with_call_chain'
> > 
/home/chasetoys/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/monitor.rb:242:in
`synchronize'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2001:in
`run'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
> > 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:1998:in
`run'
> > /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/bin/rake:31
> > /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/bin/rake:19:in `load'
> > /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/bin/rake:19
> > 
> > 
> > * running ruby 1.8.7... and resque 1.16.1 
> > 
> >  and
> > 
> > =David
> > 
> > --
> > http://www.davidparkinson.com
> > http://www.linkedin.com/in/davidcparkinson
> > 
> 

Re: [resque] Re: Running into a slight problem launching my resque queue; even though (at one point) it worked on my development enviornment.

From:
David Parkinson
Date:
2011-05-20 @ 19:37
I think the issue is trying to run a different rails environment that I
created (other than development, or perhaps production) on the command line.
 The following both work:

RAILS_ENV=backend rake resque:work --trace
RAILS_ENV=backend RAILS_ENV=development rake resque:work --trace

But when I try:
QUEUE=scraper RAILS_ENV=backend rake resque:work --trace

I get the error below.  My config/enviornments/backend.rb is below (I have
tried cloning exactly what is in /enviornments/production.rb AND
/enviornments/development.rb).  I'll include it below:
 1 # Settings specified here will take precedence over those in
config/environment.rb
  2
  3 # In the development environment your application's code is reloaded on
  4 # every request.  This slows down response time but is perfect for
development
  5 # since you don't have to restart the webserver when you make code
changes.
  6 config.cache_classes = false
  7
  8 # Log error messages when you accidentally call methods on nil.
  9 config.whiny_nils = true
 10
 11 # Show full error reports and disable caching
 12 config.action_controller.consider_all_requests_local = true
 13 config.action_controller.perform_caching             = false
 14 config.action_view.debug_rjs                         = true
 15
 16 # Don't care if the mailer can't send
 17 config.action_mailer.raise_delivery_errors = false
 18 config.action_mailer.default_url_options = { :host => "localhost:3000" }


And here is the error message again.

OTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem::SourceIndex#all_gems called from
/usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256
.
** Invoke resque:work (first_time)
** Invoke resque:setup (first_time)
** Execute resque:setup
** Execute resque:work
rake aborted!
undefined method `get' for nil:NilClass
/usr/lib/ruby/gems/1.8/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`send'
/usr/lib/ruby/gems/1.8/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`method_missing'
/usr/lib/ruby/gems/1.8/gems/resque-1.16.1/lib/resque/worker.rb:430:in
`processing'
/usr/lib/ruby/gems/1.8/gems/resque-1.16.1/lib/resque/worker.rb:362:in
`unregister_worker'
/usr/lib/ruby/gems/1.8/gems/resque-1.16.1/lib/resque/worker.rb:145:in `work'
/usr/lib/ruby/gems/1.8/gems/resque-1.16.1/lib/resque/tasks.rb:27
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:205:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:205:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:200:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:200:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:158:in
`invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:151:in
`invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/task.rb:144:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:112:in
`invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:90:in
`top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:90:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:90:in
`top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:129:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:84:in
`top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:62:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:129:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/lib/rake/application.rb:59:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.9.0/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Tasks: TOP => resque:work


Finally here are my bundled gems:
bundle show
NOTE: Gem::SourceIndex#all_gems is deprecated with no replacement. It will
be removed on or after 2011-10-01.
Gem::SourceIndex#all_gems called from
/usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:256
.
Gems included by the bundle:
  * SystemTimer (1.2.3)
  * aaronh-chronic (0.3.9)
  * actionmailer (2.3.11)
  * actionpack (2.3.11)
  * activerecord (2.3.11)
  * activeresource (2.3.11)
  * activesupport (2.3.11)
  * bundler (1.0.13)
  * columnize (0.3.2)
  * i18n (0.5.0)
  * json (1.5.1)
  * linecache (0.43)
  * mail (2.3.0)
  * mime (0.1)
  * mime-types (1.16)
  * money (3.6.1)
  * mysql (2.8.1)
  * paperclip (2.3.11)
  * paypal (2.0.0)
  * polyglot (0.3.1)
  * rack (1.1.2)
  * rails (2.3.11)
  * rake (0.9.0)
  * rdoc (3.6.1)
  * redis (2.2.0)
  * redis-namespace (1.0.3)
  * resque (1.16.1)
  * rest-client (1.6.1)
  * ruby-debug (0.10.4)
  * ruby-debug-base (0.10.4)
  * ruby-gmail (0.2.1)
  * shared-mime-info (0.1)
  * simple-rss (1.2.3)
  * sinatra (1.2.6)
  * tilt (1.3)
  * treetop (1.4.9)
  * vegas (0.1.8)
  * whenever (0.6.7)
  * will_paginate (2.3.15)
  * xml-simple (1.0.15)
  * yajl-ruby (0.8.2)


=David

--
http://www.davidparkinson.com
http://www.linkedin.com/in/davidcparkinson


On Fri, May 20, 2011 at 8:23 AM, Sam Hamilton <samilton@gmail.com> wrote:

>  We are using 1.8.7-p302 in production.
>
>
> - Sam
>
> On Thursday, May 19, 2011 at 6:40 PM, David Parkinson wrote:
>
> @Sam:  Thanks for the quick response!  May I inquire which version of ruby
> you have running in production as well?
>
> I also meant to include my gem list that I have in production in the
> previous email.  Please see below.
>
> gem list --local
>
> *** LOCAL GEMS ***
>
> aaronh-chronic (0.3.9)
> actionmailer (2.3.11)
> actionpack (2.3.11)
> active_merchant (1.5.2)
> activemodel (3.0.7)
> activerecord (3.0.7, 2.3.11)
> activeresource (2.3.11)
> activesupport (3.0.7, 2.3.11)
> arel (2.0.9)
> builder (3.0.0, 2.1.2)
> columnize (0.3.2)
> gmail (0.4.0)
> gmail_xoauth (0.3.0)
> i18n (0.5.0)
> json (1.4.6)
> linecache (0.43)
> mail (2.3.0)
> mime (0.1)
> mime-types (1.16)
> money (3.6.1)
> oauth (0.4.4)
> paperclip (2.3.11)
> paypal (2.0.0)
> polyglot (0.3.1)
> rack (1.2.2, 1.1.2)
> rails (2.3.11)
> rake (0.8.7)
> redis (2.2.0)
> redis-namespace (1.0.3, 1.0)
> resque (1.16.1, 1.15.0)
> rest-client (1.6.1)
> ruby-debug (0.10.4)
> ruby-debug-base (0.10.4)
> ruby-gmail (0.2.1)
> shared-mime-info (0.1)
> simple-rss (1.2.3)
>  sinatra (1.2.6)
> tilt (1.3)
> treetop (1.4.9)
> tzinfo (0.3.27)
> vegas (0.1.8)
> whenever (0.6.7)
> will_paginate (2.3.15)
> xml-simple (1.0.15)
>
>
> =David
>
> --
> http://www.davidparkinson.com
> http://www.linkedin.com/in/davidcparkinson
>
>
> On Thu, May 19, 2011 at 3:08 PM, David Parkinson <david@davidparkinson.com
> > wrote:
>
>
> Hi folks:
>
> I'm in love with resque and got it working locally; and then tried to
> deploy to a production box.  Both machines are 10.04 Ubuntu LTS.  Here's the
> error message I got on my production box.  This is using RVM and ruby 1.8.7
> p-334.  In addition, I have listed my gems below.  I tried googling for the
> error message and didn't see anything.  Then I thought it might have to do
> with the version of ruby 1.8.7 but ruby 1.8.7 resque doesn't seem to produce
> results either.  I'd love any insights on this.  The only thing I can think
> of is that my local box: 1) is not using rvm but rather the regular ubuntu
> install of ruby and is ruby 1.8.7 patch 249.  And potentially different gem
> versions of resque and redis-namespace.  But now the evil not working virus
> has struck my local box and I get the same error there.
>
>
> QUEUE=scraper RAILS_ENV=backend rake resque:work --trace
>
>
>
>
> (in /var/www/dev1/releases/20110519010406)
> ** Invoke resque:work (first_time)
> ** Invoke resque:setup (first_time)
> ** Execute resque:setup
> ** Execute resque:work
> rake aborted!
> undefined method `get' for nil:NilClass
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.11/lib/active_support/whiny_nil.rb:52:in
`method_missing'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`send'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in
`method_missing'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:430:in
`processing'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:362:in
`unregister_worker'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/worker.rb:145:in
`work'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/resque-1.16.1/lib/resque/tasks.rb:27
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:636:in
`call'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:636:in
`execute'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:631:in
`each'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:631:in
`execute'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:597:in
`invoke_with_call_chain'
>
>
>
>
> 
/home/chasetoys/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/monitor.rb:242:in
`synchronize'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:590:in
`invoke_with_call_chain'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:583:in
`invoke'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2051:in
`invoke_task'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`each'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2029:in
`top_level'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2023:in
`top_level'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2001:in
`run'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
>
>
>
>
> 
/home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/lib/rake.rb:1998:in
`run'
>
>
>
>
> /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/gems/rake-0.8.7/bin/rake:31
>
>
>
>
> /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/bin/rake:19:in `load'
>
>
>
>
> /home/chasetoys/.rvm/gems/ruby-1.8.7-p334/bin/rake:19
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> * running ruby 1.8.7... and resque 1.16.1
>
>
>
>
>
>
>
>
>
>
> and
>
>
> =David
>
> --
> http://www.davidparkinson.com
> http://www.linkedin.com/in/davidcparkinson
>
>
>
>

Re: [resque] Re: Running into a slight problem launching my resque queue; even though (at one point) it worked on my development enviornment.

From:
Chris Wanstrath
Date:
2011-05-21 @ 18:47
On Fri, May 20, 2011 at 12:37 PM, David Parkinson
<david@davidparkinson.com> wrote:

> QUEUE=scraper RAILS_ENV=backend rake resque:work --trace

Are you loading your Rails environment somehow? If not, you need to
include the `environment` task:

$ QUEUE=scraper RAILS_ENV=backend rake environment resque:work

Also, do you have a "backend" section in your redis.yml?

Re: [resque] Re: Running into a slight problem launching my resque queue; even though (at one point) it worked on my development enviornment.

From:
David Parkinson
Date:
2011-05-27 @ 21:57
I've since fixed this bug; I think it was due to not having the
backend environment in the redis.yml.   And now I have it working in
production.  THANK YOU to the creators of resque.  I am *in love* with this
software and especially the web interface.  It really helped me to not have
to implement everything in threads.

Also thanks for setting up this great mailing list.

=David

--
http://www.davidparkinson.com
http://www.linkedin.com/in/davidcparkinson


On Sat, May 21, 2011 at 11:47 AM, Chris Wanstrath <chris@ozmm.org> wrote:

> On Fri, May 20, 2011 at 12:37 PM, David Parkinson
> <david@davidparkinson.com> wrote:
>
> > QUEUE=scraper RAILS_ENV=backend rake resque:work --trace
>
> Are you loading your Rails environment somehow? If not, you need to
> include the `environment` task:
>
> $ QUEUE=scraper RAILS_ENV=backend rake environment resque:work
>
> Also, do you have a "backend" section in your redis.yml?
>