hudson.plugins.git.GitException: Could not fetch from any repository

Jenkins JIRA | Murali Srinivasan | 5 years ago
  1. 0

    I have Jenkins setup in Windows Server machine and the job will trigger the build at specified time. Sometimes the job fails with the below exception and when I manually trigger it again it will work fine. I read somewhere that moving id_rsa.* file to GIT installation folder will fix the issue, but it didn't improve in my case. It would be great if there is a way to fix this issue. ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway ERROR: (Underlying report) : Error performing command: E:\git\bin\git.exe fetch -t gitosis@****.****.com:ServiceApp +refs/heads/*:refs/remotes/origin/* Command "E:\git\bin\git.exe fetch -t gitosis@****.****.com:ServiceApp +refs/heads/*:refs/remotes/origin/*" returned status code 128: ssh_exchange_identification: Connection closed by remote host fatal: The remote end hung up unexpectedly ERROR: Could not fetch from any repository FATAL: Could not fetch from any repository hudson.plugins.git.GitException: Could not fetch from any repository at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1008) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968) at hudson.FilePath.act(FilePath.java:785) at hudson.FilePath.act(FilePath.java:767) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:968) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:567) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:455) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)

    Jenkins JIRA | 5 years ago | Murali Srinivasan
    hudson.plugins.git.GitException: Could not fetch from any repository
  2. 0

    I have Jenkins setup in Windows Server machine and the job will trigger the build at specified time. Sometimes the job fails with the below exception and when I manually trigger it again it will work fine. I read somewhere that moving id_rsa.* file to GIT installation folder will fix the issue, but it didn't improve in my case. It would be great if there is a way to fix this issue. ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway ERROR: (Underlying report) : Error performing command: E:\git\bin\git.exe fetch -t gitosis@****.****.com:ServiceApp +refs/heads/*:refs/remotes/origin/* Command "E:\git\bin\git.exe fetch -t gitosis@****.****.com:ServiceApp +refs/heads/*:refs/remotes/origin/*" returned status code 128: ssh_exchange_identification: Connection closed by remote host fatal: The remote end hung up unexpectedly ERROR: Could not fetch from any repository FATAL: Could not fetch from any repository hudson.plugins.git.GitException: Could not fetch from any repository at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1008) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968) at hudson.FilePath.act(FilePath.java:785) at hudson.FilePath.act(FilePath.java:767) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:968) at hudson.model.AbstractProject.checkout(AbstractProject.java:1193) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:567) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:455) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)

    Jenkins JIRA | 5 years ago | Murali Srinivasan
    hudson.plugins.git.GitException: Could not fetch from any repository
  3. 0

    Permission denied (publickey) when setting up Jenkins

    Stack Overflow | 5 years ago | Aaron Greenlee
    hudson.plugins.git.GitException: Could not fetch from any repository
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins SSH issue on Mac OS X installed by homebrew

    Stack Overflow | 5 years ago | Sander Smits
    hudson.plugins.git.GitException: Could not fetch from any repository
  6. 0

    Configuring Bitbucket and Jenkins

    Stack Overflow | 4 years ago | Annie
    hudson.plugins.git.GitException: Could not fetch from any repository

    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

      Could not fetch from any repository

      at hudson.plugins.git.GitSCM$2.invoke()
    2. Hudson GIT plugin
      GitSCM$2.invoke
      1. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1008)
      2. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:968)
      2 frames
    3. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:785)
      2. hudson.FilePath.act(FilePath.java:767)
      2 frames
    4. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:968)
      1 frame
    5. Hudson
      Executor.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:567)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:455)
      4. hudson.model.Run.run(Run.java:1404)
      5. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      6. hudson.model.ResourceController.execute(ResourceController.java:88)
      7. hudson.model.Executor.run(Executor.java:230)
      7 frames