cwd_unique_membership のユニーク キー制約に違反しているため、外部メンバーシップの移行が失敗する

プラットフォームについて: Cloud と Data Center - この記事は クラウド プラットフォームとデータセンター プラットフォームの両方に等しく当てはまります。

Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

症状

When running the script for migrating the external memberships in admin/migrate-external-memberships.action, it fails.

atlassian-confluence.log に次のエラーが返される。

2013-11-09 23:46:01,042 INFO [Long running task: Migrate External Memberships] [atlassian.crowd.directory.DelegatedAuthenticationDirectory] importMembership Imported user "Michael XYZ"'s membership of remote group "Group Name" to directory "Delegated Authentication Directory". .... 2013-11-09 23:46:01,167 ERROR [Long running task: Migrate External Memberships] [sf.hibernate.util.JDBCExceptionReporter] logExceptions Violation of UNIQUE KEY constraint 'cwd_unique_membership'. Cannot insert duplicate key in object 'dbo.cwd_membership'.

原因

There are two different entities in LDAP are found with the same value for that attribute (CN). There is a feature request for this: CONFSERVER-23213 - Merge memberships for groups with duplicate names during LDAP directory sync

回避策

  1. Change the Group Search Filter in the User Directory Configuration so that it excludes the offending group. Example:

    (&(objectclass=groupOfNames)(!(CN=Group Name)))
  2. Perform the migration again

If users are not able to log into Confluence after the migrations completes, please change the Group Search Filter back to the previous filter.

更新日時: September 25, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。