Edgewall Software

Opened 17 years ago

Last modified 17 years ago

#5414 closed defect

Getting internal error when adding another project with "trac-admin project initenv " — at Initial Version

Reported by: anonymous Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/console Version: 0.10.3.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When I try to add new project with other svn repository I get this error:

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 613, in do_initenv

options=options)

File "/usr/lib/python2.4/site-packages/trac/env.py", line 124, in init

self.create(options)

File "/usr/lib/python2.4/site-packages/trac/env.py", line 229, in create

DatabaseManager(self).init_db()

File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 69, in init_db

connector.init_db(args)

File "/usr/lib/python2.4/site-packages/trac/db/postgres_backend.py", line 52, in init_db

cursor.execute(stmt)

File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 51, in execute

return self.cursor.execute(sql)

ProgrammingError: relation "system" already exists

Failed to initialize environment. 1 Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 617, in do_initenv

sys.exit(1)

SystemExit: 1

When i try to login to trac system, I see Trac Internal Error:

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 191, in dispatch

chosen_handler = self._pre_process_request(req, chosen_handler)

File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 263, in _pre_process_request

chosen_handler = f.pre_process_request(req, chosen_handler)

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 73, in pre_process_request

self.get_repository(req.authname) # triggers a sync if applicable

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 101, in get_repository

repos = self._connector.get_repository(rtype, rdir, authname)

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.py", line 260, in get_repository

crepos = CachedRepository(self.env.get_db_cnx(), repos, None, self.log)

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/cache.py", line 34, in init

self.sync()

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/cache.py", line 59, in sync

raise TracError("The 'repository_dir' has changed, "

TracError: The 'repository_dir' has changed, a 'trac-admin resync' operation is needed.

If I try to run the trac-admin resync script, everything is done fine, the new created project work well, but the previous one got the same error (and again, when I run resync on the first project, it starts to work fine and the other project got the same error again)

Change History (0)

Note: See TracTickets for help on using tickets.