<type 'exceptions.IOError'>
Python 2.6.6: /usr/bin/python
Mon Sep 25 21:58:18 2017

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>)
  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>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
 /usr/lib/pymodules/python2.6/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
 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>, self.application = <__main__.ScriptNameStripper object>, environ = {'DOCUMENT_ROOT': '/var/www/wpnew/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'testing', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/document/GEI021', 'PATH_TRANSLATED': 'redirect:/index.php/GEI021', ...}, start_response = <function start_response>
 /var/www/webnew/app/gei/index.fcgi in __call__(self=<__main__.ScriptNameStripper object>, environ={'DOCUMENT_ROOT': '/var/www/wpnew/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'testing', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/document/GEI021', 'PATH_TRANSLATED': 'redirect:/index.php/GEI021', ...}, start_response=<function start_response>)
   18    def __call__(self, environ, start_response):
   19       environ['SCRIPT_NAME'] = '/search'
   20       return self.app(environ, start_response)
   21 
   22 app = ScriptNameStripper(gei)
self = <__main__.ScriptNameStripper object>, self.app = <flask.app.Flask object>, environ = {'DOCUMENT_ROOT': '/var/www/wpnew/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'testing', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/document/GEI021', 'PATH_TRANSLATED': 'redirect:/index.php/GEI021', ...}, start_response = <function start_response>
 /usr/local/lib/python2.6/dist-packages/Flask-0.9-py2.6.egg/flask/app.py in __call__(self=<flask.app.Flask object>, environ={'DOCUMENT_ROOT': '/var/www/wpnew/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'testing', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/document/GEI021', 'PATH_TRANSLATED': 'redirect:/index.php/GEI021', ...}, start_response=<function start_response>)
 1697         return self.blueprints
 1698 
 1699     def __call__(self, environ, start_response):
 1700         """Shortcut for :attr:`wsgi_app`."""
 1701         return self.wsgi_app(environ, start_response)
self = <flask.app.Flask object>, self.wsgi_app = <bound method Flask.wsgi_app of <flask.app.Flask object>>, environ = {'DOCUMENT_ROOT': '/var/www/wpnew/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'testing', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/document/GEI021', 'PATH_TRANSLATED': 'redirect:/index.php/GEI021', ...}, start_response = <function start_response>
 /usr/local/lib/python2.6/dist-packages/Flask-0.9-py2.6.egg/flask/app.py in wsgi_app(self=<flask.app.Flask object>, environ={'DOCUMENT_ROOT': '/var/www/wpnew/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'testing', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/document/GEI021', 'PATH_TRANSLATED': 'redirect:/index.php/GEI021', ...}, start_response=<function start_response>)
 1687                 response = self.full_dispatch_request()
 1688             except Exception, e:
 1689                 response = self.make_response(self.handle_exception(e))
 1690             return response(environ, start_response)
 1691 
response undefined, self = <flask.app.Flask object>, self.make_response = <bound method Flask.make_response of <flask.app.Flask object>>, self.handle_exception = <bound method Flask.handle_exception of <flask.app.Flask object>>, e = IOError(2, 'No such file or directory')
 /usr/local/lib/python2.6/dist-packages/Flask-0.9-py2.6.egg/flask/app.py in wsgi_app(self=<flask.app.Flask object>, environ={'DOCUMENT_ROOT': '/var/www/wpnew/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'testing', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': '/document/GEI021', 'PATH_TRANSLATED': 'redirect:/index.php/GEI021', ...}, start_response=<function start_response>)
 1685         with self.request_context(environ):
 1686             try:
 1687                 response = self.full_dispatch_request()
 1688             except Exception, e:
 1689                 response = self.make_response(self.handle_exception(e))
response undefined, self = <flask.app.Flask object>, self.full_dispatch_request = <bound method Flask.full_dispatch_request of <flask.app.Flask object>>
 /usr/local/lib/python2.6/dist-packages/Flask-0.9-py2.6.egg/flask/app.py in full_dispatch_request(self=<flask.app.Flask object>)
 1358                 rv = self.dispatch_request()
 1359         except Exception, e:
 1360             rv = self.handle_user_exception(e)
 1361         response = self.make_response(rv)
 1362         response = self.process_response(response)
rv = None, self = <flask.app.Flask object>, self.handle_user_exception = <bound method Flask.handle_user_exception of <flask.app.Flask object>>, e = IOError(2, 'No such file or directory')
 /usr/local/lib/python2.6/dist-packages/Flask-0.9-py2.6.egg/flask/app.py in full_dispatch_request(self=<flask.app.Flask object>)
 1356             rv = self.preprocess_request()
 1357             if rv is None:
 1358                 rv = self.dispatch_request()
 1359         except Exception, e:
 1360             rv = self.handle_user_exception(e)
rv = None, self = <flask.app.Flask object>, self.dispatch_request = <bound method Flask.dispatch_request of <flask.app.Flask object>>
 /usr/local/lib/python2.6/dist-packages/Flask-0.9-py2.6.egg/flask/app.py in dispatch_request(self=<flask.app.Flask object>)
 1342             return self.make_default_options_response()
 1343         # otherwise dispatch to the handler for that endpoint
 1344         return self.view_functions[rule.endpoint](**req.view_args)
 1345 
 1346     def full_dispatch_request(self):
self = <flask.app.Flask object>, self.view_functions = {'document': <function document>, 'index': <function index>, 'indexItems': <function indexItems>, 'inscriptions': <function inscriptions>, 'place': <function place>, 'static': <bound method Flask.send_static_file of <flask.app.Flask object>>, 'terms': <function terms>}, rule = <Rule '/document/<docid>' (HEAD, POST, OPTIONS, GET) -> document>, rule.endpoint = 'document', req = <Request 'http://testing/search/document/GEI021' [GET]>, req.view_args = {'docid': u'GEI021'}
 /var/www/webnew/app/gei/app.py in document(docid=u'GEI021')
  153         contentXML = fdx.read().decode('utf8')
  154 
  155     with open(html, 'r') as fdh:
  156         contentHTML = fdh.read().decode('utf8')
  157 
builtin open = <built-in function open>, html = u'/var/www/webnew/app/gei/static/html/GEI021.html', fdh undefined

<type 'exceptions.IOError'>: [Errno 2] No such file or directory: u'/var/www/webnew/app/gei/static/html/GEI021.html'
      args = (2, 'No such file or directory')
      errno = 2
      filename = u'/var/www/webnew/app/gei/static/html/GEI021.html'
      message = ''
      strerror = 'No such file or directory'