[Umlaut-general] New error

Ross Singer rossfsinger at gmail.com
Sun Feb 13 20:55:58 EST 2011


Hmm, the proxy error seems to be related to something killing the
mongrel process on that particular port.  When Georgia Tech first
rolled out the Umlaut (5 years ago, or whatever), we had a similar
problem where requests from EBSCO contained invalid characters in the
HTTP request which would systematically shut down the mongrel server
that received the request until there were no mongrels left running in
the pack (which resulted in a complete denial of service).  EBSCO was
our largest supplier of databases, so this was pretty catastrophic.

I think that the mongrel problem you're seeing is /unrelated/ to the
TemplateError (I suppose the template could be serving up something
that's causing the mongrel server to crash, but it seems unlikely).

It might be worth switching to thin
(http://code.macournoyer.com/thin/) or Passenger and seeing if that
helps at all for the backend service (it shouldn't affect the original
error at all, though, unfortunately).

-Ross.

On Sun, Feb 13, 2011 at 5:56 PM, Poulter,   Dale
<dale.poulter at vanderbilt.edu> wrote:
> There does seem to be a pattern but I have not isolated it yet.  Here is an example
>
> http://umlaut.library.vanderbilt.edu/resolve?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2011-02-13T16:43:09IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-crossref&rft_val_fmt=info:ofi/fmt:kev:mtx:&rft.genre=article&rft.atitle=Annotated%20Patent%20Selections&rft.jtitle=Expert%20Opinion%20on%20Therapeutic%20Patents&rft.btitle=&rft.aulast=null&rft.auinit=&rft.auinit1=&rft.auinitm=&rft.ausuffix=&rft.au=null&rft.aucorp=&rft.date=2003&rft.volume=13&rft.issue=3&rft.part=&rft.quarter=&rft.ssn=&rft.spage=353&rft.epage=372&rft.pages=&rft.artnum=&rft.issn=1354-3776&rft.eissn=&rft.isbn=&rft.sici=&rft.coden=&rft_id=info:doi/10.1517/eotp.13.3.353.21334&rft_dat=%3Ccrossref%3E10.1517/eotp.13.3.353.21334%3C/crossref%3E&rft.eisbn=
>
>
> This generates the error below in the production.log but also generate a proxy error (see below) in the apache log.
>
> [Sun Feb 13 16:53:35 2011] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 0.0.0.0:4001 (0.0.0.0) failed
> [Sun Feb 13 16:53:35 2011] [error] ap_proxy_connect_backend disabling worker for (0.0.0.0)
> [Sun Feb 13 16:53:35 2011] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 0.0.0.0:4002 (0.0.0.0) failed
> [Sun Feb 13 16:53:35 2011] [error] ap_proxy_connect_backend disabling worker for (0.0.0.0)
>
>
> -----Original Message-----
> From: umlaut-general-bounces at rubyforge.org [mailto:umlaut-general-bounces at rubyforge.org] On Behalf Of Jonathan Rochkind
> Sent: Wednesday, February 09, 2011 8:11 AM
> To: umlaut-general at rubyforge.org
> Subject: Re: [Umlaut-general] New error
>
> Hmm, that's not good, sorry about that. I'm not entirely sure what's causing that. The stack trace is sadly not giving us the actual specific Service class that it's complaining does not have a #service_types_generated method even though it needs one.
>
> Can you reproduce on demand, or is this something that just happens intermittently?
>
> I am away at a conference this week, but when I'm back next week I will assist you in debugging any way I can.
> ________________________________________
> From: umlaut-general-bounces at rubyforge.org [umlaut-general-bounces at rubyforge.org] On Behalf Of Poulter,   Dale [dale.poulter at Vanderbilt.Edu]
> Sent: Tuesday, February 08, 2011 7:25 PM
> To: umlaut-general at rubyforge.org
> Subject: [Umlaut-general] New error
>
> Umlaut has been working well, and we went into production with Umlaut this morning.  However,  I am now seeing the error below.  It seems to point to a template file but the file has not changed.  Any suggestions?
>
>
>
> [08 Feb 18:19:12] (pid:23818) FATAL: ActionView::TemplateError (service_types_generated() must be implemented by Service concrete sub-class!) on line #12 of resolve/_service_errors.rhtml:
> 9:         <ul>
> 10:           <% failed_dispatches.each do | dispatch | %>
> 11:             <li class="smallText">
> 12:             Some <i><%= dispatch.service.service_types_generated.collect { |type|
> 13:                type.display_name_pluralize.downcase}.join(",") %></i>
> 14:              from <a class="simple_visible_toggle"><strong><%= dispatch.service.display_name %>  </strong> </a>
> 15:               <% exception_info = dispatch.exception_info %>
>
>    lib/service.rb:84:in `service_types_generated'
>    app/views/resolve/_service_errors.rhtml:12:in `_run_erb_47app47views47resolve47_service_errors46rhtml'
>    app/views/resolve/_service_errors.rhtml:10:in `each'
>    app/views/resolve/_service_errors.rhtml:10:in `_run_erb_47app47views47resolve47_service_errors46rhtml'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/base.rb:342:in `send'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/base.rb:342:in `execute'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/template_handlers/compilable.rb:29:in `send'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/template_handlers/compilable.rb:29:in `render'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/partial_template.rb:20:in `render'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:30:in `benchmark'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/partial_template.rb:19:in `render'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/template.rb:22:in `render_template'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/partials.rb:110:in `render_partial'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/base.rb:277:in `render'
>    app/views/resolve/index.rhtml:61:in `_run_erb_47app47views47resolve47index46rhtml'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/base.rb:342:in `send'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/base.rb:342:in `execute'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/template_handlers/compilable.rb:29:in `send'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/template_handlers/compilable.rb:29:in `render'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/template.rb:35:in `render'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/template.rb:22:in `render_template'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_view/base.rb:248:in `render_file'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1112:in `render_for_file'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:872:in `render_with_no_layout'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/layout.rb:251:in `render_without_benchmark'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:51:in `render'
>    /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:51:in `render'
>    app/controllers/resolve_controller.rb:165:in `index'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `send'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in `perform_action_without_filters'
>   /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:579:in `call_filters'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
>    /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
>    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
>    /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/query_cache.rb:8:in `cache'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `send'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in `process_without_filters'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in `process'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in `process'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in `handle_request'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in `dispatch'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `synchronize'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in `dispatch'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
>    /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in `dispatch'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
>    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
>    /usr/local/bin/mongrel_rails:19:in `load'
>    /usr/local/bin/mongrel_rails:19
>
> [08 Feb 18:19:12] (pid:23818) INFO: Rendering template within local/vu_resolve.rhtml
> [08 Feb 18:19:12] (pid:23818) INFO: Rendering error/resolve_error (500)
>
> --Dale
>
> ---------------------------------------
> Dale Poulter
> Automation Coordinator
> Library Information Technology Services
> Vanderbilt University
> 419 21st Avenue South, Room 812
> Nashville, TN  37203-2427
> (615)343-5388
> (615)343-8834 (fax)
> (615)207-9705 (cell)
> dale.poulter at vanderbilt.edu<mailto:dale.poulter at vanderbilt.edu>
>
> _______________________________________________
> Umlaut-general mailing list
> Umlaut-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/umlaut-general
> _______________________________________________
> Umlaut-general mailing list
> Umlaut-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/umlaut-general
>


More information about the Umlaut-general mailing list