upgrading bitbucket 5.0 config errors Edited

We were using the following:

<Connector port="10443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxHttpHeaderSize="8192" SSLEnabled="true"
maxThreads="150" minSpareThreads="25"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" useBodyEncodingForURI="true"
SSLCertificateFile="C:/Apache24/ssl/SelfSigned2017.crt"
SSLCertificateKeyFile="C:/Apache24/ssl/SelfSigned2017.key"/>

<Connector port="10444" redirectPort="10443" enableLookups="false" protocol="AJP/1.3" URIEncoding="UTF-8"/>

 

I've tried  

server.port=10443
server.secure=true
server.scheme=https
server.ssl.enabled=true
server.ssl.client-auth=want
server.ssl.protocol=TLS
server.ssl.key-store=C:/Program Files/Java/jre1.8.0_121/lib/security/cacerts

but all i get is 

Caused by: org.springframework.boot.context.embedded.tomcat.ConnectorStartFailedException: Connector configured to listen on port 10443 failed to start

 

Update: I got it to start with the following-

server.port=10444
server.redirect-port=10443
server.ssl.protocol=AJP/1.3

server.additional-connector.1.port=10443
server.additional-connector.1.secure=true
server.additional-connector.1.scheme=https
server.additional-connector.1.ssl.enabled=true
server.additional-connector.1.ssl.protocol=TLSv1.2
server.additional-connector.1.ssl.key-store=C:/Atlassian/devkeys.jks
server.additional-connector.1.ssl.key-store-password=changeit
server.additional-connector.1.ssl.key-password=changeit
server.additional-connector.1.ssl.key-alias=devcode
server.additional-connector.1.ssl.client-auth=want
server.additional-connector.1.ssl.key-store-type=jks 

But now the issue is the AJP redirect. We're using apache as the proxy. I tried just server.protocol=AJP/1.3, but then it refuses to start. 

 

Update 2: And then I find out that AJP is no longer supported. I seem to have got it working with making apache just proxy to https://:10443 for the moment.

1 answer

0 vote

Hi  Josh, have you tried using a different port? To do so, you can follow the instructions at Changing the port that Bitbucket Server listens on.

Best regards!

Ana

 

I updated the post with the latest attempts that got it to start. Now I'm working on the redirect from apache.

Is there a config property for the redirect to use AJP?

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

699 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot