Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Where is server.xml and bitbucket.properties files?

Hi,

 

I just installed Bitbucket (BB) server 6.3.2 via .bin installation. I understand it created user id atlbitbucket and the following directories:

Installation directory: /opt/atlassian/bitbucket/6.3.2

Home directory: /var/atlassian/application-data/bitbucket

I have read many posts and articles already. I cannot locate both server.xml and bitbucket.properties files.

Can somebody help?

Thank you.

Barry

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg Community Leader Jun 11, 2019

Hi Barry,

server.xml was used before Bitbucket 5.0 and was part of Tomcat, and you could make customization to a number of things in this file, like running Bitbucket behind a proxy, setting the port Bitbucket runs on etc. As of 5.0 Atlassian changed how you make these customizations are performed and introduced bitbucket.properties. You can read more about the switch here, Migrate server.xml customizations to bitbucket.properties.

The bitbucket.properties files is not automatically created when you install Bitbucket, you have to manually create it if you want to make changes to the default properties. The file should be created under <Bitbucket home directory>/shared directory. Bitbucket Server config properties list all the behaviors you can set using this file.

I am now seeing bitbucket.properties file.

Contents:

#>*******************************************************

#> Migrated to database at jdbc:postgresql://localhost:5432/bitbucket

#> Updated by Barry Au-Yeung on 2019-06-10T14:43:40.447-07:00

#>*******************************************************

jdbc.driver=org.postgresql.Driver

jdbc.url=jdbc:postgresql://localhost:5432/bitbucket

jdbc.user=bitbucketuser

jdbc.password=jellyfish

Is this mean BB is accessing a database called bitbucket using bitbucketuser id?

 

About the properties file, This is very strange... Here is the directory list from yesterday... I configured the DB yesterday...

root@bitbucket:~# ls -la /var/atlassian/application-data/bitbucket/shared/

total 28

drwxr-xr-x  6 atlbitbucket atlbitbucket 4096 Jun  7 13:36 .

drwxr-xr-x 12 atlbitbucket atlbitbucket 4096 Jun 10 11:45 ..

drwxr-xr-x  5 atlbitbucket atlbitbucket 4096 Jun  7 13:30 config

drwxr-xr-x  8 atlbitbucket atlbitbucket 4096 Jun  7 13:36 data

-rw-r--r--  1 atlbitbucket atlbitbucket   15 Jun  7 13:36 .lock

drwxr-xr-x  3 atlbitbucket atlbitbucket 4096 Jun  7 13:30 plugins

drwxr-xr-x  4 atlbitbucket atlbitbucket 4096 Jun  7 13:30 search

root@bitbucket:~# ls -la /opt/bitbucket/shared

Mikael Sandberg Community Leader Jun 11, 2019

Correct, the database BB is using the bitbucket db and connect to it with the bitbucketuser id.

I would highly recommend adding the "The bitbucket.properties files is not automatically created when you install Bitbucket, you have to manually create it if you want to make changes to the default properties. " to the 

https://confluence.atlassian.com/bitbucketserver/securing-bitbucket-server-with-tomcat-using-ssl-776640127.html#SecuringBitbucketServerwithTomcatusingSSL-configuretomcat 

documentation page.

Like oscarys likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

514 views 6 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you