I am trying to create an application link from Jira to Bitbucket, but I am getting the following error:
"We couldn't connect to Bitbucket, possibly because that instance is behind a misconfigured proxy."
I have setup JIRA to run over HTTPS via apache and everything is up and running, but the application link. I am able to access bitbucket by the URL directly (https://mybitbucketaddress.com). Please advise.
Hey Caleb,
If you are running Bitbucket behind a reverse proxy, please make sure you have the proxy information added in your server.xml of Bitbucket. Please see Reverse Proxy and Application Link Troubleshooting Guide for details.
Regards,
Prasanth - Atlassian
Hello Prasanth,
I already had done that (in our version of bitbucket it is using a hidden file called default-server.xml) with the configuration looking like the following:
<Connector port="7990" protocol="HTTP/1.1"
connectionTimeout="20000"
useBodyEncodingForURI="true"
redirectPort="443"
compression="on"
compressableMimeType="text/html,text/xml,text/plain,text/css,application/json,application/javascript,application/x-javascript"
secure="true"
scheme="https"
proxyName="MyBitbucketAddress.com"
proxyPort="443"
Furthermore we are using version 4.10.1 so bitbucket.properties is not an option yet.
The one piece that is different between my JIRA/Confluence config files and the Bitbucket one is the Secure="True" section. I do not have this value in JIRA and Confluence, but the Bitbucket documentation explicitly stated to add this property. Should this be left in there?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Celeb,
I am not sure about default-server.xml. Probably that explains why it is not working. You should see server.xml in BITBUCKET_INSTALLATION/conf and the change need to be done there.
we recommend using secure="true", especially when you have a reverse-proxy and SSL terminates on proxy.
Prasanth - Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not have a file in that location called server.xml, only the default-server.xml. Could this be because I am using a starter version of Bitbucket?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello I just wanted to follow up on this as I still have not been able to resolve. Any more advice?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Caleb,
Add JIRA's SSL cert to Bitbucket's JVM and vice versa.
What version of Bitbucket are you running?
You may want to look into bitbucket.properties configurations
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Edwin,
Thanks for the response!
JIRA, Confluence and Bitbucket are all running from the same server with an Apache reverse proxy. The Bitbucket version is 4.10.1.
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.