<type 'exceptions.IOError'>
Python 2.5: /usr/bin/python
Wed Feb 8 23:55:05 2012

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 run(self=<flup.server.scgi_base.Request object at 0x7f353c7317d0>)
  183 
  184         try:
  185             self._conn.server.handler(self)
  186         except:
  187             self.logger.exception('Exception caught from handler')
self = <flup.server.scgi_base.Request object at 0x7f353c7317d0>, self._conn = <flup.server.scgi_base.Connection object at 0x7f353cf43510>, self._conn.server = <flup.server.scgi.WSGIServer object at 0x7f353f1a1850>, self._conn.server.handler = <bound method WSGIServer.handler of <flup.server.scgi.WSGIServer object at 0x7f353f1a1850>>
 /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 0x7f353f1a1850>, request=<flup.server.scgi_base.Request object at 0x7f353c7317d0>)
  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 0x7f353f1a1850>, self.application = <r2.config.middleware.RewriteMiddleware object at 0x7f353f1a1750>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 0x7f353d3d59b0>
 /home/reddit/telerobotics/reddit/r2/r2/config/middleware.py in __call__(self=<r2.config.middleware.RewriteMiddleware object at 0x7f353f1a1750>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 0x7f353d3d59b0>)
  268             environ['FULLPATH'] += '?' + qs
  269 
  270         return self.app(environ, start_response)
  271         
  272 class RequestLogMiddleware(object):
self = <r2.config.middleware.RewriteMiddleware object at 0x7f353f1a1750>, self.app = <paste.gzipper.middleware object at 0x7f353f1a1710>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 0x7f353d3d59b0>
 /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/gzipper.py in __call__(self=<paste.gzipper.middleware object at 0x7f353f1a1710>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 0x7f353d3d59b0>)
   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 0x43cdd50>, response.gzip_start_response = <bound method GzipResponse.gzip_start_response of <paste.gzipper.GzipResponse object at 0x43cdd50>>
 /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/cascade.py in __call__(self=<paste.cascade.Cascade object at 0x7f353f1a16d0>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 of <paste.gzipper.GzipResponse object at 0x43cdd50>>)
   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 0x7f353f1a16d0>, self.apps = [<StaticURLParser '/home/reddit/telerobotics/reddit/r2/r2/public'>, <pylons.middleware.StaticJavascripts object at 0x7f353f1a1610>, <paste.registry.RegistryManager object at 0x7f353f1a15d0>], environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 of <paste.gzipper.GzipResponse object at 0x43cdd50>>
 /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/registry.py in __call__(self=<paste.registry.RegistryManager object at 0x7f353f1a15d0>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 of <paste.gzipper.GzipResponse object at 0x43cdd50>>)
  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 0x7f353f1a15d0>, self.application = <paste.recursive.RecursiveMiddleware object at 0x7f353f1a1590>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 of <paste.gzipper.GzipResponse object at 0x43cdd50>>
 /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/recursive.py in __call__(self=<paste.recursive.RecursiveMiddleware object at 0x7f353f1a1590>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 of <paste.gzipper.GzipResponse object at 0x43cdd50>>)
   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 0x7f353f1a1590>, self.application = <paste.errordocument.StatusBasedForward object at 0x7f353f1a1550>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 of <paste.gzipper.GzipResponse object at 0x43cdd50>>
 /usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/errordocument.py in __call__(self=<paste.errordocument.StatusBasedForward object at 0x7f353f1a1550>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 of <paste.gzipper.GzipResponse object at 0x43cdd50>>)
  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 0x7f353f1a1550>, self.application = <paste.exceptions.errormiddleware.ErrorMiddleware object at 0x7f353f1a1510>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 0x7f353d22b2a8>
 /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 0x7f353f1a1510>, environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 0x7f353d22b2a8>)
  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 0x7f353f1a1510>, self.exception_handler = <bound method ErrorMiddleware.exception_handler ...leware.ErrorMiddleware object at 0x7f353f1a1510>>, exc_info = None, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 0x7f353f1a1510>, exc_info=(<class 'socket.error'>, error(111, 'Connection refused'), <traceback object at 0x7f353c97ee60>), environ={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'FULLPATH': '/r/telerobotics/info/m9/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 0x7f353c97ee60>), error_stream=<open file '<stderr>', mode 'w' at 0x7f35428b9210>, 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')"

<type 'exceptions.IOError'>: [Errno 5] Input/output error