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]
Looks like I also needed to configure the Embedded Tomcat Connector as the mirror is behind a proxy, solved :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.