hudson.plugins.git.GitException: Could not checkout master with start point 5af79d528388216aa25a24c27f0a16d8dc55bdb6

Jenkins JIRA | Johannes Wienke | 2 years ago
  1. 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
  2. 0

    We are using special merge simulator projects for feature branches where the idea is that the feature branch is automatically merged onto the master before compiling and testing it so that also the merging behavior is verified. All of these projects are multi configuration jobs. So far this worked quite well but since a few days we are noticing a weird behavior: In one of the feature branches we did some force pushing and after that we noticed two error conditions. 1. The coordinator performed the merge successfully, which created a new revision with hash 5af79d528388216aa25a24c27f0a16d8dc55bdb6. All slaves of the multi configuration project then try to checkout that revision, which obviously does not exist in their local repositories. Hence, they end up with {noformat} FATAL: Could not checkout master with start point 5af79d528388216aa25a24c27f0a16d8dc55bdb6 hudson.plugins.git.GitException: Could not checkout master with start point 5af79d528388216aa25a24c27f0a16d8dc55bdb6 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$8.execute(CliGitAPIImpl.java:1448) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) 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:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) Caused by: hudson.plugins.git.GitException: Command "git checkout -f 5af79d528388216aa25a24c27f0a16d8dc55bdb6" returned status code 128: stdout: stderr: fatal: reference is not a tree: 5af79d528388216aa25a24c27f0a16d8dc55bdb6 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1276) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1253) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1249) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1065) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1075) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$8.execute(CliGitAPIImpl.java:1431) ... 11 more {noformat} 2. After wiping the workspace of that job we ended up in a second error condition already on the coordinator side: {noformat} Merging Revision 5af79d528388216aa25a24c27f0a16d8dc55bdb6 () onto origin/master using default strategy FATAL: Could not checkout master with start point 5af79d528388216aa25a24c27f0a16d8dc55bdb6 hudson.plugins.git.GitException: Could not checkout master with start point 5af79d528388216aa25a24c27f0a16d8dc55bdb6 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$8.execute(CliGitAPIImpl.java:1448) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) 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:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) Caused by: hudson.plugins.git.GitException: Command "git checkout -f 5af79d528388216aa25a24c27f0a16d8dc55bdb6" returned status code 128: stdout: stderr: fatal: reference is not a tree: 5af79d528388216aa25a24c27f0a16d8dc55bdb6 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1276) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1253) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1249) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1065) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1075) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$8.execute(CliGitAPIImpl.java:1431) ... 11 more {noformat} It seems that the master cached the last revision (which it generated locally, so it will never be available after pulling) and refused to forget about this revision.

    Jenkins JIRA | 2 years ago | Johannes Wienke
    hudson.plugins.git.GitException: Could not checkout master with start point 5af79d528388216aa25a24c27f0a16d8dc55bdb6
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

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

    Stack Overflow | 2 years 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
  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 "git checkout -f 5af79d528388216aa25a24c27f0a16d8dc55bdb6" returned status code 128: stdout: stderr: fatal: reference is not a tree: 5af79d528388216aa25a24c27f0a16d8dc55bdb6

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      RemoteGitImpl$CommandInvocationHandler$1.call
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1276)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1253)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1249)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1065)
      5. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1075)
      6. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$8.execute(CliGitAPIImpl.java:1431)
      7. org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
      8. org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
      8 frames
    3. 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:328)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    4. 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:1146)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:701)
      5 frames