Macsim's Mind

DatabaseError: file is encrypted or is not a database avec trac

tuxAujourd’hui j’ai rencontré cette charmante erreur avec trac j’ai rien trouvé en français pour résoudre le problème alors si ça peut aider les anglophobes.

Traceback (most recent call last):
File « /usr/share/trac/cgi-bin/trac.cgi », line 20, in ?
cgi_frontend.run()
File « /var/lib/python-support/python2.4/trac/web/cgi_frontend.py », line 68, in run
gateway.run(dispatch_request)
File « /var/lib/python-support/python2.4/trac/web/wsgi.py », line 87, in run
response = application(self.environ, self._start_response)
File « /var/lib/python-support/python2.4/trac/web/main.py », line 377, in dispatch_request
env = _open_environment(env_path, run_once=run_once)
File « /var/lib/python-support/python2.4/trac/web/main.py », line 51, in _open_environment
return open_environment(env_path)
File « /var/lib/python-support/python2.4/trac/env.py », line 435, in open_environment
if env.needs_upgrade():
File « /var/lib/python-support/python2.4/trac/env.py », line 315, in needs_upgrade
if participant.environment_needs_upgrade(db):
File « /var/lib/python-support/python2.4/trac/env.py », line 369, in environment_needs_upgrade
dbver = self.env.get_version(db)
File « /var/lib/python-support/python2.4/trac/env.py », line 236, in get_version
cursor.execute(« SELECT value FROM system WHERE name=’database_version’ »)
File « /var/lib/python-support/python2.4/trac/db/util.py », line 51, in execute
return self.cursor.execute(sql)
File « /var/lib/python-support/python2.4/trac/db/sqlite_backend.py », line 56, in execute
args or [])
File « /var/lib/python-support/python2.4/trac/db/sqlite_backend.py », line 48, in _rollback_on_error
return function(self, *args, **kwargs)
DatabaseError: file is encrypted or is not a database

Pour résoudre le problème:

#aptitude install sqlite

#find CHEMIN_VERS_LES_INSTANCES_TRACS -iname « trac.db » | xargs -i bash -c « mv {} {}.2; sqlite {}.2 .dump | sqlite3 {}; »

#chown www-data: CHEMIN_VERS_LES_INSTANCES_TRACS/. -R

Et ça devrait rouler.

VN:F [1.9.2_1090]
Rating: 0.0/10 (0 votes cast)

2 commentaires

  • At 2009.04.07 16:55, Narween said:

    Merci pour cet excellent article très utile!

    • At 2009.11.09 14:27, nicobo said:

      Merci beaucoup, quel gain de temps ce fut de tomber sur cet article !

      (Required)
      (Required, will not be published)
      Uses wordpress plugins developed by www.wpdevelop.com