| TracError | Python 2.4.4: /usr/bin/python Sat Nov 7 04:02:44 2009 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /var/lib/python-support/python2.4/trac/web/_fcgi.py in run(self=<trac.web._fcgi.Request object>) |
| 568 """Runs the handler, flushes the streams, and ends the request.""" |
| 569 try: |
| 570 protocolStatus, appStatus = self.server.handler(self) |
| 571 except: |
| 572 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <trac.web._fcgi.Request object>, self.server = <trac.web._fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <trac.web._fcgi.WSGIServer object>> |
| /var/lib/python-support/python2.4/trac/web/_fcgi.py in handler(self=<trac.web._fcgi.WSGIServer object>, req=<trac.web._fcgi.Request object>) |
| 1254 try: |
| 1255 try: |
| 1256 result = self.application(environ, start_response) |
| 1257 try: |
| 1258 for data in result: |
| result = None, self = <trac.web._fcgi.WSGIServer object>, self.application = <function dispatch_request>, environ = {'DOCUMENT_ROOT': '/var/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;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', 'HTTP_HOST': 'ilex.caltech.edu', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response> |
| /var/lib/python-support/python2.4/trac/web/main.py in dispatch_request(environ={'DOCUMENT_ROOT': '/var/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;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', 'HTTP_HOST': 'ilex.caltech.edu', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response>) |
| 375 'to locate the Trac environment(s).') |
| 376 run_once = environ['wsgi.run_once'] |
| 377 env = _open_environment(env_path, run_once=run_once) |
| 378 |
| 379 if env.base_url: |
| env undefined, global _open_environment = <function _open_environment>, env_path = '/var/www/trac/alere', run_once = False |
| /var/lib/python-support/python2.4/trac/web/main.py in _open_environment(env_path='/var/www/trac/alere', run_once=False) |
| 56 try: |
| 57 if not env_path in env_cache: |
| 58 env_cache[env_path] = open_environment(env_path) |
| 59 env = env_cache[env_path] |
| 60 finally: |
| global env_cache = {}, env_path = '/var/www/trac/alere', global open_environment = <function open_environment> |
| /var/lib/python-support/python2.4/trac/env.py in open_environment(env_path='/var/www/trac/alere') |
| 433 |
| 434 env = Environment(env_path) |
| 435 if env.needs_upgrade(): |
| 436 raise TracError, 'The Trac Environment needs to be upgraded. Run ' \ |
| 437 'trac-admin %s upgrade"' % env_path |
| env = <trac.env.Environment object>, env.needs_upgrade = <bound method Environment.needs_upgrade of <trac.env.Environment object>> |
| /var/lib/python-support/python2.4/trac/env.py in needs_upgrade(self=<trac.env.Environment object>) |
| 311 def needs_upgrade(self): |
| 312 """Return whether the environment needs to be upgraded.""" |
| 313 db = self.get_db_cnx() |
| 314 for participant in self.setup_participants: |
| 315 if participant.environment_needs_upgrade(db): |
| db undefined, self = <trac.env.Environment object>, self.get_db_cnx = <bound method Environment.get_db_cnx of <trac.env.Environment object>> |
| /var/lib/python-support/python2.4/trac/env.py in get_db_cnx(self=<trac.env.Environment object>) |
| 180 def get_db_cnx(self): |
| 181 """Return a database connection from the connection pool.""" |
| 182 return DatabaseManager(self).get_connection() |
| 183 |
| 184 def shutdown(self, tid=None): |
| global DatabaseManager = <class 'trac.db.api.DatabaseManager'>, self = <trac.env.Environment object>, ).get_connection undefined |
| /var/lib/python-support/python2.4/trac/db/api.py in get_connection(self=<trac.db.api.DatabaseManager object>) |
| 73 connector, args = self._get_connector() |
| 74 self._cnx_pool = ConnectionPool(5, connector, **args) |
| 75 return self._cnx_pool.get_cnx(self.timeout or None) |
| 76 |
| 77 def shutdown(self, tid=None): |
| self = <trac.db.api.DatabaseManager object>, self._cnx_pool = <trac.db.pool.ConnectionPool object>, self._cnx_pool.get_cnx = <bound method ConnectionPool.get_cnx of <trac.db.pool.ConnectionPool object>>, self.timeout = 20, builtin None = None |
| /var/lib/python-support/python2.4/trac/db/pool.py in get_cnx(self=<trac.db.pool.ConnectionPool object>, timeout=20) |
| 99 self._cursize -= 1 |
| 100 elif self._maxsize and self._cursize < self._maxsize: |
| 101 cnx = self._connector.get_connection(**self._kwargs) |
| 102 self._cursize += 1 |
| 103 break |
| cnx undefined, self = <trac.db.pool.ConnectionPool object>, self._connector = <trac.db.sqlite_backend.SQLiteConnector object>, self._connector.get_connection = <bound method SQLiteConnector.get_connection of <trac.db.sqlite_backend.SQLiteConnector object>>, self._kwargs = {'path': u'/var/www/trac/alere/db/trac.db'} |
| /var/lib/python-support/python2.4/trac/db/sqlite_backend.py in get_connection(self=<trac.db.sqlite_backend.SQLiteConnector object>, path=u'/var/www/trac/alere/db/trac.db', params={}) |
| 111 |
| 112 def get_connection(self, path, params={}): |
| 113 return SQLiteConnection(path, params) |
| 114 |
| 115 def init_db(cls, path, params={}): |
| global SQLiteConnection = <class 'trac.db.sqlite_backend.SQLiteConnection'>, path = u'/var/www/trac/alere/db/trac.db', params = {} |
| /var/lib/python-support/python2.4/trac/db/sqlite_backend.py in __init__(self=<trac.db.sqlite_backend.SQLiteConnection object>, path=u'/var/www/trac/alere/db/trac.db', params={}) |
| 142 if path != ':memory:': |
| 143 if not os.access(path, os.F_OK): |
| 144 raise TracError, 'Database "%s" not found.' % path |
| 145 |
| 146 dbdir = os.path.dirname(path) |
| global TracError = <class trac.core.TracError>, path = u'/var/www/trac/alere/db/trac.db' |
TracError: Database "/var/www/trac/alere/db/trac.db" not found.
args =
(u'Database "/var/www/trac/alere/db/trac.db" not found.',)
message =
u'Database "/var/www/trac/alere/db/trac.db" not found.'
show_traceback =
False
title =
None