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;
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!
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 ! !!
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs