[OpenStack-Infra] Failed to SSH login into the gerrit(Too many concurrent connections )

Clark Boylan cboylan at sapwetik.org
Fri Aug 23 21:07:50 UTC 2019


On Fri, Aug 23, 2019, at 9:40 AM, Rikimaru Honjo wrote:
> Hello,
> 
> I have my zuulv3 instance for 3rd party CI.
> 
> I stopped & restarted it several times to test my configuration 
> yesterday.
> As aresult, my zuulv3 instance started to fail to connect the 
> gerrit(review.opendev.org).
> The following error was occurred at that time.
> 
> > Received disconnect from 104.130.246.32 port 29418:12: Too many concurrent connections (64) - max. allowed: 64
> 
> I tried to run ssh command[1] manually. It was also failed by same reason.
> And, I also tried it on other machine. The result was the same.
> 
> How can I resolve this issue?

There is only one user with 64 connections currently so I am going to assume this is your third party CI user (it is NTT SystemFault MasakariIntegration CI). I've gone ahead and closed all 64 existing connections in Gerrit.

This is typically caused by ssh clients that don't properly close their ssh connection with gerrit. At one point this happened because of a bug in Zuul. That bug has long since been fixed; you should ensure that you are running an up to date version of zuul and paramiko to avoid this. Firewalls that timeout connections may also cause this to happen.

Also for future debugging it helps to get the client name and/or ID so that we can be sure we are identifying the correct accounts and connections on the Gerrit side of things.

> 
> [1]
> e.g. "gerrit stream-events",  "git-upload-pack <repository path>"
> 
> Best regards,
> -- 
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> Rikimaru Honjo
> E-mail:honjo.rikimaru at ntt-tx.co.jp



More information about the OpenStack-Infra mailing list