Has anyone gotten this to work with SourceTree for Mac OS?
I've upgraded SourceTree. I've deleted all the passwords out of key chain. I deleted the user out of SourceTree and re-added. I tried recreating a new App Password. I've sworn and cussed.
Every time the super useless error:
We couldn't connect to Bitbucket with your (infrontsoftware) credentials. Check your username and try the password again.
Removing the passwd file worked for me. But when I click to check my repositories after starting SourceTree it only shows me third party repositories, while my own appear only after waiting 5 minutes every time. Push and pull works, I just don't see my personal repositories for cloning until some time passes
I have also tried all of these on my laptop for drawing with stylus support. But it is not working. Please acknowledge us with the right solution to this problem.
"Authentication failed Unexpected character encountered while parsing value: B. Path ", line 0, position 0". V. helpful error message. After years of fighting the Atlassian product I've splashed out £50 on GitKraken - and suddenly everything just works.
It is finally fixed for me! However, 1 or 2 steps were missing from the instructions:
1. Under Tools -> Options -> Authentication -> After setting up the Account, click Set as default and confirm the resulting popup.
Without this step, when I tried to push/pull from the remote there would be an additional stage of asking for password.
2. There is another file file that you may need to delete/rename: C:\Users\<username>\AppData\Local\Atlassian\SourceTree\userhosts
This file auto-populates the username/email box of the final authentication popup (after deleting passwd). If you used to log in with your email, it autofills with the email, but this will always fail. We must log in with our usernames now.
After deleting both passwd and userhosts, a dialog asking me for the username and password popped up (even though I've already added the account under Options). Here I entered my username (not email!) and the app password I generated via the Bitbucket website and finally everything worked!
I did not have to uninstall/reinstall Sourcetree thankfully!
Atlassian Team members are employees working across the company in a wide variety of roles.
March 14, 2022 edited
@infrontsoftware we haven't had any issues with Mac version of Sourcetree. That error message is indicative of bad creds. Are you using your Bitbucket Cloud username or email address as username in the credentials?
I have a developer using oauth that is still getting the "remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication." in Sourcetree. Refresh oauth gets a green success checkmark.
My understanding is that the app password is only needed for Basic auth, not oauth, is this correct? He is dead in the water. I can access/push/pull to the same repos, also using oauth. Any suggestions?
Atlassian Team members are employees working across the company in a wide variety of roles.
March 14, 2022 edited
@infrontsoftware thats good to know. I'm not entirely sure, but I'm guessing it could be either wrong perms or copy and paste error (if you copy/pasted the app password; I only mention that because I've personally had that hit me a handful of times :coneofshame: lol).
Thanks for your patience and I'm glad you got it fixed.
Atlassian Team members are employees working across the company in a wide variety of roles.
March 14, 2022 edited
@Jeremy Marquis you are correct, OAuth shouldn't require app password. It should walk you through the 3LO OAuth login process. When they set up OAuth does sourcetree open an browser and have them walk through the OAuth login steps (similar to logging into their Bitbucket Cloud account)?
Also to clarify, you connected to OAuth yourself and had no issues?
today when I edit the account and enter the app password i get the full list of repos but as soon as I add a filter or click refresh I only see my personal repos and not the work ones
@David Dansby Yes I renamed the file/folders associated with the sourcetree before uninstalling.
I had tried to delete the password file as someone suggested but that didn't change anything. I was worried about breaking the command line tools. I use git for windows and scoop installer where I have my ssh setup. I'm happy that wasn't broken. We use ssh in our Yocto build scripts. But I like to see the history in Sourcetree. I was using git gui while source tree was broken.
I changed this days ago, in response to your email, to using an app password and things were working. Now I got the same error as everyone here and am having to do a complete reinstall? I thought the whole point of changing before the deadline was to avoid losing time to this change.
I'm a bit confused as to how this wasn't caught in test since it's happening to so many users. Was there a massive imminent security risk that necessitated this to be rushed out? How did this issue get by a QA pass? I would think that triple checking that this change would work on Atlassian products would be the most basic check needed to pass this change on to the user base.
And once you've discovered this issue is so rampant, why would you not revert your decision first and sort out the possible solution instead of making all of these users go through a lengthy technical process to fix another process that wasn't ready for the public? Was it not possible to undo the mandatory app password and revert to the old process for a couple of weeks to fix this?
155 comments