Cluster View Node Names are missing or environmental variables are not picked up by Bitbucket Data Center process

Still need help?

The Atlassian Community is here for you.

Ask the community


 

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. 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.

*Except Fisheye and Crucible

Summary

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.

Environment

Any supported version with automated deployment or containers.

Diagnosis

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)'


Cause

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+)' }}

Solution

Check the syntax and fix the typos or add quotes for the string values and restart the instance (container).

Last modified on Nov 20, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.