hudson.util.IOException2: Failed to fetch from

Jenkins JIRA | Richard | 1 year ago
  1. 0

    When I have a Mac slave node attached to the Windows master node, it always fails git polling with a message like this: On my Windows master, the environment variable GIT_SSH is set to {{C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe}} (we also have subversion installed and this plink executable has been verified as working properly with github and our SSH key). When we have the same job configured to run on a schedule, it always works. It only fails with this error when we use git polling. I had previously encountered a similar problem that the Mac slave was attempting to run {{git.exe}} which I fixed by configuring the local tool location for the node to {{/usr/local/bin/git}}. {noformat} Started on Jun 18, 2015 2:46:52 PM Using strategy: Default [poll] Last Built Revision: Revision ce3c4ab9a700abf4d4874ff9116c49f68e3905c9 (refs/remotes/origin/master) > /usr/local/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repositories > /usr/local/bin/git config remote.origin.url # timeout=10 Fetching upstream changes from > /usr/local/bin/git --version # timeout=10 > /usr/local/bin/git -c core.askpass=true fetch --tags --progress +refs/heads/*:refs/remotes/origin/* FATAL: Failed to fetch from hudson.util.IOException2: Failed to fetch from at hudson.plugins.git.GitSCM.compareRemoteRevisionWith( at hudson.scm.SCM._compareRemoteRevisionWith( at hudson.scm.SCM.poll( at hudson.model.AbstractProject.pollWithWorkspace( at hudson.model.AbstractProject._poll( at hudson.model.AbstractProject.poll( at hudson.triggers.SCMTrigger$Runner.runPolling( at hudson.triggers.SCMTrigger$ at hudson.util.SequentialExecutionQueue$ at java.util.concurrent.Executors$ Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$ Source) at Source) Caused by: hudson.plugins.git.GitException: Failed to fetch from at hudson.plugins.git.GitSCM.fetchFrom( at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl( at hudson.plugins.git.GitSCM.compareRemoteRevisionWith( ... 14 more Caused by: hudson.plugins.git.GitException: Command "/usr/local/bin/git -c core.askpass=true fetch --tags --progress +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: error: cannot run C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe: No such file or directory fatal: unable to fork at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn( at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials( at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300( at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute( at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$ at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$ at hudson.remoting.UserRequest.perform( at hudson.remoting.UserRequest.perform( at hudson.remoting.Request$ at hudson.remoting.InterceptingExecutorService$ at java.util.concurrent.FutureTask$Sync.innerRun( at at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( at java.util.concurrent.ThreadPoolExecutor$ at Done. Took 0.14 sec No changes {noformat}

    Jenkins JIRA | 1 year ago | Richard
    hudson.util.IOException2: Failed to fetch from
  2. 0

    in queue build will fail if the merge request is merged.

    GitHub | 2 years ago | young40
    hudson.plugins.git.GitException: Could not checkout null with start point 6172429b584b6c9604accce41aad674e91c9bbf4
  3. 0

    I am not able to setup build using slave. It works fine when i run the same build on master

    Stack Overflow | 1 year ago
    hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress <url> +refs/heads/*:refs/remotes/origin/*" returned status code 128: fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Git merge checking out impossible commits

    Google Groups | 2 years ago | Johannes Wienke
    hudson.plugins.git.GitException: Could not checkout master with start point 5af79d528388216aa25a24c27f0a16d8dc55bdb6
  6. 0

    Re: Unable to connect EC2 slaves to remote Git repository

    Google Groups | 3 years ago | Kevin Fleming (BLOOMBERG/ 731 LEXIN)
    hudson.plugins.git.GitException: Could not clone ssh://host/repo.git

    1 unregistered visitors
    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

      Command "/usr/local/bin/git -c core.askpass=true fetch --tags --progress +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: error: cannot run C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe: No such file or directory fatal: unable to fork

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(
      5. org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$
      6. org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$
      6 frames
    3. Hudson :: Remoting Layer
      1. hudson.remoting.UserRequest.perform(
      2. hudson.remoting.UserRequest.perform(
      3. hudson.remoting.Request$
      4. hudson.remoting.InterceptingExecutorService$
      4 frames
    4. Java RT
      1. java.util.concurrent.FutureTask$Sync.innerRun(
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
      4. java.util.concurrent.ThreadPoolExecutor$
      5 frames