youngmon/atlassian-qna huggingface dataset:
403 Forbidden Error on Bitbucket Webhook To Bamboo Server
Asked by Jonathan Diaz:

Hello,

I am trying to create a webhook that triggers a bamboo job when new code is committed to my bitbucket repo however I continue getting a 403 error when the webhook gets triggered. I followed these instructions

[Webhook Install Steps](https://confluence.atlassian.com/bamboo/triggering-a-bamboo-build-from-bitbucket-cloud-using-webhooks-873949130.html?)

Here is a snippet from the error log.

***\<div id="content"\>***   
***\<p\>The following error was encountered while trying to retrieve the URL: \<a href="<http://10.187.55.108:8000/rest/bitbucket-cloud/latest/webhooks>"\><http://10.187.55.108:8000/rest/bitbucket-cloud/latest/webhooks>\</a\>\</p\>***

***\<blockquote id="error"\>***   
***\<p\>\<b\>Access Denied.\</b\>\</p\>***   
***\</blockquote\>***


Answers:
author: Theodora Boudale
body: Hi Jonathan and welcome to the community!

The IP you are using in the webhook URL, 10.187.55.108, is a private IP address that can be accessed from your local network. Bitbucket Cloud cannot reach a private IP address, it needs either a public IP or a domain name.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Can we restrict what repositories an OAuth Consumer has access to?
Asked by Ryan Taylor:

I want to use an OAuth Consumer to connect our Jenkins server to Bitbucket per the instructions here <https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/master/docs/USER_GUIDE.adoc>

However, I would like to restrict what repos an OAuth Consumer can access, either per repo, or per project. Several questions...

1. Is this doable?
2. Is an OAuth consumer creatable by only admins in the workspace?
3. What determines what repos an OAuth consumer can see?


Answers:
author: Theodora Boudale
body: Hi Ryan and welcome to the community!

The access token obtained from an OAuth consumer can access all repos of the workspace the consumer belongs to.

Only admins of a workspace can create an OAuth consumer.

If you want to restrict access, instead of OAuth you could use the credentials (username and app password) of a Bitbucket account that has access only to the repositories that you want the plugin to access. This could be a new Bitbucket account that you set up only for CI purposes or an existing account.

Please feel free to reach out if you have any other questions.

Kind regards,  
Theodora

comments: author: Ryan Taylor
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)We would prefer to not use an existing user account. Our users tend to have more permissions than our restricted CI accounts and there's the question of what happens when a user leaves the org. Do all the builds break when their account is deactivated?

However, I suspect the the CI only account would contribute to our monthly bill. Can you confirm or deny this?

The OAuth consumer seemed like a good solution, until we saw (and you confirmed) that it has access to all repos in the workspace. We really do not want every Jenkins instance in our org to see all the repos in our workspace.

Is there a feature request for limiting what projects and/or repos an OAuth consumer can access. It seems pretty restrictive for an OAuth consumer to be able to access all projects and repos in the workspace.


author: Theodora Boudale
body: Hi Ryan,

A CI-only account will indeed count as a billable user if it has access to the workspace's private repos.

There is no existing feature request for limiting the repos an OAuth consumer can access. I went ahead and created one in our public issue tracker here:

* <https://jira.atlassian.com/browse/BCLOUD-22778>

Please feel free to let me know if you have any other questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
SourceTree Continues to Push But Never Does; Related to Recent Bitbucket Cloud SSH Update?
Asked by ckamarga:

Hi everyone,

I recently worked on a project after almost 2 weeks and when I try to push some changes, SourceTree gets stuck on the pushing. There's no errors and it doesn't stop responding, it just continues to try pushing my changes.

I was wondering if this is related to an email Atlassian sent a while ago about updating my Bitbucket Cloud SSH host keys?

I'm not a programmer and I don't really understand any of this so I'm not sure if the two are related but I've never had problems pushing before.

It had a link to [this article](https://bitbucket.org/blog/ssh-host-key-changes?utm_source=alert-email&utm_medium=email&utm_campaign=ssh-key-rotation_EML-15879&jobid=106086164&subid=1519950993) about how to update but I also don't understand it. I followed the instructions under "WHAT YOU NEED TO DO" but that didn't seem to work. I assume you run the command through the Terminal in my project's SourceTree branch?

Anyway, can someone explain to me what is happening and how I can fix it? You'll have to dumb things down though for me.

Thanks in advance!


Answers:
author: Theodora Boudale
body: Hi,

If an operation is affected by Bitbucket Cloud Host Key rotation, there is usually a message that 'Host key verification failed' or a warning that the fingerprint of the host has changed.

First, we need to know if your repo is using HTTPS or SSH for Git operations. If you do the following:

1. open this repo in SourceTree
2. select the icon **Settings** from the top right corner
3. select the tab **Remotes**

Does the **Path** for the repo in that tab start with https:// or with git@bitbucket.org ?

What happens if you try to push to the repo from terminal (either SourceTree's or your system's terminal)? What output do you get in this case?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

ssh
SourceTreeSetup-3.1.3???????????
Asked by yamazaki:

???????????? {#toc-hId--1416466135}
-----------------------------------

SourceTreeSetup-3.1.3???????????????

Registration?????

<https://gyazo.com/7f9497be11455572a03bd09976033e61>

??????????

<https://gyazo.com/6cc8cf08cc2b10623df2fca306de392a>

?????????????? {#toc-hId-1071046698}
------------------------------------

???redirect_uri

??????????????????????????????????

BitBacket?????????????

?PC??

windows7

Google Chorome ?????: 75.0.3770.80

SourceTreeSetup-3.1.3.exe

????????????????


Answers:
author: Mike Corsaro
body: Hello! Apologies for the issue, but it should now be resolved.

[You can read more about the incident here.](https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9)

comments: author: Ai Hirama
body: yamazaki?

???????????????????????????

???Mike??????????????????????????????????????????????????????????????URL???????????

???????????????????????????????????????????????????


author: yamazaki
body: It was possible to install!.

Thank you for helping.

????????????

???????????


author: Ai Hirama
body: ????????????????

???????????????????


Tags: language-ja
Bitbucket won't allow me to give access to SourceTree during Sourcetree installer
Asked by maxwaddelow:

When trying to install Sourcetree when I get to the registration portion of the install.

I click the Bitbucket option. Then when I am redirected I login with my Bitbucket credentials. On the next page I am showned the following error where I am supposed to allow Sourcetree access to my BitBucket account.

The sourcetree installer is stuck on waiting for login to finish.

My login credentials are correct as I appear to be signed in.

![Capture.PNG](/t5/image/serverpage/image-id/56646i27BB7A5390B52FE3/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: Mikael Sandberg
body: This is a known issue and Atlassian is working on it, see this thread for more info, <https://community.atlassian.com/t5/Sourcetree-questions/Cannot-login-to-bitbucket-in-order-to-use-sourctree/qaq-p/1100226>.


author: szksgr
body: I am also in trouble with the same thing.

Sorry for not answering.
Invalid redirect_uri
Asked by Draco Dragon:

Hey I just installed Sourcetree and after the install I get a Registration page, log in and then I get this messeage...  

Invalid redirect_uri  
This integration is misconfigured. Contact the vendor for assistance.  
![c98da7d3d5b271c3088529fa8da58f87](/t5/image/serverpage/image-id/56641iB6D72BDABA4B37A0/image-size/large?v=v2&px=999 "c98da7d3d5b271c3088529fa8da58f87")  
Is this something you can help with.


Answers:
author: Jimmy Seddon
body: Hello Everyone!

It looks like you both might be running into this:

<https://jira.atlassian.com/browse/SRCTREEWIN-10965>

While there isn't a posted solution for it yet, you might want to go vote, watch and comment on that issue.

Sorry I can't offer more help.

-James


author: Shogo Takagi
body: I have same issue...
I am having trouble installing Sourcetree. After logging in Bitbucket successfully, I got an error m
Asked by Chuanbing_Lu:

I am having trouble installing Sourcetree. After logging in Bitbucket successfully, I got an error message 'Invalid redirect_uri'. And the url address is '[https://bitbucket.org/site/oauth2/authorize?response_type=code\&client_id=HJdmKXV87DsmC9zSWB\&state=authenticated\&scope=account%20account:write%20team%20team:write%20repository%20repository:write%20repository:admin%20pullrequest%20pullrequest:write%20snippet%20snippet:write%20issue%20issue:write%20wiki%20email%20webhook%20project%20project:write\&redirect_uri=http://localhost:34106/](https://bitbucket.org/site/oauth2/authorize?response_type=code&client_id=HJdmKXV87DsmC9zSWB&state=authenticated&scope=account%20account:write%20team%20team:write%20repository%20repository:write%20repository:admin%20pullrequest%20pullrequest:write%20snippet%20snippet:write%20issue%20issue:write%20wiki%20email%20webhook%20project%20project:write&redirect_uri=http://localhost:34106/) ', what should I do?


Answers:
author: Andy Heinzer
body: Hi Chuanbing,

Sorry to hear about this problem with logging into a Bitbucket account from Sourcetree. However this is not just you that is having this problem. There is currently an outage in regards to Bitbucket Cloud's OAuth tokens are not working correctly. This is the cause of the inability to login here.

Atlassian has just updated our StatusPage about this incident that you can use to track this problem in <https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9>

Once this is resolved I would expect that you should then be able to use Sourcetree without this error.

Sorry again for the inconvenience here.

Cheers,

Andy
When trying to use Bitbucket login to register, I get an error Invalid redirect_uri
Asked by Christian DeAnda:

I have tried clearing my cache on chrome, using Microsoft edge, creating a new account, and a few other things but my Bitbucket account just won't register through sourcetree. I am able to log into bitbucket on my own whim but just not through the "bitbucket" button on the sourcetree setup


Answers:
author: KarateCarrot
body: Having the same issue.

![Bitbucket issue.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/56700i01ABCC57647E6B10/image-size/large?v=v2&px=999 "Bitbucket issue.PNG")


author: Jure Mohar
body: Im having same problem, after installation, next step is registration, I click Bitbucket icon and it redirects me to:

Confirm access to your account

Invalid redirect_uri

This integration is misconfigured. Contact the vendor for assistance.

I able to login to bitbucket directly from Git command line, even certificates are working fine but Sourcetree doesnt allow me to register.

Sourcetree version 3.1.3

Git version 2.21.0

Any ideas?
Invalid redirect_uri error while connecting to Bitbucket
Asked by Sewon Jeong:

I'm getting "Invalid redirect_uri" error during the registration using my Bitbucket account.  
![sourcetree.png](/t5/image/serverpage/image-id/56643iF7AC4DD8D1F994D6/image-size/large?v=v2&px=999 "sourcetree.png")

It seems like it goes through if I manually replace the characters in redirect_uri but the installation window goes back to the Registration step and can't go to the next step.

![sourcetree2.png](/t5/image/serverpage/image-id/56644iF9D2EAC8456FEF29/image-size/large?v=v2&px=999 "sourcetree2.png")

![sourcetree3.png](/t5/image/serverpage/image-id/56645i6A76098A77580A0F/image-size/large?v=v2&px=999 "sourcetree3.png")


Answers:
author: Sewon Jeong
body: This issue is resolved now.

<https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9>


author: Mikael Sandberg
body: This is a known issue and Atlassian is working on it, see this thread for more info, <https://community.atlassian.com/t5/Sourcetree-questions/Cannot-login-to-bitbucket-in-order-to-use-sourctree/qaq-p/1100226>.


author: Jimmy Seddon
body: Hello Everyone!

It looks like you all might be running into this:

<https://jira.atlassian.com/browse/SRCTREEWIN-10965>

While there isn't a posted solution for it yet, you might want to go vote, watch and comment on that issue.

Sorry I can't offer more help.

-James


author: Adrian Krysiak
body: Same problem here. I have tried to install different versions 3.x but problem still exists


author: KarateCarrot
body: Same problem. Does anyone have a solution?


author: Alex Ge
body: Same Problem here, waiting for solution!
Can't login to Sourcetree
Asked by Eric Stimpson:

This is the error I'm getting. {#toc-hId--1416466285}
-----------------------------------------------------

**"Confirm access to your account** {#toc-hId-1071046548}
---------------------------------------------------------

**Invalid redirect_uri**

**This integration is misconfigured. Contact the vendor for assistance."**

We tried restarting computers. We tried lots of things but we can't login..


Answers:
author: Andy Heinzer
body: Hi Eric,

Sorry to hear about this problem with logging into a Bitbucket account from Sourcetree. However this is not just you that is having this problem. There is currently an outage in regards to Bitbucket Cloud's OAuth tokens are not working correctly. This is the cause of the inability to login here and in turn showing that 'Invalid redirect_uri' error message.

Atlassian has just updated our StatusPage about this incident that you can use to track this problem in <https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9>

I would recommend subscribing or watching that incident for update. Once this incident is resolved I would expect that you should then be able to use Sourcetree without this error.

Sorry again for the inconvenience here.

Cheers,

Andy


Tags: bitbucket

issue

login
Can't install SourceTree for Windows due to login errors
Asked by Markus Stobbs:

I only have Bitbucket Server and Bitbucket as login options after installing the current version of SourceTree for Windows. Neither option works for me. I don't even have a local BitBucket. I want to just login with my Atlassian or Github account but never get an option for either even though they're shown in docs. Please help!


Answers:
author: Jimmy Seddon
body: Hi [@Markus Stobbs](/t5/user/viewprofilepage/user-id/2740298),

It's been a while since i did a fresh install of SourceTree, but do you have the option to get to a new tab and select the remote tab?

From here I was able to add a new account, it should look similar to this:

![ConnectingToGitHub.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/56704iB612F1FA62E0C477/image-dimensions/569x410?v=v2 "ConnectingToGitHub.JPG")

If not can you provide anymore information regarding what you are presented with?

Thanks!

-James
Cannont install sourcetree, OAUTH fails with "Invalid redirect_uri"
Asked by dalziel:

I'm doing a fresh install of sourcetree 3.1.3 and when I click on the BitBucket link on the Registration page it takes me to the BitBucket oauth url with a redirect_uri=http://localhost:34106/ parameter.

That page loads with

![Screenshot_1.png](/t5/image/serverpage/image-id/56634iE5E6DDA9AFF9381C/image-dimensions/556x202?v=v2 "Screenshot_1.png")

So I am unable to proceed with the installation.


Answers:
author: Andy Heinzer
body: Hi [@dalziel](/t5/user/viewprofilepage/user-id/72408)

Sorry to hear about this problem with logging into a Bitbucket account from Sourcetree. However this is not just you that is having this problem. There is currently an outage in regards to Bitbucket Cloud's OAuth tokens are not working correctly. This is the cause of the inability to login here and in turn showing that 'Invalid redirect_uri' error message.

Atlassian has just updated our StatusPage about this incident that you can use to track this problem in <https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9>

I would recommend subscribing or watching that incident for update. Once this incident is resolved I would expect that you should then be able to use Sourcetree without this error.

Sorry again for the inconvenience here.

Cheers,

Andy

comments: author: David Schrittesser
body: I am having the same problem now! I am trying to run version 2.7.6 of sourcetree, is there any possibility to do this? I have only this old mac here to work on...
error:1425F175:SSL routines:ssl_choose_client_version:inappropriate fallback
Asked by Hitesh Fuletra:

Hello ,

I am facing error while trying to clone bit bucket repo using source tree.

Here is the full error :

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://abc@bitbucket.org/proj/repo.git  
Output:  
Error: fatal: unable to access 'https://abc@bitbucket.org/proj/repo.git/': error:1425F175:SSL routines:ssl_choose_client_version:inappropriate fallback

Anyone faced same error ?


Answers:
author: Paul Wiedel
body: I ran into the same issue using windows version 2.22 of git. I reverted to 2.18 and I don't have that issue anymore.
"installation has failed " error!!!
Asked by ???:

I tried to install sourcetree to connect with git service.

but I failed to installation.

the error message is that installation has failed like below.

![image.png](/t5/image/serverpage/image-id/56508i9D9558A6B0B894BD/image-size/large?v=v2&px=999 "image.png")

and when I click the "open setup log" to check the log, it didn't open any file.

how can I install the source-tree?!!

To solve the problem, I tried with several versions (1.10.24.1/ 3.1.3) but all failed.

I'm using those specs.

-windows10

-git 2.20.1


Answers:
author: Mike Corsaro
body: Hello! Can you make sure you have write permissions to AppData/Local (verify your anti-virus isn't stopping the install), and make sure you have the latest Windows updates?

If that doesn't work, could [you try using the Enterprise installer](https://www.sourcetreeapp.com/enterprise)?

Thanks!


Tags: install
Change associated app link for first time sign in
Asked by Brenden:

Installed Sourcetree app, doing first-time sign on, redirect to weblink and it keeps wanting to open with my Tower app, not Sourcetree. This is on a mac. How can this be corrected?![Screen Shot 2019-06-03 at 10.11.25 AM.png](/t5/image/serverpage/image-id/56429iC110B4BF14CA4801/image-size/large?v=v2&px=999 "Screen Shot 2019-06-03 at 10.11.25 AM.png")


Answers:
author: bgannin
body: <https://community.atlassian.com/t5/Sourcetree-questions/Can-t-login-to-Sourcetree-on-Mac-with-Tower-installed/qaq-p/995952#M27458>
store only one password using keychains on Mac
Asked by Hao Raphael:

I can store only one password for a repo when cloning with ssh. When cloning the second repo, it will always prompt to ask for my password and store it into keychain. But it always fails to store it.


Answers:
author: bgannin
body: Hi [@Hao Raphael](/t5/user/viewprofilepage/user-id/2644600),

Our apologies for the hiccup with authentication; unfortunately I don't have a quick fix beyond making sure the SSH key is loaded into the agent with *ssh-add \~/.ssh/your_key* from the command line. There are some known issues in the overall architecture and it's going to be thoroughly reviewed in a future update to clear up the bumps for folks.

Brian Ganninger  
Principal Developer, Sourcetree


Tags: mac
Fetch from a specified branch in Sourcetree
Asked by Brett Wilson:

Is it possible to have the pull button display how many commits you are behind a separate specified branch? Since fetch only seems to do this for changes the current active branch.

Essentially I'd like to be notified when changes are made to the original source I cloned my branch from so I can pull in those changes before I try and create a pull request into that branch.

The only alternative is to just regularly pull from the other branch into my current branch, or to right click on the branch and do a diff in the remote section. But I'd prefer an automatic solution to be visible. Is this possible?

Thanks in advance.


Answers:
author: Mike Corsaro
body: Hello! This is not currently available in either the mac or windows version of Sourcetree, but we appreciate the suggestion ?


Tags: fetch
Is there a way to do a PR from sourcetree where the remote is codecommit?
Asked by Bhavish Pulnah:

Is there a way to do a PR from sourcetree where the remote is codecommit?


Answers:
author: Mike Corsaro
body: Hello! Unfortunately Sourcetree doesn't currently support CodeCommit, however if we see enough demand for this we'd be happy to add it into a future version.

Thanks!
Memory leak/issues with 3.2, as well as 3.1.1
Asked by John Paul Wilkens:

Edit: After updating to 3.2, same issue is happening.

Sourcetree has been consistently taking up \~110% of my computer's memory, and I have to keep killing it. Not sure what is causing it. It's almost unusable.

![Screen Shot 2019-05-31 at 12.39.01 PM.png](/t5/image/serverpage/image-id/56289i5A8A62060046E0CF/image-size/large?v=v2&px=999 "Screen Shot 2019-05-31 at 12.39.01 PM.png")![Screen Shot 2019-05-31 at 12.40.41 PM.png](/t5/image/serverpage/image-id/56290i6AFB9A3DF4476911/image-size/large?v=v2&px=999 "Screen Shot 2019-05-31 at 12.40.41 PM.png")


Answers:
author: Jesika DiGregorio
body: I find that viewing files with a lot of changes slows things down drastically and that those resources are not release, even after that file is no longer being viewed in the UI. Even if that file is staged or otherwise removed from the list, the resources are still taxed. It is resolved by restarting SourceTree, but is a very frustrating issue.

I am running on Windows version 3.2.6 and was looking for a resolution to this and see that there isn't one in the release notes.


author: Theodore Gonzalez
body: I'm using 4.0.1 and I still see SourceTree using 28GB of ram.


author: John Paul Wilkens
body: Update: Updating app didn't resolve. Still have the leak happening.

I'm installing the update for now, but I'm sure there are people still using 3.1.1

I'll update back if I still have this issue with 3.2


Tags: memory
Not able to Pull/Push/Clone from GIT. But Sourcetree able to do
Asked by Suresh Neelakandan:

Not able to Pull/Push/Clone from GIT. But Sourcetree able to do all flows.

I am new to sourceTree. I am trying to setup local git bash. From souce tree I am able to do all the actions on the repo. But from my Git Bash cannot even do clone. I am getting SSL certification error. No Local certificate found. Actually I am behind a corporate proxy.

In sourcetree, the proxy is set to "Use System Proxy". I have added my user to Credential Manager.


Answers:
author: bgannin
body: Hi [@Suresh Neelakandan](/t5/user/viewprofilepage/user-id/3270096),

Are you on Windows or Mac? What version of Sourcetree are you using?

Brian Ganninger  
Principal Developer, Sourcetree


Tags: git