| <class 'pysqlite2.dbapi2.DatabaseError'> | Python 2.5.1: /usr/bin/python Fri Jul 3 20:58:03 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.5/trac/web/_fcgi.py in run(self=<trac.web._fcgi.Request object at 0x87dc92c>) |
| 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 at 0x87dc92c>, self.server = <trac.web._fcgi.WSGIServer object at 0x40214cec>, self.server.handler = <bound method WSGIServer.handler of <trac.web._fcgi.WSGIServer object at 0x40214cec>> |
| /var/lib/python-support/python2.5/trac/web/_fcgi.py in handler(self=<trac.web._fcgi.WSGIServer object at 0x40214cec>, req=<trac.web._fcgi.Request object at 0x87dc92c>) |
| 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 at 0x40214cec>, self.application = <function dispatch_request at 0x828425c>, environ = {'DOCUMENT_ROOT': '/srv/kid-templating.org/www/htdocs/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', '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': 'www.kid-templating.org', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response at 0x88559cc> |
| /var/lib/python-support/python2.5/trac/web/main.py in dispatch_request(environ={'DOCUMENT_ROOT': '/srv/kid-templating.org/www/htdocs/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', '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': 'www.kid-templating.org', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response at 0x88559cc>) |
| 389 env = env_error = None |
| 390 try: |
| 391 env = _open_environment(env_path, run_once=run_once) |
| 392 if env.base_url: |
| 393 environ['trac.base_url'] = env.base_url |
| env = None, global _open_environment = <function _open_environment at 0x827bf0c>, env_path = '/srv/kid-templating.org/var/trac', run_once = False |
| /var/lib/python-support/python2.5/trac/web/main.py in _open_environment(env_path='/srv/kid-templating.org/var/trac', 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 = '/srv/kid-templating.org/var/trac', global open_environment = <function open_environment at 0x825880c> |
| /var/lib/python-support/python2.5/trac/env.py in open_environment(env_path='/srv/kid-templating.org/var/trac') |
| 461 |
| 462 env = Environment(env_path) |
| 463 if env.needs_upgrade(): |
| 464 raise TracError, 'The Trac Environment needs to be upgraded. Run ' \ |
| 465 'trac-admin %s upgrade"' % env_path |
| env = <trac.env.Environment object at 0x8872a2c>, env.needs_upgrade = <bound method Environment.needs_upgrade of <trac.env.Environment object at 0x8872a2c>> |
| /var/lib/python-support/python2.5/trac/env.py in needs_upgrade(self=<trac.env.Environment object at 0x8872a2c>) |
| 341 db = self.get_db_cnx() |
| 342 for participant in self.setup_participants: |
| 343 if participant.environment_needs_upgrade(db): |
| 344 self.log.warning('Component %s requires environment upgrade', |
| 345 participant) |
| participant = <trac.env.EnvironmentSetup object at 0x86aaccc>, participant.environment_needs_upgrade = <bound method EnvironmentSetup.environment_needs... <trac.env.EnvironmentSetup object at 0x86aaccc>>, db = <trac.db.pool.PooledConnection object at 0x86aafac> |
| /var/lib/python-support/python2.5/trac/env.py in environment_needs_upgrade(self=<trac.env.EnvironmentSetup object at 0x86aaccc>, db=<trac.db.pool.PooledConnection object at 0x86aafac>) |
| 395 |
| 396 def environment_needs_upgrade(self, db): |
| 397 dbver = self.env.get_version(db) |
| 398 if dbver == db_default.db_version: |
| 399 return False |
| dbver undefined, self = <trac.env.EnvironmentSetup object at 0x86aaccc>, self.env = <trac.env.Environment object at 0x8872a2c>, self.env.get_version = <bound method Environment.get_version of <trac.env.Environment object at 0x8872a2c>>, db = <trac.db.pool.PooledConnection object at 0x86aafac> |
| /var/lib/python-support/python2.5/trac/env.py in get_version(self=<trac.env.Environment object at 0x8872a2c>, db=<trac.db.pool.PooledConnection object at 0x86aafac>) |
| 255 db = self.get_db_cnx() |
| 256 cursor = db.cursor() |
| 257 cursor.execute("SELECT value FROM system WHERE name='database_version'") |
| 258 row = cursor.fetchone() |
| 259 return row and int(row[0]) |
| cursor = <trac.db.util.IterableCursor object at 0x88f941c>, cursor.execute = <bound method IterableCursor.execute of <trac.db.util.IterableCursor object at 0x88f941c>> |
| /var/lib/python-support/python2.5/trac/db/util.py in execute(self=<trac.db.util.IterableCursor object at 0x88f941c>, sql="SELECT value FROM system WHERE name='database_version'", args=None) |
| 49 # print repr(args) |
| 50 return self.cursor.execute(sql_escape_percent(sql), args) |
| 51 return self.cursor.execute(sql) |
| 52 |
| 53 def executemany(self, sql, args=None): |
| self = <trac.db.util.IterableCursor object at 0x88f941c>, self.cursor = <trac.db.sqlite_backend.PyFormatCursor object at 0x887946c>, self.cursor.execute = <bound method PyFormatCursor.execute of <trac.db.sqlite_backend.PyFormatCursor object at 0x887946c>>, sql = "SELECT value FROM system WHERE name='database_version'" |
| /var/lib/python-support/python2.5/trac/db/sqlite_backend.py in execute(self=<trac.db.sqlite_backend.PyFormatCursor object at 0x887946c>, sql="SELECT value FROM system WHERE name='database_version'", args=None) |
| 54 sql = sql % (('?',) * len(args)) |
| 55 return self._rollback_on_error(sqlite.Cursor.execute, sql, |
| 56 args or []) |
| 57 def executemany(self, sql, args=None): |
| 58 if args: |
| args = None |
| /var/lib/python-support/python2.5/trac/db/sqlite_backend.py in _rollback_on_error(self=<trac.db.sqlite_backend.PyFormatCursor object at 0x887946c>, function=<method 'execute' of 'pysqlite2.dbapi2.Cursor' objects>, *args=("SELECT value FROM system WHERE name='database_version'", []), **kwargs={}) |
| 46 def _rollback_on_error(self, function, *args, **kwargs): |
| 47 try: |
| 48 return function(self, *args, **kwargs) |
| 49 except sqlite.DatabaseError, e: |
| 50 self.cnx.rollback() |
| function = <method 'execute' of 'pysqlite2.dbapi2.Cursor' objects>, self = <trac.db.sqlite_backend.PyFormatCursor object at 0x887946c>, args = ("SELECT value FROM system WHERE name='database_version'", []), kwargs = {} |
<class 'pysqlite2.dbapi2.DatabaseError'>: database disk image is malformed
args =
('database disk image is malformed',)
message =
'database disk image is malformed'