git fetch hangs over ssh

4,508 views
Skip to first unread message

wangs...@gmail.com

unread,
Aug 13, 2013, 3:07:50 PM8/13/13
to msy...@googlegroups.com
hi,

I've recently installed latest version of git extensions and that came with latest version of msysgit.

The issue is when doing a git fetch over ssh. The command seems to hang.
I've tried to do git fetch --verbose and the output indicates that it goes through all the branches and grabs the latest changes.
After completing the last one, however, it just hangs there.
I know it is the last one as I have another linux machine that i'm able to compare it against.

I thought it might be incompatible git versions between my local and the remote so I also tried downgrading msysgit to previous version. same issue.

Does anyone have any idea what the issue is or how i can further troubleshoot this?

thanks



Philip Oakley

unread,
Aug 13, 2013, 5:26:01 PM8/13/13
to wangs...@gmail.com, msy...@googlegroups.com
There are some long standing issues with some of the push/pull interfaces that appear to be related to subtle differences between the linux and windows networking, and the creation of the 64k side band.
 
I'm guessing that a proper fix will require that the Linux 'optimisations' will need to be 'undone' such that the windows equivalent doesn't have whatever race condition causes the lock (that is, various folks find a "pause 1" in various places works for them, but isn't a global fix)
 
The problem neeeds more eyes and ideas.
 
Here are all the links I'd collated, but haven't had any time to investigate further.
 
Google :: "msysgit hangs when ssh fetch"
========================================

http://billauer.co.il/blog/2012/10/git-pull-windows-freeze-receive-pack/
 Change “side-band-64k” to “side-bond-64k” so it never gets used.
 
http://devnet.jetbrains.net/message/5473415?tstart=0
 remnants of several previous installations of Git. Sort the path entries..
 
http://code.google.com/p/msysgit/issues/detail?id=74
 Issue 74: git remote update/git fetch fails via ssh
 
http://code.google.com/p/msysgit/issues/detail?id=161
 Issue 161: git-gui hangs on ssh for users with home directory mapped to server share
 
http://code.google.com/p/msysgit/issues/detail?id=243
https://groups.google.com/forum/?fromgroups=#!topic/msysgit/mFnzYM3IA_4
 Re: Issue 243 in msysgit: ssh hangs a minute than goes to next line without performing action
 
http://code.google.com/p/msysgit/issues/detail?id=361
 Issue 361: Clone/fetch/pull from github using git protocol hangs, http works
 
http://code.google.com/p/msysgit/issues/detail?id=457
*** a good discussion.
 Issue 457: Push over git protocol hangs in msysGit
 The problematic commit is 0c499ea60f, which introduced the sideband support in send_pack.
 
https://github.com/git/git/commit/0c499ea60f
also check it's child commits for comments. As well as the Msysgit fixes (which I haven't fully researched).
 
[msysGit] From: "Johannes Sixt" <j...@kdbg.org> Saturday, April 13, 2013 8:19 AM
> And yes, I have had it hang on ssh fetches from github, and it repeated
> for a while (and still occasionally locks).
Issue #457 is purely about push via native git protocol.
--
--
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.
 
You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msy...@googlegroups.com
To unsubscribe from this group, send email to
msysgit+u...@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en
 
---
You received this message because you are subscribed to the Google Groups "msysGit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Andrew

unread,
Aug 14, 2013, 6:17:57 PM8/14/13
to msy...@googlegroups.com, Philip Oakley
Thanks Philip. That was a very comprehensive answer. 

I'll see if anything here works for me. 
Reply all
Reply to author
Forward
0 new messages