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/pymodules/python2.6/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object at 0x4c45090>) |
556 """Runs the handler, flushes the streams, and ends the request."""
|
557 try:
|
558 protocolStatus, appStatus = self.server.handler(self)
|
559 except:
|
560 traceback.print_exc(file=self.stderr)
|
| protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object at 0x4c45090>, self.server = <flup.server.fcgi.WSGIServer object at 0x7f342d4555d0>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object at 0x7f342d4555d0>> |
| /usr/lib/pymodules/python2.6/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object at 0x7f342d4555d0>, req=<flup.server.fcgi_base.Request object at 0x4c45090>) |
1116 try:
|
1117 try:
|
1118 result = self.application(environ, start_response)
|
1119 try:
|
1120 for data in result:
|
| result = None, self = <flup.server.fcgi.WSGIServer object at 0x7f342d4555d0>, self.application = <flask.app.Flask object at 0x22dbbd0>, environ = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/var/www/files/htdocs', 'DOCUMENT_URI': '/catalog/arbesko09_10/Arbesko_RU_09_10.pdf', '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', ...}, start_response = <function start_response at 0x2ffbe60> |
| /usr/local/lib/python2.6/dist-packages/Flask-0.6-py2.6.egg/flask/app.py in __call__(self=<flask.app.Flask object at 0x22dbbd0>, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/var/www/files/htdocs', 'DOCUMENT_URI': '/catalog/arbesko09_10/Arbesko_RU_09_10.pdf', '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', ...}, start_response=<function start_response at 0x2ffbe60>) |
870 return response(environ, start_response)
|
871
|
872 def __call__(self, environ, start_response):
|
873 """Shortcut for :attr:`wsgi_app`."""
|
874 return self.wsgi_app(environ, start_response)
|
| self = <flask.app.Flask object at 0x22dbbd0>, self.wsgi_app = <bound method Flask.wsgi_app of <flask.app.Flask object at 0x22dbbd0>>, environ = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/var/www/files/htdocs', 'DOCUMENT_URI': '/catalog/arbesko09_10/Arbesko_RU_09_10.pdf', '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', ...}, start_response = <function start_response at 0x2ffbe60> |
| /usr/local/lib/python2.6/dist-packages/Flask-0.6-py2.6.egg/flask/app.py in wsgi_app(self=<flask.app.Flask object at 0x22dbbd0>, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/var/www/files/htdocs', 'DOCUMENT_URI': '/catalog/arbesko09_10/Arbesko_RU_09_10.pdf', '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', ...}, start_response=<function start_response at 0x2ffbe60>) |
862 response = self.make_response(rv)
|
863 except Exception, e:
|
864 response = self.make_response(self.handle_exception(e))
|
865 try:
|
866 response = self.process_response(response)
|
| response undefined, self = <flask.app.Flask object at 0x22dbbd0>, self.make_response = <bound method Flask.make_response of <flask.app.Flask object at 0x22dbbd0>>, self.handle_exception = <bound method Flask.handle_exception of <flask.app.Flask object at 0x22dbbd0>>, e = IOError(2, 'No such file or directory') |
| /usr/local/lib/python2.6/dist-packages/Flask-0.6-py2.6.egg/flask/app.py in wsgi_app(self=<flask.app.Flask object at 0x22dbbd0>, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/var/www/files/htdocs', 'DOCUMENT_URI': '/catalog/arbesko09_10/Arbesko_RU_09_10.pdf', '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', ...}, start_response=<function start_response at 0x2ffbe60>) |
859 rv = self.preprocess_request()
|
860 if rv is None:
|
861 rv = self.dispatch_request()
|
862 response = self.make_response(rv)
|
863 except Exception, e:
|
| rv = None, self = <flask.app.Flask object at 0x22dbbd0>, self.dispatch_request = <bound method Flask.dispatch_request of <flask.app.Flask object at 0x22dbbd0>> |
| /usr/local/lib/python2.6/dist-packages/Flask-0.6-py2.6.egg/flask/app.py in dispatch_request(self=<flask.app.Flask object at 0x22dbbd0>) |
694 return rv
|
695 # otherwise dispatch to the handler for that endpoint
|
696 return self.view_functions[rule.endpoint](**req.view_args)
|
697 except HTTPException, e:
|
698 return self.handle_http_exception(e)
|
| self = <flask.app.Flask object at 0x22dbbd0>, self.view_functions = {'browse_path': <function browse_path at 0x22e6758>, 'download': <function download at 0x22e8938>, 'index': <function index at 0x22e6050>, 'static': <bound method Flask.send_static_file of <flask.app.Flask object at 0x22dbbd0>>}, rule = <Rule '/<path>' (HEAD, OPTIONS, GET) -> download>, rule.endpoint = 'download', req = <Request 'http://files.arbesko.com/catalog/arbesko09_10/Arbesko_RU_09_10.pdf' [GET]>, req.view_args = {'path': u'catalog/arbesko09_10/Arbesko_RU_09_10.pdf'} |
| /usr/local/lib/python2.6/dist-packages/Flask-0.6-py2.6.egg/flask/helpers.py in send_file(filename_or_fp=u'/var/www/files/htdocs/catalog/arbesko09_10/Arbesko_RU_09_10.pdf', mimetype='application/pdf', as_attachment=True, attachment_filename=u'Arbesko_RU_09_10.pdf', add_etags=True, cache_timeout=43200, conditional=False) |
323 else:
|
324 if file is None:
|
325 file = open(filename, 'rb')
|
326 mtime = os.path.getmtime(filename)
|
327 data = wrap_file(request.environ, file)
|
| file = None, builtin open = <built-in function open>, filename = u'/var/www/files/htdocs/catalog/arbesko09_10/Arbesko_RU_09_10.pdf' |