Cluster View Node Names are missing or environmental variables are not picked up by Bitbucket Data Center process
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
要約
In the case of automated deployments that is Chef, Ansible, etc., or containers like Docker or Kubernetes most of the settings are passed to the Bitbucket java process with the help of environmental variables.
It is important to control if the values are passed correctly to the process.
環境
Any supported version with automated deployment or containers.
診断
You can see which environmental variables and Java properties are passed to the Bitbucket process under Administration (Support) → Troubleshooting and support tools → System Information (Sections Java Runtime Environment and Environment variables)
If the list of the variables and properties differs from the one you configured and verified on the OS level (Docker describe container, kubectl describe pod etc.) then there is an issue with the syntaxis of one of the variables you set.
Check the startup logs for the syntax errors:
/opt/atlassian/bitbucket/bin/_exec-webapp.sh: eval: line 60: syntax error near unexpected token {{('
/opt/atlassian/bitbucket/bin/_exec-webapp.sh: eval: line 60: }}echo Dcluster.node.name=bitbucket-test2 -Dintegration.jira.key.pattern=([A-Z][A-Z0-9]\d)'
原因
Syntax errors or missing double quotes in value can cause the process to disregard further variable settings.
For example following declaration in Docker has missing double quotes for Dintegration.jira.key.pattern
JVM_SUPPORT_RECOMMENDED_ARGS: >-
-Dcluster.node.name={{ inventory_hostname }}@{{ ansible_hostname }}
-Dintegration.jira.key.pattern={{ '([A-Z][A-Z0-9]+-\d+)' }}
ソリューション
Check the syntax and fix the typos or add quotes for the string values and restart the instance (container).