BitBucket server JIRA link oauth 500

When trying to connect Bitbucket server to JIRA we get an error setting up the OAUTH link from Bitbucket server to JIRA. In the tab a 500 server error appears. In the log we see:

2016-03-22 10:28:56,125 ERROR [http-nio-7990-exec-2] admin @CZ0RUIx628x3608x0 1im9ygn, "GET /plugins/servlet/applinks/auth/conf/oauth/add-consumer-by-url/c6394b92-2873-351f-123d-76b02a3e1234 HTTP/1.1" org.apache.velocity ResourceManager : unable to find resource 'auth/applink-missing.vm' in any resource loader.

2016-03-22 10:28:56,188 ERROR [http-nio-7990-exec-2] @CZ0RUIx628x3609x0 1im9ygn, "GET /mvc/error500 HTTP/1.1" c.a.s.i.web.ErrorPageController There was an unhandled exception loading [/plugins/servlet/applinks/auth/conf/oauth/add-consumer-by-url/c6394b92-2873-351f-123d-76b02a3e1234]

The other way around, JIRA to Bitbucket server seems to work fine. We can enable and disable oauth from within the link in JIRA. All tips are welcome smile

Best Regards,
Willem Jan




1 answer

I have the same issue. Do you have any progress solving it?

Hi Eugene, our problem was related to IIS. We have BitBucket running on Windows/IIS. We use Application Request Routing (AAR) to redirect request to the appropriate site. In fact we also run Bamboo in this server as it is our test environment. Eventually I found some article which lead us to our solution.

The problem is caused by AAR. By default it uses 'Reverse rewrite host in response headers'. This option is found in Application Request Routing Cache at the IIS root site level. We unchecked the checkbox and it worked. Here is an article: Look at the item 'Configure ARR as Forward Proxy' bullet number 5...

Hope this also helps in your case!

Hi! Thx a lot. My problem was not with IIS, but also about proxy.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

280 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you