git : The remote end hung up unexpectedly - too many simultaneous users?
Posted
by
Pritam Barhate
on Server Fault
See other posts from Server Fault
or by Pritam Barhate
Published on 2010-12-30T18:00:02Z
Indexed on
2010/12/30
18:56 UTC
Read the original article
Hit count: 284
git
I asked this first on StackOverflow and I was suggested that I should ask it here:
We have a self hosted git server (Gitolite) on a VPS account (CPU:2.68GHz RAM:1824MB). This same VPS is also used to publish our underdevelopment web apps for client demos. (Very little traffic). so the main use of the server is as a Git Server Only.
This git server is accessed by a team of 30-40 people for various projects. Our problem is that during the day when 6-7 people are trying to access the server (sometimes same repo) we get frequent error message:
ssh: connect to host xxx.xxx.xx.xx port 22: Bad file number fatal: The remote end hung up unexpectedly
After trying for 10-15 minutes it generally succeeds.
During early mornings and late nights when there are only 1-2 people, git commands work with 100% success rate. Also I would like to note that if I access the other file hosted on the server through HTTP it works fine.
I found a couple of questions on StackOverflow and on other sites regarding this. But most of the people point towards SSH key set up or conflicts between Msysgit and Cygns SSH.
However I don't think this is the problem in our case as we get this behavior on Windows (using msysgit only) as well as Mac Machines. Also if it was SSH configuration issue then it shouldn't work at all. But in our case it works after 10-15 minutes.
I think in our case it might be too many simultaneous connections to same server (or same repo) or something like that. Does there exists a setting or a conf file that needs to modified to solve this problem?
Please help me solve this problem or point me in the right direction.
Thanks in advance.
Pritam.
© Server Fault or respective owner