Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to authorize mirror ''bitbucket.mirror...' specifies a 'baseUrl' with the scheme 'http''

Joshua Transez April 18, 2020

Hi all

I'm currently in the process of setting up a mirror for our Bitbucket (7.1.0) installation however I've hit a roadblock.

Whenever I try to authorize a mirror I get the error below. I've tried several times already and I'm possitive that I've set the baseurl to 'https' each time but so far without luck. Hopefully anyone here can help me out?

Reason 'Add-on 'bitbucket.mirror.brbd-3dtf-4wpm-i6gm' specifies a 'baseUrl' with the scheme 'http'. Add-ons running in production must be hosted on a domain protected with 'https'')

Edit: When looking through the logs I can see the following

2020-04-18 10:22:16,639 ERROR [http-nio-7990-exec-7] administrator @AWSKQZx622x295x0 srouu7 10.201.128.9,127.0.0.1 "POST /rest/mirroring/latest/requests/4/accept HTTP/1.0" c.a.b.i.m.u.DefaultMirroringRequestService Failed to change state of mirroring request for https://[mirrorUri]

1 answer

1 accepted

2 votes
Answer accepted
Joshua Transez April 18, 2020

Looks like I also needed to configure the Embedded Tomcat Connector as the mirror is behind a proxy, solved :)

Friedrich Brunzema June 25, 2021

Joshua, can you be more specific as to what you did?

Deepak Maharana September 23, 2023

As @Joshua Transez mentioned, Tomcat server of the mirror instance has to be updated with the protocol as https.

Reference: https://confluence.atlassian.com/bitbucketserverkb/you-are-accessing-bitbucket-from-a-url-that-does-not-match-the-configured-base-url-833941720.html

Append following lines to $BITBUCKET_HOME/shared/bitbucket.properties

 

 server.secure=true
 server.scheme=https
 server.proxy-port=443
 server.redirect-port=443

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events