Raghu Srinivasan
2008-May-17 01:18 UTC
[Backgroundrb-devel] Can someone help with this error?
Hello all,
I get this intermittent error saying OpenURI::HTTPError. At the bottom of
the email is what is reported in my backgroundrb_server_<port>.log file.
The
process_netflix_reviews method is parsing (in the background)
Netflix''s RSS
feeds. This error also pretty much brings down the BDRb process and to
recover, I am forced to do a
./script/backgroundrb stop
./script/backgroundrb start
Once I''ve done this, it chugs along fine - even for the same URI it
crashed
on last. Until at some point in the future it barfs on another URI and I
need to restart BDRb... This has been happening on and off for several days
now.
Any pointers on what I am doing wrong?
Much appreciated - thanks!
Raghu
=====================================================/usr/lib/ruby/1.8/open-uri.rb:287:in
`open_http'': 500 Internal Server Error
(OpenURI::HTTPError)
from /usr/lib/ruby/1.8/open-uri.rb:626:in `buffer_open''
from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop''
from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch''
from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop''
from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri''
from /usr/lib/ruby/1.8/open-uri.rb:528:in `open''
from /usr/lib/ruby/1.8/open-uri.rb:30:in `open''
from
/home/raghus/public_html/feedflix.com/ff/lib/netflix.rb:467:in`process_netflix_reviews''
... 21 levels...
from
/usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:20:in
`run''
from /home/raghus/public_html/
feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/master_worker.rb:166:in`initialize''
from ./script/backgroundrb:42:in `new''
from ./script/backgroundrb:42
~
=====================================================-------------- next part
--------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080516/1827f18b/attachment.html>
Stevie Clifton
2008-May-17 12:34 UTC
[Backgroundrb-devel] Can someone help with this error?
Hey Raghu, Without seeing more of what''s going on in your code it''s hard to troubleshoot. Seeing a 500/503 is a pretty normal part of communicating with an external service, so you need to make sure you are rescuing that error. And what do you mean by "pretty much" bringing down the bdrb process? If you don''t rescue that error I would expect that your worker would die (disappear from your process list) but that your bdrb master worker would keep on running. Please post your worker code (or at least your process_netflix_reviews method) if you want troubleshooting help. stevie On Fri, May 16, 2008 at 9:18 PM, Raghu Srinivasan <raghu.srinivasan at gmail.com> wrote:> Hello all, > > I get this intermittent error saying OpenURI::HTTPError. At the bottom of > the email is what is reported in my backgroundrb_server_<port>.log file. The > process_netflix_reviews method is parsing (in the background) Netflix''s RSS > feeds. This error also pretty much brings down the BDRb process and to > recover, I am forced to do a > > ./script/backgroundrb stop > ./script/backgroundrb start > > Once I''ve done this, it chugs along fine - even for the same URI it crashed > on last. Until at some point in the future it barfs on another URI and I > need to restart BDRb... This has been happening on and off for several days > now. > > Any pointers on what I am doing wrong? > > Much appreciated - thanks! > > Raghu > > =====================================================> /usr/lib/ruby/1.8/open-uri.rb:287:in `open_http'': 500 Internal Server Error > (OpenURI::HTTPError) > from /usr/lib/ruby/1.8/open-uri.rb:626:in `buffer_open'' > from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'' > from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'' > from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'' > from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'' > from /usr/lib/ruby/1.8/open-uri.rb:528:in `open'' > from /usr/lib/ruby/1.8/open-uri.rb:30:in `open'' > from /home/raghus/public_html/feedflix.com/ff/lib/netflix.rb:467:in > `process_netflix_reviews'' > ... 21 levels... > from > /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:20:in > `run'' > from > /home/raghus/public_html/feedflix.com/ff/vendor/plugins/backgroundrb/server/lib/master_worker.rb:166:in > `initialize'' > from ./script/backgroundrb:42:in `new'' > from ./script/backgroundrb:42 > ~ > =====================================================> > > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel >