Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Database properties ignored in bitbucket.properties?

Deleted user August 8, 2018

So I going to run BitBucket server 5.13.0 in a docker container. 

In my docker file I copy a bitbucket.properties file to BitBuckets Home directory.

It contains:

setup.displayName=VCS
setup.baseUrl=http://sourcecontrol.remoteiv.dk
setup.license=AAAB...
setup.sysadmin.username=admin
setup.sysadmin.password=password
setup.sysadmin.displayName=Admin Istrator
setup.sysadmin.emailAddress=someone@some.com

# Database connection parameters
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://sourcecontrol.db.dk:5432/bitbucket
jdbc.user=bitbucket
jdbc.password=bitbucket
db.pool.size.max=80
db.pool.timeout.connect=15
application.mode=default

I can see that it *does* read the properties file.

 

2018-08-08 12:15:20,804 INFO [spring-startup] c.a.s.i.s.g.t.DefaultTranscodeServer Callback socket listening at 127.0.0.1:42701
2018-08-08 12:15:22,465 INFO [spring-startup] c.a.s.i.bootstrap.BootstrapOperation Application created
2018-08-08 12:15:22,896 INFO [spring-startup] c.a.s.i.bootstrap.BootstrapOperation Directory created
2018-08-08 12:15:23,109 INFO [spring-startup] c.a.s.i.bootstrap.BootstrapOperation Group added
2018-08-08 12:15:23,111 INFO [spring-startup] c.a.s.i.bootstrap.BootstrapOperation Found setup.license property in bitbucket.properties
2018-08-08 12:15:23,144 INFO [spring-startup] c.a.s.i.bootstrap.BootstrapOperation Creating initial sysadmin user...
2018-08-08 12:15:23,413 INFO [spring-startup] c.a.s.i.bootstrap.BootstrapOperation Created the initial sysadmin, user name: admin
2018-08-08 12:15:23,426 INFO [spring-startup] c.a.s.i.bootstrap.BootstrapOperation Found setup.baseUrl property in bitbucket.properties
2018-08-08 12:15:23,504 INFO [spring-startup] c.a.s.i.bootstrap.BootstrapOperation Found setup.displayName property in bitbucket.properties
2018-08-08 12:15:23,527 INFO [spring-startup] c.a.s.i.bootstrap.BootstrapOperation Application setup completed successfully

But it just *ignores* the Database properties and starts up with the default *internal* database.

I can then go into the UI and successfully migrate it to the postgres database, which is running as another container. So I *know* it can connect.

Anyone have any idea as to *why* the database properties are being ignored?

3 answers

1 accepted

0 votes
Answer accepted
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 8, 2018

Hi Timothy,

You said you placed bitbucket.properties in the Bitbucket home directory - did you mean you placed in the root of the Bitbucket home directory or in the "shared" folder underneath the home directory (where it needs to go)?

I wonder if you have two files (one in <BitbucketHome> and one in <BitbucketHome>/shared) and you modified <BitbucketHome>/bitbucket.properties but Bitbucket Server reads <BitbucketHome>/shared/bitbucket.properties.

 

Cheers,

Christian

Premier Support Enginee

Atlassian

Deleted user August 8, 2018

Thanks for replying :-)

Yes I had it in the root of home. That is what is described here: https://confluence.atlassian.com/bitbucketserver/bitbucket-server-config-properties-776640155.html

I am quite sure that there is not a properties file in the shared directory and as shown in the output. It does read a portion of the file, at least.

I will try with the properties file in shared directory and get back.

Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 9, 2018

Hi Timothy,

On that page it says (highlighting mine):

Create the bitbucket.properties file, in the shared folder of your home directory

The file definitely needs to be in the shared directory - not sure why it would be reading it from the home directory.

Cheers,

Christian

Premier Support Engineer

Atlassian

0 votes
Deleted user August 9, 2018

@Christian Glockner - On a side note. Is there anyway to bootstrap the LDAP user directory configuration?

 

I see nothing in the bitbucket.properties file regarding this. 

Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 9, 2018

Hi Timothy,

Unfortunately the configuration of LDAP is only available via the UI.

Cheers,

Christian

Premier Support Engineer

Atlassian

Deleted user August 9, 2018

Ok. And again thanks for the help!

0 votes
Deleted user August 9, 2018

@Christian Glockner - This worked. I just needed to place it in the shared directory :-)

 I can see now it does say shared directory of the home. Could be nice if it was in bold ;-)

Thank you for the help!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events