All of a sudden SourceTree Mac app could not retrieve my remote repositories but throwing error instead:
Login failed for your Bitbucket account.
The remote service said: 'The operation couldn’t be completed. (SDNetDomain error 7.)
'
I changed the password several times, updated the account, I even switched to Atlassian account (which I now cannot revert), tried SSH instead of HTTPS, all to no avail.
I've seen this question asked several times but with no answers.
Guys, what is going on? We cannot get our work done!
PS: I received several emails from BitBucket in the past few weeks stating that my account has been compromised so I changed the password several times but none of them works for SourceTree although I can succesfully login through the web app.
I fixed this issue by creating a new App Password.
I have activated Two-step verification ago. This may cause the issue.
You can create a App password by;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me the second time around. Had to quit SourceTree and start it up again but once I put in my username and generated password, (on a Mac) it asked for my keychain access for my Bitbucket account and seemed to connect fine to my remote repos.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SourceTree stopped working suddenly. I had merged Atlassian and BitBucket account and that worked for weeks and then suddenly stopped working.
This solution worked for me. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, works like a charm.
After created App Password, on a Mac, I opened Sourcetree, clicked at setting icon, settings, remove account listed and add your account again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Only worked for me after I edited my "Bitbucket Cloud" account in my remote repositories setting in SourceTree. I didn't delete it but just used the "edit account" button and updated the password.
Before doing this you must create an "App Password" on Bitbucket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ye worked for me too, but it took a few minutes for the app password to kick in, and failed the first couple of tries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same issue .
It appears after Atlassian Auth services merge (Bitbucket/Jira).
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.
I still don't know why authentication isn't working through SourceTree in these specific cases, but I did find a workaround. If you add the the remote via the command line it will work in SourceTree. This article is a simple overview of adding a remote that way if you're not familiar with it (it's a GitHub article but not GitHub-specific).
Here are the steps I followed (and this assume you already have public key authentication set up with your Git host):
Delete the existing remote link, either via SourceTree or the CLI (assumes a remote named 'origin'):
git remote rm origin
Add remote via the CLI:
git remote add origin https://bitbucket.org/user/repo.git
Test to verify:
git remote -v
The remote should be listed.
This worked for me with two repositories. Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perfect
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apparently, if I use git pull it works if I use the Atlassian account, not the BitBucket acount.
Still, SourceTree cannot connect.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually SourceTree does not allow logging in with email address (like Atlassian account) but only with Bitbucket username which cannot be used anymore, apparently.
Maybe this could be the issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm having the same issue you are, did you find a solution? This started happening after I switched to an Atlassian account. I've seen the error regarding using an email address, but the username doesn't work, either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In SourceTree simply opened Settings and changed the protocol from Https to ssh and it works without any account and password change
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried Basic Authentication, OAuth, with and without app password. Finally decided to go with SSH, and this works for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I Disabled 2 step auth, deleted local repo, then cloned it from remote. All is working again
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.
I have got this as well. Never had this issue before. Looks like a bug.
Can't even browse repos on Bitbucket.
It looks like they migrated my accout to Atlassian - but the new Atlassian login doesn't work with Bitbucket if you have 2 step authentication enabled.
What a mess ! !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same error here after switching to an Atlassian account.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Time to up your Loom game! The new Loom Essentials Certification is here! Show off your skills, learn pro tips, and get officially recognized. Perfect for taking your video messaging to the next level.
Learn moreOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.