I updated to version 22.214.171.124 today and now I can't perform any git operations with SourceTree.
I get the error:
Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
I have opened Tools>Options>Authentication and ensured my credentials are valid. I've tried using Basic and OAuth and in both cases SourceTree says "Authentication OK" but I still get the error when trying to push or pull.
Is anyone else experiencing this issue?
I upgraded to 2.1.10 just now and have not yet encountered an authentication problem.
When a person at our office encountered a credentials problem, for a release prior to 2.1.10, the solution that worked for us was to delete a file named passwd located in AppData\Local\Atlassian\SourceTree.
My passwd file was zero bytes in length. His pwd file did have content and, after he deleted it, he could authenticate.
Before deleting the passwd file, we had tried the following with no success:
1. Re-entering credentials through the UI provided by SourceTree
2. Deleting the Windows Credentials stored in Windows by SourceTree.
The only other thought I have is to delete the Windows Credentials stored in Windows, delete the passwd file, then restart SourceTree. We had deleted the credentials before deleting the passwd file, and I am not sure if the problem was rectified by deleting the credentials and file, or deleting only the file.
Following is what I wrote down regarding the Windows Credentials. We are using Windows 10.
SourceTree stores credentials in the Windows credential manager. To see and remove them, do the following:
Open the Control Panel.
Click on User Accounts.
In the left hand list of links, click Manage Your Credentials.
When the Manage Your Credential page opens, it shows your Web Credentials. You can see that selected at the top of the page.
Click the Windows Credentials "button". This shows your stored Windows credentials.
In the list, look for entries that start with "git:http" and include your server name and/or user name for Atlassian Stash.
Remove the entries.
For anyone using VSTS + SourceTree, I was able to follow Sean's instructions upto where SourceTree prompted me for the password. It failed to take my credentials because VSTS disabled my existing credential due to too many failed auth attempts (made by 126.96.36.199).
At this point I had to go into VSTS > Code > Clone > Generate Git Credentials and create a new password.
I entered my newly generated password on the SourceTree prompt and it allowed me access.
That is a really good point. We use Atlassian Stash (an old version of Atlassian BitBucket Server). When dealing with the credential issues, sometimes the operation in SourceTree failed due to too many failed logins. The git error messages shown by SourceTree did not make this obvious.
It was only the error messages shown by the Fetch operation that told us Atlassian Stash needed the user to verify they were human via Captcha. So we had to navigate to the user's detail page in Atlassian Stash and click the Clear Captcha button.
So I was able to sort it out just now, by going to Repository->Repository Settings, selecting my repository, and changing the username from my old Bitbucket username to my Atlassian account's email address. Then, following your original advice to remove the passwd file, I was able to successfully pull.
I got the same problem after upgrading to 2.1.10.
But I downloaded SourceTree again (version 188.8.131.52) from their web and installed that version. After that I don't have any problem with the authentication. I rejected the upgrade to 2.1.10 that came up...
As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...
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