Unable to connect Bamboo Server to BitBucket Cloud

I have installed Bamboo (6.3.1 build 60306) on an Ubuntu 16.04 instance.

I'm attempting to add a Linked Repository to connect to my BitBucket cloud instance.

In order to do that I've added the "Shared Credentials" of type SSH.

Now, when I attempt to add a new "Linked Repository" and choose the option "Use shared credentials to authenticate" I get the following error message:

"No shared credentials of this type have been defined. You can configure them in administration panel on Shared credentials page.

More information about shared credentials can be found in the documentation."

Screen Shot 2018-01-28 at 9.05.18 AM.png

 

I've tried adding a "Shared Credentials" of type "Username & Password", which shows up when I attempt to add a new "Linked Repository". However, when I click on "Load Repositories", I get the error message "Failed to load data from Bitbucket. [403 Forbidden]"

Screen Shot 2018-01-28 at 9.03.41 AM.png

2 answers

This widget could not be displayed.

Thanks to Atlassian Support for a quick resolution on this.

 

The challenge was that I was running Bamboo behind a Reverse Proxy (nginx).

 

The solution is described in -> https://confluence.atlassian.com/bamkb/failed-to-load-data-from-bitbucket-403-forbidden-attempting-to-create-a-bitbucket-cloud-repository-in-bamboo-fails-869183268.html

This widget could not be displayed.

Can you please confirm username/password you used for Shared credentials works if you enter them at create Linked repository form

When I key in the credentials directly on the "Linked repository form" and click on "Test Connection", I get the following error message:

Screen Shot 2018-01-28 at 10.18.25 AM.png

When I click on the button "Load Repositories", I get "Failed to load data from Bitbucket. [403 Forbidden]":

Screen Shot 2018-01-28 at 10.18.46 AM.png

I think I'm running into trouble because I'm running my Bamboo Server behind a Reverse Proxy Server (nginx). Here's my configuration file:

 

upstream bamboo_server {

        server 111.222.333.444:8087;

}

 

server {

        listen 80;

        listen [::]:80;

 

        server_name ci.xxxxxxxxx.com;

 

        access_log  /var/log/nginx/ci_xxxx_com_access.log;

        error_log   /var/log/nginx/ci_xxxx_com_error.log;

 

        location / {

                proxy_pass http://bamboo_server;

        }

}

 

What would I need to change?

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 Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

127 views 5 2
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