Seemingly random SSH failures

I seem to be getting at random ssh checkout errors. Both my CI workers as well as dev machines themselves are getting the following error at what seems to be at random times.

stderr: There was a problem while connecting to …
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Can anyone provide any help with tracking down what the issue could be?

Let me know if more information is needed to proceed.

Thanks

  • Please check your network connection from your gitlab server to your pc.
  • Check ip your server have conflict?
  • Restart gitlab: gitlab-ctl restart

It doesn’t seem to be a network issue as you can retry seconds after the error and it will work just fine. There are no ip conflicts and the server has been restarted multiple times as well as increased in resources.

Anyone have any ideas/suggestions to even go about debugging this?

I have been dealing with this for some while now since one of the early major updates and I just want to figure out a way to at least make some sort of progress on working towards finding out the cause.

Even if you don’t have the answer, I am open to digging in to debug.

Thanks

Has no one run into this issue before? I figured this community would be a lot more supportive with help to at least track this down.

You can specify the username that SSH should send to the remote system as part of your remote’s URL. Put the username, followed by an @, before the remote hostname.

git remote set-url website abc@***.com:path/to/repo

I am not sure how that would be useful for this issue as 99% of the time it works just fine. Could you explain your logic?

I goolge it :smile:

Any have any ideas on how to troubleshoot this issue? It is still happening even on the latest build.

We are experiencing the same problem, and have not managed to solve it…