While checking out code from jenkins we are getting multiple intermittent issues in GIT connectivity.
Errors:
fatal: unable to access 'https://outgit.net/projects.git/': Failed connect to outgit.net:443; Connection timed out
fatal: unable to access 'https://outgit.net/projects.git/': TCP connection reset by peer
error: RPC failed; result=28, HTTP code = 0 fatal: The remote end hung up unexpectedly
fatal: unable to access 'https://outgit.net/projects.git/': Operation timed out after 300002 milliseconds with 0 out of 0 bytes received
Error cloning remote repo :
From past 2 months issues are arising a lot. kindly suggest on possible solutions for this issue.
This is a intermittent issue 10 20 pipeline gets success but in between we get these issues multiple times.
The first thing to do is to activate logs.
In your Jenkins, try and launch the main controller (the one which will do the initial checkout, before sending the codebase to the Jenkins agent) with environment variables like:
From this Cloudbees page:
That way, you will see more on Git/HTTPS operations and will start to get elements for your RCA.
Note:
GIT_TRACE2means at least Git 2.22 (Q2 2019).