Exception happened during processing of request from ('127.0.0.1'...

1,552 views
Skip to first unread message

John Lorance

unread,
Oct 12, 2009, 12:32:02 AM10/12/09
to TurboGears
Running TG 2.0.3 on Ubuntu 9.x with Python 2.6 and getting this
following error message in my paster output log periodically. Nothing
else before or after is displaying as anomalous. Thoughts?

----------------------------------------
Exception happened during processing of request from ('127.0.0.1',
53845)
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/Paste-1.7.2-py2.6.egg/
paste/httpserver.py", line 1062, in process_request_in_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.6/SocketServer.py", line 320, in
finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.6/SocketServer.py", line 615, in __init__
self.handle()
File "/usr/local/lib/python2.6/dist-packages/Paste-1.7.2-py2.6.egg/
paste/httpserver.py", line 436, in handle
BaseHTTPRequestHandler.handle(self)
File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle
self.handle_one_request()
File "/usr/local/lib/python2.6/dist-packages/Paste-1.7.2-py2.6.egg/
paste/httpserver.py", line 431, in handle_one_request
self.wsgi_execute()
File "/usr/local/lib/python2.6/dist-packages/Paste-1.7.2-py2.6.egg/
paste/httpserver.py", line 287, in wsgi_execute
self.wsgi_start_response)
File "/usr/local/lib/python2.6/dist-packages/Paste-1.7.2-py2.6.egg/
paste/cascade.py", line 130, in __call__
return self.apps[-1](environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/Paste-1.7.2-py2.6.egg/
paste/registry.py", line 350, in __call__
app_iter = self.application(environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.7-py2.6.egg/
pylons/middleware.py", line 214, in __call__
self.app, new_environ, catch_exc_info=True)
File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.7-py2.6.egg/
pylons/util.py", line 94, in call_wsgi_application
app_iter = application(environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/WebError-0.10.1-
py2.6.egg/weberror/errormiddleware.py", line 156, in __call__
return self.application(environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/TurboGears2-2.0.3-
py2.6.egg/tg/configuration.py", line 655, in wrapper
return app(environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/TurboGears2-2.0.3-
py2.6.egg/tg/configuration.py", line 555, in remover
return app(environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/repoze.tm2-1.0a4-
py2.6.egg/repoze/tm/__init__.py", line 19, in __call__
result = self.application(environ, save_status_and_headers)
File "/usr/local/lib/python2.6/dist-packages/repoze.who-1.0.15-
py2.6.egg/repoze/who/middleware.py", line 107, in __call__
app_iter = app(environ, wrapper.wrap_start_response)
File "/usr/local/lib/python2.6/dist-packages/ToscaWidgets-0.9.7.2-
py2.6.egg/tw/core/middleware.py", line 36, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/ToscaWidgets-0.9.7.2-
py2.6.egg/tw/core/middleware.py", line 59, in wsgi_app
resp = req.get_response(self.application)
File "build/bdist.linux-x86_64/egg/webob/__init__.py", line 1325, in
get_response
application, catch_exc_info=False)
File "build/bdist.linux-x86_64/egg/webob/__init__.py", line 1293, in
call_application
app_iter = application(self.environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/ToscaWidgets-0.9.7.2-
py2.6.egg/tw/core/resource_injector.py", line 67, in _injector
resp = req.get_response(app)
File "build/bdist.linux-x86_64/egg/webob/__init__.py", line 1325, in
get_response
application, catch_exc_info=False)
File "build/bdist.linux-x86_64/egg/webob/__init__.py", line 1293, in
call_application
app_iter = application(self.environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/Beaker-1.4.3dev-
py2.6.egg/beaker/middleware.py", line 73, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/Beaker-1.4.3dev-
py2.6.egg/beaker/middleware.py", line 152, in __call__
return self.wrap_app(environ, session_start_response)
File "/usr/local/lib/python2.6/dist-packages/Routes-1.10.3-py2.6.egg/
routes/middleware.py", line 130, in __call__
response = self.app(environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.7-py2.6.egg/
pylons/wsgiapp.py", line 125, in __call__
response = self.dispatch(controller, environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.7-py2.6.egg/
pylons/wsgiapp.py", line 324, in dispatch
return controller(environ, start_response)
File "/var/www/preg/prod/aha2/lib/base.py", line 32, in __call__
return TGController.__call__(self, environ, start_response)
File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.7-py2.6.egg/
pylons/controllers/core.py", line 221, in __call__
response = self._dispatch_call()
File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.7-py2.6.egg/
pylons/controllers/core.py", line 172, in _dispatch_call
response = self._inspect_call(func)
File "/usr/local/lib/python2.6/dist-packages/Pylons-0.9.7-py2.6.egg/
pylons/controllers/core.py", line 107, in _inspect_call
result = self._perform_call(func, args)
File "/usr/local/lib/python2.6/dist-packages/TurboGears2-2.0.3-
py2.6.egg/tg/controllers.py", line 857, in _perform_call
self, controller, params, remainder=remainder)
File "/usr/local/lib/python2.6/dist-packages/TurboGears2-2.0.3-
py2.6.egg/tg/controllers.py", line 182, in _perform_call
response = self._render_response(controller, output)
File "/usr/local/lib/python2.6/dist-packages/TurboGears2-2.0.3-
py2.6.egg/tg/controllers.py", line 294, in _render_response
controller.decoration.lookup_template_engine(request)
File "/usr/local/lib/python2.6/dist-packages/TurboGears2-2.0.3-
py2.6.egg/tg/decorators.py", line 140, in lookup_template_engine
engine, template, exclude_names = self.engines[content_type]
KeyError: ''

Diez B. Roggisch

unread,
Oct 12, 2009, 5:26:38 AM10/12/09
to turbo...@googlegroups.com

Looks like a malformed HTTP-request to me. We have a sanitize-middleware
hooked into our app that cleans these out.

Diez

John Lorance

unread,
Oct 12, 2009, 8:06:41 PM10/12/09
to turbo...@googlegroups.com
Thanks; and thanks for your previous help to my migration inquiries.  I think my new TG2 app is purring away and stable.  I'll definitely be writing up some recipes out of this experience to post.

John Lorance

unread,
Oct 15, 2009, 2:02:28 PM10/15/09
to turbo...@googlegroups.com
I guess my question is that I'm wondering if this kind of thing cause paster/pylons to hang threads, leak memory, etc.  I'm looking for a cause right now of a problem where I have a very stable system for a long time and then see CPU percentage steadily creep up and hold until that instance becomes extremely slow or non-responsive... and I don't see necessarily a correlation with memory creep so, it doesn't look like a classic memory leak; more like hung/stuck code.  More research required for sure.

On Mon, Oct 12, 2009 at 2:26 AM, Diez B. Roggisch <de...@web.de> wrote:
Reply all
Reply to author
Forward
0 new messages