hudson.plugins.git.GitException: Could not checkout 124296a2ae55606a975ed1888c4e030dd9e0f3e4

Jenkins JIRA | Craig Newell | 4 years ago
  1. 0

    The jGIT client has lots of repository compatibility issues as compared to the normal command line git client. Updating to git-client 1.0.4 results in: {noformat} Building remotely on mac mini 1 in workspace /Users/jenkins/workspace/Fuji Checkout:Fuji / /Users/jenkins/workspace/Fuji - hudson.remoting.Channel@c27576:mac mini 1 Using strategy: Default Last Built Revision: Revision 88877737299f64f83e8230928e8b2db4ebe1826b (origin/master) Fetching changes from 1 remote Git repository Commencing build of Revision 124296a2ae55606a975ed1888c4e030dd9e0f3e4 (origin/master) Checking out Revision 124296a2ae55606a975ed1888c4e030dd9e0f3e4 (origin/master) FATAL: Could not checkout 124296a2ae55606a975ed1888c4e030dd9e0f3e4 hudson.plugins.git.GitException: Could not checkout 124296a2ae55606a975ed1888c4e030dd9e0f3e4 at org.jenkinsci.plugins.gitclient.JGitAPIImpl.checkout(JGitAPIImpl.java:68) at hudson.plugins.git.GitAPI.checkout(GitAPI.java:208) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1273) at hudson.plugins.git.GitSCM.access$1100(GitSCM.java:57) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1232) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1208) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) 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:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) Caused by: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with files: support/tools/relink/macholib/MachO.py {noformat} whereas the normal command line git client is happy with the repository. Can we get a work around of a configuration setting to say use either the command line git client or jGIT?

    Jenkins JIRA | 4 years ago | Craig Newell
    hudson.plugins.git.GitException: Could not checkout 124296a2ae55606a975ed1888c4e030dd9e0f3e4
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    The jGIT client has lots of repository compatibility issues as compared to the normal command line git client. Updating to git-client 1.0.4 results in: {noformat} Building remotely on mac mini 1 in workspace /Users/jenkins/workspace/Fuji Checkout:Fuji / /Users/jenkins/workspace/Fuji - hudson.remoting.Channel@c27576:mac mini 1 Using strategy: Default Last Built Revision: Revision 88877737299f64f83e8230928e8b2db4ebe1826b (origin/master) Fetching changes from 1 remote Git repository Commencing build of Revision 124296a2ae55606a975ed1888c4e030dd9e0f3e4 (origin/master) Checking out Revision 124296a2ae55606a975ed1888c4e030dd9e0f3e4 (origin/master) FATAL: Could not checkout 124296a2ae55606a975ed1888c4e030dd9e0f3e4 hudson.plugins.git.GitException: Could not checkout 124296a2ae55606a975ed1888c4e030dd9e0f3e4 at org.jenkinsci.plugins.gitclient.JGitAPIImpl.checkout(JGitAPIImpl.java:68) at hudson.plugins.git.GitAPI.checkout(GitAPI.java:208) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1273) at hudson.plugins.git.GitSCM.access$1100(GitSCM.java:57) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1232) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1208) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) 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:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680) Caused by: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with files: support/tools/relink/macholib/MachO.py {noformat} whereas the normal command line git client is happy with the repository. Can we get a work around of a configuration setting to say use either the command line git client or jGIT?

    Jenkins JIRA | 4 years ago | Craig Newell
    hudson.plugins.git.GitException: Could not checkout 124296a2ae55606a975ed1888c4e030dd9e0f3e4
  4. 0

    If a recursive symlink is present in one's git repo the new git/git-client plugins will fail badly as shown below. While having such a symlink may not be ideal, until git 1.3.0/ git-client 1.0.4 Jenkins did not have problems with it (nor have I had any other git client or tool fail because of this symlink). This appears to be specifically related to changes in the new git 1.3.0 plugin or its dependency git-client 1.0.4. Downgrading to the git 1.2.0 plugin and manually downgrading to the git-client 1.0.3 plugin was enough to remove this issue entirely. The problems seems specific to jgit. Note that I'm using Jenkins 1.505 and all other plugins are up-to-date. The details below contrast the working and broken builds (the only difference is the versions of the git plugins and their effects). ---------------------------------------------------------------------------- A normal build (when using git 1.2.0 and git-client 1.0.3): ---------------------------------------------------------------------------- Retriggered by user myself for Gerrit: http://gerritserver/710 Building on master in workspace /var/lib/jenkins/jobs/puppet/workspace Checkout:workspace / /var/lib/jenkins/jobs/puppet/workspace - hudson.remoting.LocalChannel@1307e9af Using strategy: Gerrit Trigger Last Built Revision: Revision b3f2bd79784969bd18866ff666f0ab46136ff196 (mybranch) Using shallow clone Wiping out workspace first. Cloning the remote Git repository Cloning repository git://gitserver/puppet git --version git version 1.7.9.5 Fetching upstream changes from origin Commencing build of Revision b3f2bd79784969bd18866ff666f0ab46136ff196 (mybranch) Checking out Revision b3f2bd79784969bd18866ff666f0ab46136ff196 (mybranch) [workspace] $ /bin/bash -ex /tmp/hudson3918244826320546803.sh [--== ...and so on to a successful build ==--] ---------------------------------------------------------------------------- Build break (when using git 1.3.0 and git-client 1.0.4): ---------------------------------------------------------------------------- Retriggered by user myself for Gerrit: http://gerritserver/710 Building on master in workspace /var/lib/jenkins/jobs/puppet/workspace Checkout:workspace / /var/lib/jenkins/jobs/puppet/workspace - hudson.remoting.LocalChannel@6f0bc962 Using strategy: Gerrit Trigger Last Built Revision: Revision b3f2bd79784969bd18866ff666f0ab46136ff196 (mybranch) Using shallow clone Wiping out workspace first. Cloning the remote Git repository Cloning repository git://gitserver/puppet git --version git version 1.7.9.5 Commencing build of Revision b3f2bd79784969bd18866ff666f0ab46136ff196 (mybranch) Checking out Revision b3f2bd79784969bd18866ff666f0ab46136ff196 (mybranch) FATAL: Could not checkout b3f2bd79784969bd18866ff666f0ab46136ff196 hudson.plugins.git.GitException: Could not checkout b3f2bd79784969bd18866ff666f0ab46136ff196 at org.jenkinsci.plugins.gitclient.JGitAPIImpl.checkout(JGitAPIImpl.java:68) at hudson.plugins.git.GitAPI.checkout(GitAPI.java:208) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1273) at hudson.plugins.git.GitSCM.access$1100(GitSCM.java:57) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1232) at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1208) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1208) at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588) at hudson.model.Run.execute(Run.java:1567) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with files: apt/spec/fixtures/modules/apt <------ [ this is a symlink to ../../.. ] apt/spec/fixtures/modules/apt/.gitignore apt/spec/fixtures/modules/apt/CHANGELOG apt/spec/fixtures/modules/apt/manifests apt/spec/fixtures/modules/apt/manifests/init.pp apt/spec/fixtures/modules/apt/spec apt/spec/fixtures/modules/apt/spec/fixtures apt/spec/fixtures/modules/apt/spec/fixtures/manifests apt/spec/fixtures/modules/apt/spec/fixtures/manifests/site.pp apt/spec/fixtures/modules/apt/spec/fixtures/modules apt/spec/fixtures/modules/apt/spec/fixtures/modules/apt <--------- [ and so on... ] apt/spec/fixtures/modules/apt/spec/fixtures/modules/apt/.gitignore apt/spec/fixtures/modules/apt/spec/fixtures/modules/apt/CHANGELOG [--== trimmed ~9 MB of recursive output ==--] apt/spec/fixtures/modules/apt/tests/source.pp at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:411) at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:391) at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:240) ... 17 more [--== build failed ==--]

    Jenkins JIRA | 4 years ago | Martin Falatic
    hudson.plugins.git.GitException: Could not checkout b3f2bd79784969bd18866ff666f0ab46136ff196

    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 checkout 124296a2ae55606a975ed1888c4e030dd9e0f3e4

      at org.jenkinsci.plugins.gitclient.JGitAPIImpl.checkout()
    2. org.jenkinsci.plugins
      JGitAPIImpl.checkout
      1. org.jenkinsci.plugins.gitclient.JGitAPIImpl.checkout(JGitAPIImpl.java:68)
      1 frame
    3. Hudson GIT plugin
      GitSCM$4.invoke
      1. hudson.plugins.git.GitAPI.checkout(GitAPI.java:208)
      2. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1273)
      3. hudson.plugins.git.GitSCM.access$1100(GitSCM.java:57)
      4. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1232)
      5. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1208)
      5 frames
    4. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348)
      1 frame
    5. 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
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      5. java.lang.Thread.run(Thread.java:680)
      5 frames