Modify ↓
#8182 closed defect (duplicate)
bug in trac-admin initenv, when using svn and mysql
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | admin/console | Version: | 0.11.4 |
Severity: | blocker | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
I am trying to run on 0.11.4 trac-admin /var/www/trac/project1 initenv
and it fails(see the transcript below) although on 0.10.5 works fine
- system:
- fedora core 10
- python 2.5.2
- mysql 5.0.67.2
- apache 2.2.10
==================================================================== [root@fac-919-4 trac]# trac-admin /var/www/trac/project1 initenv Creating a new Trac environment at /var/www/trac/project1 Trac will first ask a few questions about your environment in order to initialize and prepare the project database. Please enter the name of your project. This name will be used in page titles and descriptions. Project Name [My Project]> MSP trac Please specify the connection string for the database to use. By default, a local SQLite database is created in the environment directory. It is also possible to use an already existing PostgreSQL database (check the Trac documentation for the exact connection string syntax). Database connection string [sqlite:db/trac.db]> mysql://trac:Cali4nia@localhost:3306/trac Please specify the type of version control system, By default, it will be svn. If you don't want to use Trac with version control integration, choose the default here and don't specify a repository directory. in the next question. Repository type [svn]> svn Please specify the absolute path to the version control repository, or leave it blank to use Trac without a repository. You can also set the repository location later. Path to repository [/path/to/repos]> /var/svnrepos/mspdev Creating and Initializing Project Installing default wiki pages TracUpgrade imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracUpgrade WikiRestructuredTextLinks imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/WikiRestructuredTextLinks TitleIndex imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TitleIndex WikiProcessors imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/WikiProcessors TracNavigation imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracNavigation TracFineGrainedPermissions imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracFineGrainedPermissions PageTemplates imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/PageTemplates TracTicketsCustomFields imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracTicketsCustomFields TracBackup imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracBackup TracInterfaceCustomization imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracInterfaceCustomization TracSupport imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracSupport TracEnvironment imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracEnvironment TracWiki imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracWiki TracCgi imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracCgi TracNotification imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracNotification WikiNewPage imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/WikiNewPage InterWiki imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/InterWiki WikiRestructuredText imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/WikiRestructuredText WikiFormatting imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/WikiFormatting CamelCase imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/CamelCase TracTimeline imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracTimeline TracReports imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracReports TracLinks imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracLinks TracFastCgi imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracFastCgi TracPermissions imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracPermissions TracQuery imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracQuery InterMapTxt imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/InterMapTxt TracSyntaxColoring imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracSyntaxColoring WikiHtml imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/WikiHtml InterTrac imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/InterTrac TracLogging imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracLogging TracRss imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracRss WikiMacros imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/WikiMacros TracInstall imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracInstall TracUnicode imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracUnicode TracRevisionLog imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracRevisionLog TracSearch imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracSearch TracIni imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracIni WikiDeletePage imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/WikiDeletePage TracModWSGI imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracModWSGI RecentChanges imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/RecentChanges TracAccessibility imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracAccessibility TracPlugins imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracPlugins TracWorkflow imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracWorkflow SandBox imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/SandBox WikiStart imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/WikiStart TracModPython imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracModPython TracAdmin imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracAdmin TracBrowser imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracBrowser TracImport imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracImport TracGuide imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracGuide TracTickets imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracTickets TracRoadmap imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracRoadmap TracChangeset imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracChangeset WikiPageNames imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/WikiPageNames TracStandalone imported from /usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/wiki/default-pages/TracStandalone Indexing repository Initenv for '/var/www/trac/project1' failed. (1062, "Duplicate entry '1573-trunk/msp/jomms/about/journal/BACKUP/tmp-A' for key 1") Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/admin/console.py", line 599, in do_initenv repos.sync(self._resync_feedback) File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/versioncontrol/cache.py", line 213, in sync path, kind, action, bpath, brev)) File "/usr/lib/python2.5/site-packages/Trac-0.11.4-py2.5.egg/trac/db/util.py", line 50, in execute return self.cursor.execute(sql_escape_percent(sql), args) File "/usr/lib64/python2.5/site-packages/MySQLdb/cursors.py", line 166, in execute self.errorhandler(self, exc, value) File "/usr/lib64/python2.5/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler raise errorclass, errorvalue IntegrityError: (1062, "Duplicate entry '1573-trunk/msp/jomms/about/journal/BACKUP/tmp-A' for key 1")
Attachments (0)
Change History (3)
comment:1 by , 16 years ago
Description: | modified (diff) |
---|
comment:2 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:3 by , 16 years ago
Milestone: | 0.11.5 |
---|
Note:
See TracTickets
for help on using tickets.
Duplicate of #4378, please search before reporting new issues.