github: TCP connection reset by peer

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

github: TCP connection reset by peer

Hello, responsive community!

Periodically, when checking out from github, there are such errors. if you have encountered, please share all possible solutions or solutions to accurately identify the culprit of the problem (network, github...):

The recommended git tool is: /usr/bin/git
using credential github-PAT
Fetching changes from the remote Git repository
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from
at hudson.plugins.git.GitSCM.fetchFrom(
at hudson.plugins.git.GitSCM.retrieveChanges(
at hudson.plugins.git.GitSCM.checkout(
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(
at java.base/java.util.concurrent.Executors$
at java.base/
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.base/java.util.concurrent.ThreadPoolExecutor$
at java.base/
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress -- +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stderr: fatal: unable to access '': TCP connection reset by peer

My code for checkout:

checkout ([
$class: 'GitSCM',
branches: [[name: params.branch_name]],
extensions: [[$class: 'CleanCheckout'],[$class: 'CheckoutOption', timeout: 60],[$class: 'CloneOption', depth: 1, noTags: true, reference: '', shallow: false, timeout: 60]],
userRemoteConfigs: [[url: '', credentialsId: 'github-PAT']]])


You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit