Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

Edited

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

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

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

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