Bitbucket service integration with JIRA: Access denied

I've linked our Bitbucket Team Account with our local JIRA 5.2 and enabled Smart Commits. Now, when I commit something to Bitbucket I see the following requests from Bitbucket in the log files of our webserver.

63.246.22.222 - - [13/Dec/2012:12:16:13 +0100] "POST /rest/bitbucket/1.0/repository/9/sync HTTP/1.1" 303 3101 "-" "Bitbucket.org"
63.246.22.222 - - [13/Dec/2012:12:16:14 +0100] "GET /rest/bitbucket/1.0/repository/9 HTTP/1.1" 401 656 "-" "Bitbucket.org"

To the first request (POST) the server responds with a redirect (303) and to the second one (GET) the server responds with an error (401).

The complete response from the server to the second request is:

HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1
X-AREQUESTID: 865x2878x1
Set-Cookie: atlassian.xsrf.token=BAES-MLPM-2DFH-5G92|4c8a91798d277c8e6cd80ab4efeb56965cf28384|lout; Path=/
X-AUSERNAME: anonymous
Cache-Control: no-transform
Vary: Accept
WWW-Authenticate: OAuth realm="https%3A%2F%2Fjira.example.com"
Content-Type: application/xml;charset=UTF-8
Content-Length: 174
Date: Thu, 13 Dec 2012 13:25:08 GMT

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>401</status-code><message>Client must be authenticated to access this resource.</message></status>

It looks like that some kind of authentication is required but is missing. What could be the problem?

1 answer

1 accepted

This widget could not be displayed.

Hi,

Since this is a very specific error and we need to perform a more carefuly debug on your side too, please raise a support ticket at href="https://support.atlassian">https://support.atlassian.com

Lucas Lima

Atlassian Support

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

132 views 1 3
Join discussion

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