A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /usr/lib/python2.5/site-packages/flup-1.0-py2.5.egg/flup/server/scgi_base.py in handler(self=<flup.server.scgi.WSGIServer object at 0x7f6204962850>, request=<flup.server.scgi_base.Request object at 0x7f62025af350>) |
454 try:
|
455 try:
|
456 result = self.application(environ, start_response)
|
457 try:
|
458 for data in result:
|
| result = None, self = <flup.server.scgi.WSGIServer object at 0x7f6204962850>, self.application = <r2.config.middleware.RewriteMiddleware object at 0x7f6204962750>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response = <function start_response at 0x7f62029ed6e0> |
| /home/reddit/telerobotics/reddit/r2/r2/config/middleware.py in __call__(self=<r2.config.middleware.RewriteMiddleware object at 0x7f6204962750>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response=<function start_response at 0x7f62029ed6e0>) |
268 environ['FULLPATH'] += '?' + qs
|
269
|
270 return self.app(environ, start_response)
|
271
|
272 class RequestLogMiddleware(object):
|
| self = <r2.config.middleware.RewriteMiddleware object at 0x7f6204962750>, self.app = <paste.gzipper.middleware object at 0x7f6204962710>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response = <function start_response at 0x7f62029ed6e0> |
| /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/gzipper.py in __call__(self=<paste.gzipper.middleware object at 0x7f6204962710>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response=<function start_response at 0x7f62029ed6e0>) |
36 response = GzipResponse(start_response, self.compress_level)
|
37 app_iter = self.application(environ,
|
38 response.gzip_start_response)
|
39 if app_iter:
|
40 response.finish_response(app_iter)
|
| response = <paste.gzipper.GzipResponse object at 0x7f62026a9990>, response.gzip_start_response = <bound method GzipResponse.gzip_start_response o...e.gzipper.GzipResponse object at 0x7f62026a9990>> |
| /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py in __call__(self=<paste.cascade.Cascade object at 0x7f62049626d0>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response=<bound method GzipResponse.gzip_start_response o...e.gzipper.GzipResponse object at 0x7f62026a9990>>) |
90 except self.catch_exceptions, e:
|
91 pass
|
92 return self.apps[-1](environ, start_response)
|
93
|
94 def _consuming_writer(s):
|
| self = <paste.cascade.Cascade object at 0x7f62049626d0>, self.apps = [<StaticURLParser '/home/reddit/telerobotics/reddit/r2/r2/public'>, <pylons.middleware.StaticJavascripts object at 0x7f6204962610>, <paste.registry.RegistryManager object at 0x7f62049625d0>], environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response = <bound method GzipResponse.gzip_start_response o...e.gzipper.GzipResponse object at 0x7f62026a9990>> |
| /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py in __call__(self=<paste.registry.RegistryManager object at 0x7f62049625d0>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response=<bound method GzipResponse.gzip_start_response o...e.gzipper.GzipResponse object at 0x7f62026a9990>>) |
338 reg.prepare()
|
339 try:
|
340 app_iter = self.application(environ, start_response)
|
341 except Exception, e:
|
342 # Regardless of if the content is an iterable, generator, list
|
| app_iter = None, self = <paste.registry.RegistryManager object at 0x7f62049625d0>, self.application = <paste.recursive.RecursiveMiddleware object at 0x7f6204962590>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response = <bound method GzipResponse.gzip_start_response o...e.gzipper.GzipResponse object at 0x7f62026a9990>> |
| /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py in __call__(self=<paste.recursive.RecursiveMiddleware object at 0x7f6204962590>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response=<bound method GzipResponse.gzip_start_response o...e.gzipper.GzipResponse object at 0x7f62026a9990>>) |
78 environ['paste.recursive.script_name'] = my_script_name
|
79 try:
|
80 return self.application(environ, start_response)
|
81 except ForwardRequestException, e:
|
82 middleware = CheckForRecursionMiddleware(
|
| self = <paste.recursive.RecursiveMiddleware object at 0x7f6204962590>, self.application = <paste.errordocument.StatusBasedForward object at 0x7f6204962550>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response = <bound method GzipResponse.gzip_start_response o...e.gzipper.GzipResponse object at 0x7f62026a9990>> |
| /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py in __call__(self=<paste.errordocument.StatusBasedForward object at 0x7f6204962550>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response=<bound method GzipResponse.gzip_start_response o...e.gzipper.GzipResponse object at 0x7f62026a9990>>) |
183 return start_response(status, headers, exc_info)
|
184
|
185 app_iter = self.application(environ, change_response)
|
186 if url:
|
187 if hasattr(app_iter, 'close'):
|
| app_iter undefined, self = <paste.errordocument.StatusBasedForward object at 0x7f6204962550>, self.application = <paste.exceptions.errormiddleware.ErrorMiddleware object at 0x7f6204962510>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, change_response = <function change_response at 0x7f62029ed0c8> |
| /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/exceptions/errormiddleware.py in __call__(self=<paste.exceptions.errormiddleware.ErrorMiddleware object at 0x7f6204962510>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}, start_response=<function change_response at 0x7f62029ed0c8>) |
147 exc_info)
|
148 # @@: it would be nice to deal with bad content types here
|
149 response = self.exception_handler(exc_info, environ)
|
150 return [response]
|
151 finally:
|
| response undefined, self = <paste.exceptions.errormiddleware.ErrorMiddleware object at 0x7f6204962510>, self.exception_handler = <bound method ErrorMiddleware.exception_handler ...leware.ErrorMiddleware object at 0x7f6204962510>>, exc_info = None, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...} |
| /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/exceptions/errormiddleware.py in exception_handler(self=<paste.exceptions.errormiddleware.ErrorMiddleware object at 0x7f6204962510>, exc_info=(<class 'socket.error'>, error(111, 'Connection refused'), <traceback object at 0x3cfb830>), environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/companies/info/ek/related/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', ...}) |
176 error_subject_prefix=self.error_subject_prefix,
|
177 error_message=self.error_message,
|
178 simple_html_error=simple_html_error)
|
179
|
180 class CatchingIter(object):
|
| simple_html_error = False |
| /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/exceptions/errormiddleware.py in handle_exception(exc_info=(<class 'socket.error'>, error(111, 'Connection refused'), <traceback object at 0x3cfb830>), error_stream=<open file '<stderr>', mode 'w' at 0x7f620807a210>, html=True, debug_mode=False, error_email=[], error_log=None, show_exceptions_in_wsgi_errors=False, error_email_from='pylons@yourapp.com', smtp_server='localhost', error_subject_prefix='WebApp Error: ', error_message='An internal server error occurred', simple_html_error=False) |
351 else:
|
352 error_stream.write('Error - %s: %s\n' % (
|
353 exc_data.exception_type, exc_data.exception_value))
|
354 if html:
|
355 if debug_mode and simple_html_error:
|
| exc_data = <CollectedException frames="[<ExceptionFrame mod...7' exception_value="(111, 'Connection refused')">, exc_data.exception_type = <class 'socket.error'>, exc_data.exception_value = "(111, 'Connection refused')" |