hudson.plugins.git.GitException: Could not clone

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • We are using Jenkins 1.406 here (until now, 1.406 has been working fine -- so better to use something you know works rather than risking upgrading to something that might not) we have started seeing this randomly on our builders: {code} Started by upstream project "lustre-reviews" build number 920 Building remotely on rhel5-64-build Checkout:inkernel / /var/lib/jenkins/workspace/lustre-reviews/arch/x86_64/build_type/client/distro/el5/ib_stack/inkernel - hudson.remoting.Channel@9b72734:rhel5-64-build Using strategy: Gerrit Trigger Last Built Revision: Revision aa2ff9e8ecb9bf44f3ba06fa159812587fb4a86b (null) Checkout:inkernel / /var/lib/jenkins/workspace/lustre-reviews/arch/x86_64/build_type/client/distro/el5/ib_stack/inkernel - hudson.remoting.LocalChannel@6c1f6177 Cloning the remote Git repository Cloning repository origin ERROR: Failed to clean the workspace java.io.IOException: Unable to delete /var/lib/jenkins/workspace/lustre-reviews/arch/x86_64/build_type/client/distro/el5/ib_stack/inkernel at hudson.Util.deleteFile(Util.java:263) at hudson.Util.deleteRecursive(Util.java:305) at hudson.FilePath$9.invoke(FilePath.java:825) at hudson.FilePath$9.invoke(FilePath.java:823) at hudson.FilePath.act(FilePath.java:757) at hudson.FilePath.act(FilePath.java:739) at hudson.FilePath.deleteRecursive(FilePath.java:823) at hudson.plugins.git.GitAPI.clone(GitAPI.java:168) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:864) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:812) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1944) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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 hudson.remoting.Engine$1$1.run(Engine.java:59) at java.lang.Thread.run(Thread.java:636) ERROR: Error cloning remote repo 'origin' : Failed to delete workspace ERROR: Cause: Unable to delete /var/lib/jenkins/workspace/lustre-reviews/arch/x86_64/build_type/client/distro/el5/ib_stack/inkernel Trying next repository ERROR: Could not clone repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:880) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:812) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1944) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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 hudson.remoting.Engine$1$1.run(Engine.java:59) at java.lang.Thread.run(Thread.java:636) {code} When I examine the workspace, it's an empty directory and yet there are previous builds in this same workspace. Any ideas as to what is going wrong?
    via by Brian Murrell,
  • We are using Jenkins 1.406 here (until now, 1.406 has been working fine -- so better to use something you know works rather than risking upgrading to something that might not) we have started seeing this randomly on our builders: {code} Started by upstream project "lustre-reviews" build number 920 Building remotely on rhel5-64-build Checkout:inkernel / /var/lib/jenkins/workspace/lustre-reviews/arch/x86_64/build_type/client/distro/el5/ib_stack/inkernel - hudson.remoting.Channel@9b72734:rhel5-64-build Using strategy: Gerrit Trigger Last Built Revision: Revision aa2ff9e8ecb9bf44f3ba06fa159812587fb4a86b (null) Checkout:inkernel / /var/lib/jenkins/workspace/lustre-reviews/arch/x86_64/build_type/client/distro/el5/ib_stack/inkernel - hudson.remoting.LocalChannel@6c1f6177 Cloning the remote Git repository Cloning repository origin ERROR: Failed to clean the workspace java.io.IOException: Unable to delete /var/lib/jenkins/workspace/lustre-reviews/arch/x86_64/build_type/client/distro/el5/ib_stack/inkernel at hudson.Util.deleteFile(Util.java:263) at hudson.Util.deleteRecursive(Util.java:305) at hudson.FilePath$9.invoke(FilePath.java:825) at hudson.FilePath$9.invoke(FilePath.java:823) at hudson.FilePath.act(FilePath.java:757) at hudson.FilePath.act(FilePath.java:739) at hudson.FilePath.deleteRecursive(FilePath.java:823) at hudson.plugins.git.GitAPI.clone(GitAPI.java:168) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:864) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:812) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1944) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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 hudson.remoting.Engine$1$1.run(Engine.java:59) at java.lang.Thread.run(Thread.java:636) ERROR: Error cloning remote repo 'origin' : Failed to delete workspace ERROR: Cause: Unable to delete /var/lib/jenkins/workspace/lustre-reviews/arch/x86_64/build_type/client/distro/el5/ib_stack/inkernel Trying next repository ERROR: Could not clone repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:880) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:812) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1944) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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 hudson.remoting.Engine$1$1.run(Engine.java:59) at java.lang.Thread.run(Thread.java:636) {code} When I examine the workspace, it's an empty directory and yet there are previous builds in this same workspace. Any ideas as to what is going wrong?
    via by Brian Murrell,
  • Build failed in Hudson: OpenEngSB #576
    via by Unknown author,
  • Failed to clone using git in hudson
    via Stack Overflow by user1460070
    ,
  • We created a simple matrix job which should clone our project from a Git repo to run maven afterwards. Hudson wants to checkout the project from Git to not existing directory {{/home/<hudsonuser>}}, but the real home dir exists in another directory (e.g. {{/export/home/<hudsonuser>}}. The {{$HOME}} variable is set accordingly. Other jobs (non-matrix) are working fine with Git. It seems that the destination directory is hard coded? Excerpt from Hudson log: {noformat} Cloning repository origin $ <path-to-git>/git clone -o origin git://<url>/<project>.git /home/<hudsonuser>/<hudson-workspace>/<job-name> ERROR: Error cloning remote repo 'origin' : Could not clone git://<url>/<project>.git ERROR: Cause: Error performing <path-to-git>/git clone -o origin git://<url>/<project>.git /home/<hudsonuser>/<hudson-workspace>/<job-name> Trying next repository ERROR: Could not clone from a repository FATAL: Could not clone hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:493) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:446) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2015) at hudson.remoting.UserRequest.perform(UserRequest.java:114) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314) at java.util.concurrent.FutureTask.run(FutureTask.java:149) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:735) {noformat}
    via by Daniel Strassenburg,
    • hudson.plugins.git.GitException: Could not clone at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:880) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:812) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1944) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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 hudson.remoting.Engine$1$1.run(Engine.java:59) at java.lang.Thread.run(Thread.java:636)
    No Bugmate found.