Opened 18 years ago
Closed 18 years ago
#5414 closed defect (worksforme)
Getting internal error when adding another project with "trac-admin project initenv "
| 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 (last modified by )
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)
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
| Description: | modified (diff) |
|---|---|
| Keywords: | needinfo added |
comment:2 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Ahh thx! I used same db name for every trac project instance, sorry for probz and formatting, couse I am new with wiki, thx alot again for your hint.
comment:3 by , 18 years ago
| Resolution: | fixed |
|---|---|
| Severity: | blocker → normal |
| Status: | closed → reopened |
comment:4 by , 18 years ago
| Keywords: | needinfo removed |
|---|---|
| Resolution: | → worksforme |
| Status: | reopened → closed |



Which 'dbname' (see DatabaseBackend#Postgresql) have you used for the first and second Trac environments ?
BTW, please preview a ticket before committing it (so that you can fix up the Wiki syntax and add verbatim blocks: {{{ }}})