How do I debug Bamboo/Bitbucket Cloud connection problems? Edited

I'm trying to create a Bitbucket Cloud repository in my Bamboo instance, but I keep getting connection errors (specifically, 403s, when I try to load repos).

I know that the username and password is correct, because I have scrupulously tested this aspect of it.

I do see that I'm getting `XSRF check failed` back from the Bitbucket Cloud... why?

Is there a way to get any deep insight into the problem at hand so that i can resolve it?

1 answer

1 accepted

This widget could not be displayed.

Hi Dan,


Thank you for reaching out to us. I understand that you are getting an XSRF error when adding a Bitbucket Cloud repository.

When Bamboo retrieves the repositories on Bitbucket Cloud, it calls an endpoint on the Bamboo API first. In general, the source of the XSRF errors is Bamboo's Tomcat server not being configured for the correct URLs.

This can often be related to reverse proxies. Please check


and add the following (replacing the placeholders as needed) to the first (uncommented) Connector in that file:

<!-- add this if the port you access Bamboo on is not 8085 -->
<!-- add this if the URL you access Bamboo on is not its hostname -->
<!-- add the following if using https -->

Once that has been added, please restart Bamboo for the changes to take effect.

Please do not hesitate to reach out if you have any other questions.

Elias | Bamboo Support

Thanks Elias -

I'm trying this now, but is this documented somewhere? If so, I must have missed it...

That did it!



Elias Zeidan Atlassian Team Nov 20, 2017

Hi Dan,

Great! I'm glad to hear that our suggestion was able to help you out. 

In case other users may find this answer helpful, could you please mark it as "Accepted" by clicking the check mark by my first reply?

Finally, for further details on the steps posted above, we do have some mentions of this in our proxy documentation, such as the following articles:

Elias | Bamboo Support

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

70 views 2 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