github: TCP connection reset by peer

202 views
Skip to first unread message

unli...@gmail.com

unread,
Dec 18, 2020, 2:53:30 AM12/18/20
to jenkins...@googlegroups.com
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 https://github.com/myrepo/mygit.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:1001)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1242)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:125)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --force --progress -- https://github.com/myrepo/mygit.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: unable to access 'https://github.com/myrepo/mygit.git/': TCP connection reset by peer


p.s.
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: 'https://github.com/myrepo/mygit.git', credentialsId: 'github-PAT']]])


Thanks!

Reply all
Reply to author
Forward
0 new messages