Were facing a syncing problem on Bitbucket Server (v3.11.2)
The full sync fails on refreshing the cache. The relevant log entries are here:
2015-11-03 07:44:14,480 INFO [clusterScheduler_Worker-7] c.a.s.i.user.HibernateStashUserDao Archiving user madh with slug madh to madh_ar/madh_ar
2015-11-03 07:44:14,495 WARN [clusterScheduler_Worker-7] o.h.e.jdbc.spi.SqlExceptionHelper SQL Error: 2627, SQLState: 23000
2015-11-03 07:44:14,495 ERROR [clusterScheduler_Worker-7] o.h.e.jdbc.spi.SqlExceptionHelper Violation of UNIQUE KEY constraint 'uk_mem_dir_parent_child'. Cannot insert duplicate key in object 'dbo.cwd_membership'. The duplicate key value is (3309569, madh, z_gis_owa_2010, GROUP_USER).
2015-11-03 07:44:14,495 WARN [clusterScheduler_Worker-7] o.h.e.jdbc.spi.SqlExceptionHelper SQL Warning Code: 3621, SQLState: S0000
2015-11-03 07:44:14,495 WARN [clusterScheduler_Worker-7] o.h.e.jdbc.spi.SqlExceptionHelper The statement has been terminated.
2015-11-03 07:44:14,573 ERROR [clusterScheduler_Worker-7] c.a.c.d.DbCachingDirectoryPoller Error occurred while refreshing the cache for directory [ 3309569 ].
What can I do to remove the duplicate key error?