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

Sourcetree setup - unable to login to Bitbucket server

Mark Apr 23, 2018

I have just installed Sourcetree, going through initial setup, and I cannot login to my Bitbucket server. 

For ROOT URL I am using https://bitbucket.org/DU3O/

For username I am using DU3O

The error I am getting is: Failed to check login for user [DU3O]: the URL 'https://bitbucket.org/DU3O/rest/api/1.0/users/DU3O' returned code 'NotFound'

I have tried using my email address as my username, but in that case I get the error: Invalid URI: The hostname could not be parsed

Thanks in advance for any help in resolving this.

9 answers

1 accepted

17 votes
Answer accepted
Andrew Finnell Jun 07, 2018 • edited

It may be important to know that BitBucket Server is a product line from Atlassian, and is different than the Cloud based BitBucket.org. It's quite possible this is why you're experiencing an error. BitBucket Server is installed inside a corporation and the domain is typically one designed by the corporation itself such as https://devops.acme.co/bitbucket.

I hope this helps.

Jim Simpson Jun 22, 2018

Oh my gosh.  How FRUSTRATING!  Andrew, I so appreciate your post.  That is exactly the problem.  I logged into my Atlassian account and I'm now on my way.

Thank you so much for your assistance.

 

Best!

Like Zapp Zapp likes this
Felipe Apóstolo Aug 23, 2018

Thank you so much Andrew !

Dileep kumar Aug 30, 2018

Really frustrated and finally your solution helped me. Thank you so much Andrew.

Wing Kui Tsoi Oct 09, 2018

thanks

David Sadowski Dec 03, 2018 • edited

The example link is broken anyway...

We have a Crowd, JIRA, Confluence and BitBucket server installed on our own domain and use base url set in BB settings to login in SourceTree although it's not working even though confirmed my username and password work by successfully logging into the instance. I use Sourcetree locally for my repos and don't even need to log into remote instances so why has this app become completely useless without authentication?

Prakhar Mittal Jan 04, 2019

Can anyone walk me through the steps to install and use Sourcetree version 3.0.12 . I am able to login with same credentials in the browser but getting Failed to login error in sourcetree. It's just now messing with my head.

Prakash Rai Jun 04, 2019

Anyone figure out how to install Sourcetree using Bitbucket Server root URL??

3 votes
Alexander May 08, 2018

Why not just allow simply installation and ask to login then?

Michal Gasparovic May 17, 2018

I hate this install, I cannot login via Atlassian while installing the tool, while via browser I can. It's driving me mad.

Like # people like this
Mike Stephenson Aug 24, 2018

me too. It's like they don't want you to use it

Like # people like this
Dmitriy Shteinikov Oct 29, 2018

Still doesn't work. What a shame to release such a crap.

Like # people like this
2 votes
Robert Nov 14, 2018

like Source Tree a lot as a tool, and use it pretty much everyday, but to be honest the latest installation process through bitbucket.org is a pain in bottom part. I got my PC reinstalled and stumble upon this crap (do not have other words to describe the installation process of Source Tree now) - somehow i got through it OK, by creating & opening account first in a browser and doing all that magical stuff others mentioned above, wasting about 30+ min, Seriously, if i'd be a new user i would choose not to do that and would go with other tool....

I would recommend SourceTree team to reconsider their installation approach.

1 vote
Deleted user May 28, 2018

Just try simple login put your bitbucket username and bitbucket password

select hosting service : bitbucket

dont change next two options leave it as it is

then authentication is basic 

username is your bitbucket username 

password is your bitbucket password

1 vote
David Sadowski Dec 03, 2018

SourceTree version 3.0.1 and still no joy to log into my BB Server instance :(

What a nonsense coming out from Atlassian in the past few years... you're really letting your customers down on many fronts at the same time and gradually forcing us to switch to other alternative tools... you don't even listen to us anymore hence tickets that haven't been actioned for 5+ years!

Screen Shot 2018-12-03 at 12.16.57.pngScreen Shot 2018-12-03 at 12.17.29.png

David Sadowski Dec 03, 2018

The registration / activation worked for my Cloud Bitbucket in this version of SourceTree in case anyone's using it. Still, it should work with my BB Server without the need to log into Cloud.

Andrew Finnell Dec 03, 2018

You don’t need to log into the Cloud version for your local BB to work. I don’t use it at my workplace and it connects to the BB On-Premise just fine. The big difference is that SourceTree won’t know it’s an On-Premise instance it just knows it’s a Git Repo. So use the normal means to connect to your local BB and you’ll be fine.

The issue is that the tool doesn’t make it obvious what’s happening. Once you realize that the tool doesn’t understand On-Premise Installs of BitBucket itself, it’ll make sense. Because On-Premise BB uses SSH and HTTPS protocols it can connect. It just doesn’t know what type of Git server it is. 

 

in short: connecting to the cloud isn’t needed and has nothing to do with connecting to your local server.

David Sadowski Dec 04, 2018

Hi Andrew,

It used to be like that until Atlassian introduced forced sign in. The app is presenting only a sign in screen with no other options and virtually unusable if one doesn't sign into either Cloud or Server instance. I still cannot sign into to our self-hosted BB Server instance and had to use my Cloud account to get to any options in SourceTree. I am now able to use SourceTree locally and with Cloud but when go into Accounts tab in Settings and try to add my BB Server it refuses any combination SSH or HTTPS even though all login details work fine when accessing it via UI.

Like Jeremias likes this
Jeremias I'm New Here Mar 12, 2019

This is making me crazy, unable to log in to our local bitbucket server, "login error", hours wasted :-(

 

Same credentials works just fine when loggin in from same computer to the web interface.

0 votes
Hieu Le Van Apr 23, 2018

I have the same issue when login bitbucket using sourcetree too. Both method Basic username, password and OAuth. 

Mark Apr 24, 2018

Let's hope we can get a resolution soon.

0 votes
john987john987 Apr 26, 2018 • edited

Have you tried using https://bitbucket.org/DU3O/<repositoryName>.git?
Oh, I'm sorry. This is not the solution, neither.

Mark Apr 26, 2018

Hi John,

Thanks for the reply. I hadn't tried that, but it gives the same result. However I did try using https://bitbucket.org/DU3O/unrealsec3/src/master/ and that reduced the error to only Failed to check login for user [DU3O] so I guess that is what I should be using as the Root URL.

Thanks again

john987john987 Apr 26, 2018

Eventually, I logged in directly with the Atlassian account and skipped the step of logging in to the Bitbucket server.

Mark Apr 26, 2018

After doing that. were you then able to connect to your Bitbucket server?

john987john987 Apr 26, 2018 • edited

I can join the Bitbucket account, but Bitbucket Server will still fail.

Mark Apr 26, 2018

Hi John. I managed to get it working. This is what I done:

On the Remote tab - Add an account

Hosting Service: Bitbucket
Host URL: https://bitbucket.org/
Preferred Protocol: HTTPS

Authentication: Basic
Username: <my bitbucket username>

Hope this helps.

ACR Techstaff May 01, 2018

I had to do the same as Mark to get it working.

  1. Install and login to Atlassian account first
  2. In the remote tab, click 'Add an account...', same isntructions as Mark above
  3. Then you should see your repositories appear on the right
Like SAGOT camille likes this
Jiří Hadámek Jul 11, 2018

Very confusing and unclear setup and help

Austin Nottingham Aug 20, 2018

Hello. I am trying to connect sourcetree to my bit bucket account. I believe I need to follow ACR Techstaff's Instructions, but I don't see a "remote tab". I see settings to change my email address, password, and avatar.There's also a section related to API tokens that I don't really understand, but I don't think it's relevant to me as I haven't set up two factor authentication. Am I in the wrong place? Where is the "remote tab"?

Paolo Perelli Sep 25, 2018

Sourcetree doesn't like the informations provided by bitbucket. There's no way to go on.
No "remote tab"...

No previous "atlassian authentication" via browser works...

No way to make it work

Installation and support are very confused.

Why should I need everything in order to install? Make me install, then troubleshoot, at least.....

Like # people like this
0 votes
David Sadowski Nov 05, 2018 • edited

Atlassian is progresively going downhill - half-baked products tickets for critical issues unresolved for over 6 years and now this... awaiting competition who actually care about their cutomers and what they have to say to emerge!

0 votes
SIA Web Dec 02, 2018

I think the problem is that the windows client is asking for username but you log in on the web using either google login or your gmail account with it's own password I have no idea what the username's password is.

 

Why can't we just use our gmail or email account in the client.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

468 views 0 9
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