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.
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.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much Andrew !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Really frustrated and finally your solution helped me. Thank you so much Andrew.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can't login via CORRECT credentials to Bitbucker Server. So try creating (another) new Bitbucket.org account. Get this message:
We're opening the Bitbucket Cloud signup page in your browser. Come back when you're done to continue setting up Sourcetree.
Guess what, nothing happens when you come back.
The company dictates that the repository is hosted on Bitbucket. And I have happily used SourceTree for many years. And I'm happily connected to the repository via the web portal. But if I can't get through the installation to use the GUI, I guess I have to use another company's GUI. So sad. Does support actually read these comments. Fix it...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe you’re experiencing the same issues as others. That login page is only for the Cloud BitBucket.org servers not for BitBucket Server. You can use the UI with your BitBucket server if you treat it like any other git repo.
Their Login page doesn’t work with on premise servers. Just clone your repos like you would anything else in the UI by using the ssh url.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the reply. I definitely have an on-premise server. And I have no issues cloning and using the repository via command line or other VCS GUIs. But I must be missing something as it still seems that I am out of luck if I want to use any current version of SourceTree because I can't get past this step of installation/registration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! Worked!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why not just allow simply installation and ask to login then?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I hate this install, I cannot login via Atlassian while installing the tool, while via browser I can. It's driving me mad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
me too. It's like they don't want you to use it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still doesn't work. What a shame to release such a crap.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I give up sourcetree for other products more friendly and easy to use.
Despite being a former user of sourtree, i loved it before this last version.
So bye bye Sourcetree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Me too. It just doesn't let me log in
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I give up. I've just wasted the better part of an hour of my life trying to log in to install Sourcetree using our corporate hosted server using a valid URL and credentials just so I can test this tool out. Epic fail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you happen to read the Accepted Answer? Source Tree BitBucket Login to the BitBucket Cloud is only for their bitbucket.org address and not for onsite BitBucket Server installations. You can still use Sourcetree to access your Git repositories, you just have to do it the normal way, via a git:// address.
It sounds like you're trying to log into your local BitBucket on-premise Server using their bitbucket.org mechanism. That is not going to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We do indeed have an on-premise BitBucket server. I access it in the form https://servername.domain.com and clone repositories from the command line using the form https://servername.domain.com/foo/bar/repo.git. I already have the GIT repos cloned to my local machine that I want to work with, so I'm confused by the need to authenticate when installing Sourcetree to open them and am very frustrated by my inability to log in. What "git://" address should I use?
I'm clicking the Bitbucket Server option when trying to log in and have tried all the following forms for the "Root URL:"
https://servername.domain.com/
git:https://servername.domain.com/
git://servername.domain.com/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For what it's worth, I have the exact same unresolved issue as Mike. I went down the path of creating a new account right there from the link It creates it just fine, and opens it in the browser, but never performs the suggested step of coming back to proceed through the installation sequence. I'm guessing I have a DNS/proxy issue or am using the wrong browser, or am conflicting with my Tower installation, or... something else that Atlassian SHOULD have anticipated and handled before adding this level of inane security for a FREE product just to get a third or fourth version of our email address.
I'm starting to become pretty comfortable with Tower.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mike I downloaded the latest version and see that they changed quite a bit, especially the part about the Forced Authentication at the start. That's quite unfortunate. My apologies for not trying to again more recently.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Guys I can not use sourcetree because of this issue, I tried everything, really uncool!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you just use the commandline to connect to the repo, over SSH (in my case) and then go into SourceTree, and instead of adding an account to your local Bitbucket (in my case) but instead just add a "local repo", browse to the local folder you just fetched, and viola you are in.
That kinda did it for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you ever get this to work? I'm going insane trying to get mine to work!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same issue here for bitbucket cloud. Weird since on mac it's working on Windows not.
Strange note: Seems that the username is changed in sourcetree, the @ charackter is changed to %40.
Found possible solution:
I did these steps:
- uninstall sourcetree
- delete everything inside
C:\Users\YOUR_USERNAME\AppData\Local\Atlassian\SourceTree (Maybe you make a backup first)
- Install sourcetree again
During installation you are asked for your bitbucket credentials, and you are taken to the atlassian website, this worked.
Problems with this solution:
- all previous data from sourcetree is deleted e.g. repositories folders etc (Not the repositories themselves).
You need to add the links to all your repositories again and add all the folders you had before.
Maybe there is a better solution to this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nothing I try works. I hate the new version 3.8. I have wasted hours and hours and now my work is suffering. Thanks a lot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I had the same issue. changing the protocol to SSH instead of HTTPS worked instantly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The solution is to download an old version, login (like before) and then update to the latest version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow. Same problem for years. Seems the devs are REALY listening. Trying to get the setup running for 15 minutes now. After registering a free account i can click on "Bitbucket". A webpage opens up asking for access-rights, i click on Accept, website says then everything ok you can close this website now, but the setup won´t do anything further.
Tried to download and run setup again, stalls at the exact same point. NOTHING happens, when clicking on "Bitbucket". Thanks for a waste of time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried using https://bitbucket.org/DU3O/<repositoryName>.git?
Oh, I'm sorry. This is not the solution, neither.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Eventually, I logged in directly with the Atlassian account and skipped the step of logging in to the Bitbucket server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can join the Bitbucket account, but Bitbucket Server will still fail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had to do the same as Mark to get it working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very confusing and unclear setup and help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same issue when login bitbucket using sourcetree too. Both method Basic username, password and OAuth.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.