-
Bug
-
Resolution: Resolved Locally
-
Highest
-
None
-
2.1.8.0
-
None
-
None
-
SourceTree 2.1.8
Git
-
Severity 1 - Critical
After auto-upgrade of SourceTree to 2.1.8, the UI tool lost the ability to authenticate using SSH keys when I need to Push. However, if I go to the Terminal window, it asks me for password, and completes the PUSH command.
[SRCTREEWIN-7727] Lost ablity to authenticate
I was able to get it working with System Git, but Embedded Git isn't working. The embedded git version is older than system git.
Tools > Options > Git > Use System Git
My System Git version - 2.16.1
Even with the correct credentials, it fails to pull, fetch, commit, nothing is working.
I am facing the same issue 2.4.8. SourceTree continues to ask for credential even though I entered the correct info. I have already updated embedded git
I have just downloaded latest version (2.4.8.0) of sourcetree, and updated embedded git (after many unsuccessful attempts) (embedded git version - 2.15.1), but unable to resolve authentication error.
This is such a stupid bug. MacOS High Sierra doesn't have a "Tools" menu. You can get to the Git options screen by going to Preferences > Git, but once there you don't have any options to "Update Embedded Git". Every push is failing authentication from Sourcetree.
This is not resolved. The install is still not working without updating the Embedded Git. Waste of half an hour finding this bug.
Tools > Options > Git > Update Embedded Git
Yes, updating worked for me too. Many thanks to those who suggested the solution.
Just ran into this problem. Updating the embedded git worked, but it was odd - just after I clicked the Update button, I noticed that the current embedded git version in a fresh install of the latest SourceTree for Windows (v. 2.3.5.0) was 2.8 something (didn't catch anything after the 2.8). After the update, the embedded git version is now: 2.14.1/LibGit2Sharp 0.24.0 + git.
I also had to revoke the OAuth token for the SourceTree application after deleting the credentials in the local file system as explained above. You can delete the token in your Bitbucket user account: https://bitbucket.org/account/user/\{your user name}/api
john.currier's solution, deleting "~/Library/Application\ Support/SourceTree/[MY_USER]@STAuth-bitbucket.org" worked for me!
OMG I'm so glad to see this workaround. I was on v 2.1.10 which worked great for me, and then I somehow got prompted to update the client on Sept 13th to v2.3.1.0 and authentication has failed for me with my company's Bitbucket server ever since. I also wasn't able to completely delete my passwords in the client, so John Currier's comment above gives me great hope I can fix mine as well.
Update: "Update Embedded Git" worked for me! Yay!
Why is this marked as Resolved? It clearly isn't resolved: I encountered this problem this morning and if it weren't for @John Currier posting a workaround, I'd still be cursing.
There is an option to update it using Tools-Options on the Git tab
I have no idea how to update an embedded git. Can anyone please explain the process.
I finally got it to authenticate by updating the embedded git (didn't fit it alone) and deleting AppData\Local\Atlassian\SourceTree\passwd. Restarted SourceTree and it prompted for my password. Pushes then started working again.
I got the same error as Richard while using the "Update Embedded Git" option, see further below.
I can manually unzip the downloaded PortableGit.7z, and it looks like the contents of it should be moved into...
C:\Users[your user]\AppData\Local\Atlassian\SourceTree\git_local
....but I'm not sure copying and pasting into that directory is a good idea. :/
Despite the error message about unzipping, I believe the unzip and upgrading of the embedded GIT was still successful. The authentication errors are no longer occurring, and I can see that the version # of Git downloaded from Atlassian servers is 2.13.2, and checking
git --version
at the command line matches up, 2.13.2.windows.1
So far things seem to be back to normal for the moment, despite this unzip error message...
---------------------------------------
7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
Scanning the drive for archives:
1 file, 36788928 bytes (36 MiB)
Extracting archive: C:\Users\stephen.scholtz\AppData\Local\Atlassian\SourceTree\PortableGit.7z
WARNING:
C:\Users\stephen.scholtz\AppData\Local\Atlassian\SourceTree\PortableGit.7z
Can not open the file as [7z] archive
The file is open as [PE] archive
–
Path = C:\Users\stephen.scholtz\AppData\Local\Atlassian\SourceTree\PortableGit.7z
Open WARNING: Can not open the file as [7z] archive
Type = PE
Physical Size = 36788928
CPU = x86
Characteristics = Executable 32-bit
Created = 2017-04-05 18:33:08
Headers Size = 1024
Checksum = 36796853
Name = 7zS.sfx.exe
Image Size = 503808
Section Alignment = 4096
File Alignment = 512
Code Size = 382976
Initialized Data Size = 106496
Uninitialized Data Size = 0
Linker Version = 14.10
OS Version = 6.0
Image Version = 0.0
Subsystem Version = 6.0
Subsystem = Windows GUI
DLL Characteristics = Relocated NX-Compatible TerminalServerAware
Stack Reserve = 1048576
Stack Commit = 4096
Heap Reserve = 1048576
Heap Commit = 4096
Image Base = 4194304
Comment = FileVersion: 16.4.0.0
FileVersion: 16.04
ProductVersion: 16.4.0.0
ProductVersion: 16.04
CompanyName: Igor Pavlov
FileDescription: 7z Setup SFX
InternalName: 7zS.sfx
LegalCopyright: Copyright (c) 1999-2016 Igor Pavlov
OriginalFilename: 7zS.sfx.exe
ProductName: 7-Zip
Path = [0]
Size = 36305968
Packed Size = 36305968
Virtual Size = 36305968
Offset = 477184
–
Path = [0]
Type = 7z
Offset = 515
Physical Size = 36305452
Tail Size = 1
Headers Size = 62740
Method = LZMA:27 BCJ2
Solid = +
Blocks = 2
Sub items Errors: 3
Archives with Errors: 1
Sub items Errors: 3
I'm getting this after trying to update Embedded Git
7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
Scanning the drive for archives:
1 file, 36788928 bytes (36 MiB)
Extracting archive: C:\Users\RICH\AppData\Local\Atlassian\SourceTree\PortableGit.7z
WARNING:
C:\Users\RICH\AppData\Local\Atlassian\SourceTree\PortableGit.7z
Can not open the file as [7z] archive
The file is open as [PE] archive
–
Path = C:\Users\RICH\AppData\Local\Atlassian\SourceTree\PortableGit.7z
Open WARNING: Can not open the file as [7z] archive
Type = PE
Physical Size = 36788928
CPU = x86
Characteristics = Executable 32-bit
Created = 2017-04-05 23:33:08
Headers Size = 1024
Checksum = 36796853
Name = 7zS.sfx.exe
Image Size = 503808
Section Alignment = 4096
File Alignment = 512
Code Size = 382976
Initialized Data Size = 106496
Uninitialized Data Size = 0
Linker Version = 14.10
OS Version = 6.0
Image Version = 0.0
Subsystem Version = 6.0
Subsystem = Windows GUI
DLL Characteristics = Relocated NX-Compatible TerminalServerAware
Stack Reserve = 1048576
Stack Commit = 4096
Heap Reserve = 1048576
Heap Commit = 4096
Image Base = 4194304
Comment = FileVersion: 16.4.0.0
FileVersion: 16.04
ProductVersion: 16.4.0.0
ProductVersion: 16.04
CompanyName: Igor Pavlov
FileDescription: 7z Setup SFX
InternalName: 7zS.sfx
LegalCopyright: Copyright (c) 1999-2016 Igor Pavlov
OriginalFilename: 7zS.sfx.exe
ProductName: 7-Zip
Path = [0]
Size = 36305968
Packed Size = 36305968
Virtual Size = 36305968
Offset = 477184
–
Path = [0]
Type = 7z
Offset = 515
Physical Size = 36305452
Tail Size = 1
Headers Size = 62740
Method = LZMA:27 BCJ2
Solid = +
Blocks = 2
Sub items Errors: 2
Archives with Errors: 1
Sub items Errors: 2
Agreed, if the issues is because you've bundled with a buggy version of GCM then this issue should not be resolved until you fix the installer bundle to include a working version of GCM.
Not sure why this is marked as resolved. It is a bug in this specific version of sourcetree and not a bug in git as older versions of sourcetree keep working.
Hi
This issue is due toa bug in the Git Credentials Manager bundled with Git. SourceTree 2.1.2.5 masked this because it added a forked version of the GCM that did not contain this bug, 2.1.8 and above remove this fork. Updating the embedded git in 2.1.8 updates to a version of Git and GCM that does not contain the bug.
I had this issue too. I fixed it with this:
Tools > Options > Git > Update Embedded Git
I tried this because I noticed that I wasn't seeing the problem if I switched SourceTree to use system git.
Having the same issue as I posted in community here:
SourceTree says Authentication OK but it fails when performing git operations on remote repositories.
Just rolled back to 1.9 and all works fine.
Version 2 has just had issue after issue.
Not sure if related, but I cant push to github anymore while status is oke, even after readding my github account. I made a stackoverflow post with more information.
https://stackoverflow.com/questions/45622960/sourcetree-remote-invalid-username-or-password
It looks like a bug. The workaround is to re-install the previous version of SourceTree. It worked for me.
I am also having the same issue with either pushing or pulling since upgrading to 2.1.8.0. If I delete and re-add my account under the authentication tab I get "Authentication OK". but if I try and push or pull I get "fatal: Authentication failed for 'http://r......."
Is there any outlook about this ticket? It is one of the most popular questions about sourcetree on stackoverflow:
https://stackoverflow.com/q/45622960/1667868