Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Issue installing Sourcetree & cloning repository

Dear Atlassian,

Kindly assist. We re trying to install SourceTree on a Corporate network which is Firewalled & Proxy controlling Internet Access. The following ip's has been allowed for Bitbucket as per the Cloud Bitbucket IP list in your post. 

When installing the Software at the Connect an account screen, we choose OAuth as the Authentication method, which takes you to to log in. Once logged in the redirects to a localhost site (http://localhost:34106/?state=authenticated&code=cuJDmeFSS5erYHceBq)  "page cannot be displayed. On the Sourcetree app we get an error "Unable to get secret, Unable to get user secret, Request for an OAuth Request_token was denied." When choosing basic and entering your atlassian log in details it works, but this is not how the client wants to authenticate as it works fine on open network. I have also allow the, and on the proxy. The atlassian site ip addresses is also included in the ip addresses we have allow as per above. When adding these 3 domains/ip addresses on the firewall however it causes Internet issues in our environment.

2.The embedded Git and Mercurial package could not be installed during the sourcetree setup, it give an error: Unable to extract filename and filepath, unable to connect to remote server. 

3. When trying to clone a repository it gives a message Invalid path. 
A connection attempt failed because the connection party did not properly respond after a period of time, or established connection failed. We added proxy settings on sourcetree software, but this does not seem to resolve the issue.

3. When trying to clone a repository it gives a message Invalid path

May you kindly assist  and advise what Firewall/proxy access is required for sourcetree to install properly and to clone repositories from bitbucket.,, download.atlassian and sourcetree sites are all working when opening it in the browser, for some reason something else seems to be preventing properly communication.

Thank you

1 answer

0 votes
BillyP Community Leader Jan 26, 2018


Just to check a few things. 

 - You don't have two factor authentication on right?  That could cause a hiccup on initial setup.  

 - Where are you authenticating to?  

Hi Billy

Thanks for the response. Please clarify, "two factor authentication" on where exactly. Authentication is only done on proxy when browsing.

BillyP Community Leader Jan 29, 2018

Two Factor Authentication is when you get a text sent to your phone to confirm it's actually you logging in and not someone with your username and password.  This is a required check by some systems/ policies.  

My other question was asking where your user credentials are.  If they are on a local server, then you'll need to setup your system to reference that local server.  

If it's in the cloud, then point bitbucket to the cloud server so it can authenticate the users. 

Yip, no we do not use two factor authentication. All other issues has been resolved except the authentication to the bitbucket site while installing sourcetree. The OAuth aunthetication works now when setting default browser to chrome, as soon as the page launch to enter your bitbucket details in IE the page redirects to the localhost:34106/state=authenticated link, and generate message - (This page cannot be displayed). Then gives the "unable to het secret" error message. Not sure why it only does it in IE.  Can you perhaps advise what the issue may be? Question2: Does the software require proxy settings in the network tab or is this not required?

q3: when doing a trace during The git & mercurial download there are connection attempts to, this is cirrently blocked on our side. Why is it initiating connection to this site. Does all the amazonaws ips need to be allowed on the fw or just the ips?


Thank you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in DevOps

GitHub Script with GitHub Actions Automating Workflows

Hello folks, This is a series of articles where I explain GitHub Script with GitHub Actions and how you can automate publishing data on Atlassian & GitHub Platform based on the results of Workf...

119 views 1 2
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you