Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bad line length character after updating to Sourcetree 3.4.8

Luca March 10, 2022

Hello,

i am experiencing an issue already discussed both here and on stackoverflow, concerning this error:

fatal: protocol error: bad line length character: git_

 but most solutions suggest the problem lies in the server.

Thing is, this happens only on my desktop where i've updated to SourceTree 3.4.8; if i try to fetch/push from my laptop to the very same server it works just fine.
On my laptop i delayed the update, and still running SourceTree ver. 3.4.7.

As for the server address, which includes the 4 bytes of the error message reported above, it is in fact:

Pushing to ssh://git_user@myIp:myPort/volume1/git_repos/myRepo.git

Pageant is running on the client, although there is no ssh key, since i am hosting the server in my house and there's just a password auth for the user git_user.

I also tried removing the passwd file, to see if it was failing authentication, but pushing/fetching won't even get to the authentication phase: i reckon the error happens before auth, since i'm not being asked to input the password again.

Aside from testing with both machines, with the same configuration, where one works and the other doesn't, i'm quite stuck with troubleshooting... the only thing i could concieve was the version mismatch.
I should probably try to downgrade and see if it solves the issue.

Can anyone provide additional feedback?
Thanks

6 answers

1 accepted

6 votes
Answer accepted
asundust March 14, 2022

i have the same problem

my git url is ”git@192.168.10.22:/home/git/abc3.git“

Version downgrade to 3.4.7, it's works

zeravcic March 14, 2022

+1

Luca March 14, 2022

Thanks, seems that will be the solution for now.

zaazbb March 14, 2022

+1

zaazbb March 14, 2022

i have to push on terminal now.

danobrega July 26, 2022

Had a similar issue with the error

"protocol error: bad line length character: | Pa"

Downgraded from 3.4.9 to 3.4.7 and its working again.

Running commands manually on the Terminal also worked. For example, if we pressed the "Push" button we would have that error, but if we executed "git push" in the terminal the push operation would run without errors.

Sign Inaccount February 7, 2023

The same error is still in version 3.4.11. Nothing helps.

Artur Litau March 2, 2023

On version 3.4.9 you'll have to remove the :
So what you wanna use is
”git@192.168.10.22/home/git/abc3.git“

2 votes
paul watje March 9, 2023

On WIndows 10, this fixed this issue on version 3.4.12 and earlier versions.

Assuming you have an SSH private key setup, under Tools -> Options -> General tab

Change the SSH Client entry to "OpenSSH", and click OK.  It will open a command window and ask for your for passcode.

It then works for me.

Abedeljan Abenasa June 27, 2023

Thank you, sir! It works for me.

Wenxin Wang July 7, 2023

I upgraded from 3.4.9 to 3.4.14, and this solution works for me. Thank you! Only it didn't ask me for passcode.

2 votes
Anders Harvyl March 23, 2022

Downgrading to 3.4.7 worked for me too. Indeed a relief.

1 vote
Andreas Törner February 4, 2023

Im using SourceTree 3.4.11 and had the exact same issue. I resolved it after a tip in another thread in this forum by replacing the putty folder by the one included with 3.4.7.

Javier Camacho June 16, 2023

It's works. The folder, in my case, was in C:\Users\MYUSER\AppData\Local\SourceTree\app-3.4.13\tools\putty

1 vote
Juergen Jakel June 21, 2022

Same here - thanks for this solution.

Hope the Atlassian Team will fix this in further versions.

0 votes
Gustavo July 13, 2023

Same problem using Windows 10, and the only solution is revert to 3.4.6

paul watje July 13, 2023

Did you try the seting the ssh client to openssh solution above?

Gustavo July 13, 2023

Yes, but didn't work for me

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events