You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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]
As @Joshua Transez mentioned, Tomcat server of the mirror instance has to be updated with the protocol as https.
Append following lines to $BITBUCKET_HOME/shared/bitbucket.properties
server.secure=true server.scheme=https server.proxy-port=443 server.redirect-port=443