Edgewall Software

Ticket #7225 (closed defect: duplicate)

Opened 4 months ago

Last modified 4 months ago

error in syncing svn <> trac using mysql as backend

Reported by: anonymous Owned by: cboos
Priority: normal Milestone:
Component: version control Version: 0.11-stable
Severity: normal Keywords: needinfo
Cc:

Description (last modified by nkantrowitz) (diff)

jan@lab:~/projects/$ sudo trac-admin /data/trac/env/ resync
Resyncing repository history...
Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/Trac-0.11rc1-py2.4.egg/trac/admin/console.py", line 1249, in run
    return admin.onecmd(command)
  File "/usr/lib/python2.4/site-packages/Trac-0.11rc1-py2.4.egg/trac/admin/console.py", line 104, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/lib/python2.4/site-packages/Trac-0.11rc1-py2.4.egg/trac/admin/console.py", line 632, in do_resync
    repos = env.get_repository().sync(self._resync_feedback)
  File "/usr/lib/python2.4/site-packages/Trac-0.11rc1-py2.4.egg/trac/versioncontrol/cache.py", line 205, in sync
    (str(next_youngest),
  File "/usr/lib/python2.4/site-packages/Trac-0.11rc1-py2.4.egg/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.4/site-packages/Trac-0.11rc1-py2.4.egg/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 163, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.IntegrityError: (1062, "Duplicate entry '1-old/img/120-036.jpg-A' for key 1")
  • trac version: Trac 0.11rc1
  • os: debian
  • mysql version: 5.0.32-Debian_7etch5-log
  • svn version: svn, version 1.4.2 (r22196)

Attachments

Change History

Changed 4 months ago by nkantrowitz

  • description modified (diff)

To clarify a bit:

  • resync worked fine with a blank repo and mysql.
  • didn't work with mysql after a dump/load cycle in a new repo.
  • the original repo worked fine with sqlite.
  • checking the dumpfile for rev one, there isn't a duplicate node for that path.

Changed 4 months ago by cboos

  • keywords needinfo added
  • status changed from new to closed
  • resolution set to duplicate
  • severity changed from blocker to normal

MySqlDb case insensitivity issue (#4378).

Add/Change #7225 (error in syncing svn <> trac using mysql as backend)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.