hudson.plugins.git.GitException: Error performing command: /usr/bin/git fetch -t git@github.com:company/repo.git +refs/heads/*:refs/remotes/origin/* Command "/usr/bin/git fetch -t git@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

Jenkins JIRA | Rob Saul | 4 years ago
  1. 0

    I've seen this issue raised in JENKINS-11576 and a solution there. However, we're getting this {quote} Fetching upstream changes from git@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 git@github.com:company/repo.git +refs/heads/*:refs/remotes/origin/* Command "/usr/bin/git fetch -t git@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 git@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 {quote} 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?

    Jenkins JIRA | 4 years ago | Rob Saul
    hudson.plugins.git.GitException: Error performing command: /usr/bin/git fetch -t git@github.com:company/repo.git +refs/heads/*:refs/remotes/origin/* Command "/usr/bin/git fetch -t git@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
  2. 0

    I've seen this issue raised in JENKINS-11576 and a solution there. However, we're getting this {quote} Fetching upstream changes from git@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 git@github.com:company/repo.git +refs/heads/*:refs/remotes/origin/* Command "/usr/bin/git fetch -t git@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 git@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 {quote} 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?

    Jenkins JIRA | 4 years ago | Rob Saul
    hudson.plugins.git.GitException: Error performing command: /usr/bin/git fetch -t git@github.com:company/repo.git +refs/heads/*:refs/remotes/origin/* Command "/usr/bin/git fetch -t git@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
  3. 0

    What does, "FATAL: Error computing merge base" mean?

    Stack Overflow | 3 years ago | MCano
    hudson.plugins.git.GitException: Error computing merge base
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins with multiple slaves using the same machine

    Stack Overflow | 5 years ago | gdoubleod
    hudson.plugins.git.GitException: Error performing command: git fetch -t git@company:repo/repo.git +refs/heads/*:refs/remotes/origin/* Command "git fetch -t git@company:repo/repo.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fatal: unpack-objects failed
  6. 0

    Is it possible to clone a git repo when given ":/ with Jenkins

    Stack Overflow | 4 years ago | kamal
    hudson.plugins.git.GitException: Could not clone

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Error performing command: /usr/bin/git fetch -t git@github.com:company/repo.git +refs/heads/*:refs/remotes/origin/* Command "/usr/bin/git fetch -t git@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()
    2. Hudson GIT plugin
      GitSCM$2.invoke
      1. hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:776)
      2. hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741)
      3. hudson.plugins.git.GitAPI.fetch(GitAPI.java:190)
      4. hudson.plugins.git.GitAPI.fetch(GitAPI.java:978)
      5. hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:765)
      6. hudson.plugins.git.GitSCM.access$100(GitSCM.java:80)
      7. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1003)
      8. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:970)
      8 frames
    3. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2196)
      1 frame
    4. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      5. java.lang.Thread.run(Thread.java:636)
      5 frames