Unable to insert changeset 57/XXX and ticket 2 into db: columns repo, changeset, ticket are not unique

28 views
Skip to first unread message

mx....@qq.com

unread,
May 9, 2016, 5:23:40 AM5/9/16
to Trac Users
Unable to insert changeset 57/Idouzi_Vote and ticket 2 into db: columns repo, changeset, ticket are not unique

The above error occurs when executing a hook svn

RjOllos

unread,
May 9, 2016, 6:18:12 PM5/9/16
to Trac Users


On Monday, May 9, 2016 at 2:23:40 AM UTC-7, mx....@qq.com wrote:
Unable to insert changeset 57/Idouzi_Vote and ticket 2 into db: columns repo, changeset, ticket are not unique

The above error occurs when executing a hook svn

 Which svn hook are you executing? Do you have any plugins installed?

- Ryan

mx....@qq.com

unread,
May 9, 2016, 11:28:11 PM5/9/16
to Trac Users
I'm sure the same journal by this problem, svn hook can not be performed twice, because the first performance will insert a record into codereviewer_map table, so subsequent executions will find duplicate values, a database error will be reported. As shown above

在 2016年5月10日星期二 UTC+8上午6:18:12,RjOllos写道:

RjOllos

unread,
Nov 22, 2016, 8:10:28 PM11/22/16
to Trac Users


On Monday, May 9, 2016 at 8:28:11 PM UTC-7, Mingxing Tian wrote:
I'm sure the same journal by this problem, svn hook can not be performed twice, because the first performance will insert a record into codereviewer_map table, so subsequent executions will find duplicate values, a database error will be reported. As shown above

I haven't looked at the code in a while, but I made a ticket to investigate the issue:

- Ryan 

Mo

unread,
Nov 24, 2016, 8:54:18 AM11/24/16
to Trac Users
Interesting, right now I have a similar issue on my git repo.
After my cronjob seemed top fail inserting the command I ran myself the command:

sudo -u trac trac-admin /mnt/data/trac/projects/trac-mep/ changeset added mep de73f39

No command was inserted and I found in the log:

Unable to insert changeset de73f39/mep and ticket  into db: duplicate key value violates unique constraint "codereviewer_map_pk"

Any idea?

Best regards.
Reply all
Reply to author
Forward
0 new messages