Bitbucket fails to start in disaster recovery mode.
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
The following issues are observed in Bitbucket when trying to start in disaster recovery:
- Bitbucket fails to start
原因
このエラーは、データベースの重複値によって発生します。次のような原因が考えられます。
- ディレクトリ キャッシュの何らかの破損
- データベースの破損
Diagnosis - Find duplicated users in the cwd_user table
診断クエリ - 1: 同じ外部 ID を持ち同じディレクトリに所属する重複ユーザーを cwd_user
テーブルで見つけます。
SELECT directory_id, external_id
FROM cwd_user
GROUP BY directory_id, external_id
HAVING ( COUNT(external_id) > 1)
Diagnosis Query - 2: Find duplicate users in the cwd_user
table that has the same lower_user_name
and belong to the same directory:
SELECT lower_user_name, directory_id
from cwd_user
GROUP BY lower_user_name, directory_id
HAVING (COUNT(lower_user_name) > 1);
Resolution - Deleting the user from the database
Always backup Bitbucket before removing or modifying any data on the database and ensure Bitbucket is shut down.
Once you have completed the above steps, attempt to start Bitbucket to see if the issue has been resolved.
If you continue to experience issues, please contact support.atlassian.com/contact for further help.