The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Bitbucket docker and SSL setup for v 5.11.1

Dave Buchholz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 31, 2018

We are running bitbucket v 5.11.1 in docker on RHEL7.5. We have been unable to get SSL properly configured.

Anyone know how to set this up for docker?

We have followed:

https://confluence.atlassian.com/bitbucketserver0511/administering-bitbucket-server/proxying-and-securing-bitbucket-server/securing-bitbucket-server-with-tomcat-using-ssl

Here's the bitbucket.properties file:

server.additional-connector.1.port=8443
server.additional-connector.1.server.ssl.enabled=true
server.additional-connector.1.server.ssl.key-store=/opt/bitbucket/shared/config/bitbucket_keystore.jks
server.additional-connector.1.server.ssl.key-store-password=********
server.additional-connector.1.server.ssl.key-password=********

And a snippet of the log. It looks like it cannot find the keystore file defined in the config file (which is odd since it can read the config file to find the path):

Have tried changing the path setting to relative and also container native:

server.additional-connector.1.server.ssl.key-store=/var/atlassian/application-data/bitbucket/shared/config/bitbucket_keystore.jks

server.additional-connector.1.server.ssl.key-store=shared/config/bitbucket_keystore.jks

docker run option: -v /opt/bitbucket:/var/atlassian/application-data/bitbucket

 

It's there:

[root@git log]# file /opt/bitbucket/shared/config/bitbucket_keystore.jks
/opt/bitbucket/shared/config/bitbucket_keystore.jks: Java KeyStore

 

 :: Spring Boot ::       (v1.5.12.RELEASE)


2018-10-30 13:10:29,610 INFO  [main]  c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication on 018491ed4573 with PID 68 (/opt/atlassian/bitbucket/app/WEB-INF/classes started
by daemon in /var/atlassian/application-data/bitbucket)
2018-10-30 13:10:29,611 INFO  [main]  c.a.b.i.b.BitbucketServerApplication No active profile set, falling back to default profiles: default
2018-10-30 13:10:32,757 INFO  [main]  c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 5.11.1 (ca3ded2 built on Sat May 26 06:25:16 GMT 2018)
2018-10-30 13:10:32,758 INFO  [main]  c.a.b.i.boot.log.BuildInfoLogger JVM: Oracle Corporation OpenJDK 64-Bit Server VM 1.8.0_151-b12
2018-10-30 13:10:36,206 ERROR [main]  o.a.catalina.core.StandardService Failed to start connector [Connector[HTTP/1.1-8443]]
org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8443]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(TomcatEmbeddedServletContainer.java:265)
    at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:208)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
    at com.atlassian.bitbucket.internal.boot.BitbucketServerApplication.start(BitbucketServerApplication.java:246)
    at com.atlassian.bitbucket.internal.boot.BitbucketServerApplication.main(BitbucketServerApplication.java:82)
    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
    at com.atlassian.bitbucket.internal.launcher.BitbucketServerLauncher.start(BitbucketServerLauncher.java:151)
    at com.atlassian.bitbucket.internal.launcher.BitbucketServerLauncher.main(BitbucketServerLauncher.java:99)
    ... 5 frames trimmed
Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed
    at org.apache.catalina.connector.Connector.startInternal(Connector.java:1020)
    ... 16 common frames omitted
Caused by: java.lang.IllegalArgumentException: /opt/bitbucket/config/bitbucket_keystore.jks (No such file or directory)
Caused by: java.io.FileNotFoundException: /opt/bitbucket/config/bitbucket_keystore.jks (No such file or directory)

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events