Issue Type: Bug Bug
Affects Versions: current
Assignee: Nicolas De Loof
Components: git
Created: 25/Jul/12 6:12 PM
Description:

I've seen this issue raised in JENKINS-11576 and a solution there. However, we're getting this

Fetching upstream changes from g...@github.com:company/repo.git
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
hudson.plugins.git.GitException: Error performing command: /usr/bin/git fetch -t g...@github.com:company/repo.git +refs/heads/:refs/remotes/origin/
Command "/usr/bin/git fetch -t g...@github.com:company/repo.git +refs/heads/:refs/remotes/origin/" returned status code 128: ssh_exchange_identification: Connection closed by remote host
fatal: The remote end hung up unexpectedly

at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:776)
at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:190)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:978)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:765)
at hudson.plugins.git.GitSCM.access$100(GitSCM.java:80)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1003)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:970)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2196)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch -t g...@github.com:company/repo.git +refs/heads/:refs/remotes/origin/" returned status code 128: ssh_exchange_identification: Connection closed by remote host
fatal: The remote end hung up unexpectedly

on a regular basis. As this is an interaction with GitHub the solution mentioned in JENKINS-11576 isn't an option.

Attempting the build will often, but not always, resolve the problem. This, however, wastes time.

Would it be possible to add a configurable retry to the code that executes the fetch?

Environment: Fedora release 11 ( Linux 2.6.30.10-105.2.23.fc11.i586 )
java version "1.6.0_18" (OpenJDK Runtime Environment (IcedTea6 1.8) (fedora-35.b18.fc11-i386))

Project: Jenkins
Priority: Major Major
Reporter: Rob Saul
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to