hudson.plugins.git.GitException: Could not clone

Jenkins JIRA | Martin Burger | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Suddenly, the git plugin stopped to work. It issues the following error message: {{Error trying to determine the git version: Error performing command: --version}} Full stack trace: {code:none} ERROR: Error cloning remote repo 'origin' : Could not clone ssh://<URL> hudson.plugins.git.GitException: Could not clone ssh://<URL> at hudson.plugins.git.GitAPI.clone(GitAPI.java:273) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1331) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587) at hudson.model.Run.execute(Run.java:1557) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.plugins.git.GitException: Error performing command: clone -o origin ssh://<URL> /var/lib/jenkins/jobs/<project>/workspace at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:904) at hudson.plugins.git.GitAPI.access$000(GitAPI.java:42) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:269) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:248) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitAPI.clone(GitAPI.java:248) ... 14 more Caused by: java.lang.NullPointerException at hudson.Launcher.printCommandLine(Launcher.java:607) at hudson.Launcher.maskedPrintCommandLine(Launcher.java:629) at hudson.Launcher$LocalLauncher.launch(Launcher.java:754) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$ProcStarter.join(Launcher.java:360) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:885) ... 20 more 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:1056) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1331) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587) at hudson.model.Run.execute(Run.java:1557) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} As system user jenkins (which runs Jenkins) I am perfectly able to run that command: {code:none} $ git --version git version 1.7.9.5 {code} Cloning worked before, but all of a sudden the above error occurs. I tried both to specify the full path to the git executable ({{/usr/bin/git}}) and to specify the name of the executable only (without path: {{git}}). However, without success.

    Jenkins JIRA | 4 years ago | Martin Burger
    hudson.plugins.git.GitException: Could not clone
  2. 0

    Suddenly, the git plugin stopped to work. It issues the following error message: {{Error trying to determine the git version: Error performing command: --version}} Full stack trace: {code:none} ERROR: Error cloning remote repo 'origin' : Could not clone ssh://<URL> hudson.plugins.git.GitException: Could not clone ssh://<URL> at hudson.plugins.git.GitAPI.clone(GitAPI.java:273) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1331) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587) at hudson.model.Run.execute(Run.java:1557) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.plugins.git.GitException: Error performing command: clone -o origin ssh://<URL> /var/lib/jenkins/jobs/<project>/workspace at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:904) at hudson.plugins.git.GitAPI.access$000(GitAPI.java:42) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:269) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:248) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitAPI.clone(GitAPI.java:248) ... 14 more Caused by: java.lang.NullPointerException at hudson.Launcher.printCommandLine(Launcher.java:607) at hudson.Launcher.maskedPrintCommandLine(Launcher.java:629) at hudson.Launcher$LocalLauncher.launch(Launcher.java:754) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.Launcher$ProcStarter.join(Launcher.java:360) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:885) ... 20 more 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:1056) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986) at hudson.FilePath.act(FilePath.java:865) at hudson.FilePath.act(FilePath.java:838) at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142) at hudson.model.AbstractProject.checkout(AbstractProject.java:1331) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587) at hudson.model.Run.execute(Run.java:1557) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} As system user jenkins (which runs Jenkins) I am perfectly able to run that command: {code:none} $ git --version git version 1.7.9.5 {code} Cloning worked before, but all of a sudden the above error occurs. I tried both to specify the full path to the git executable ({{/usr/bin/git}}) and to specify the name of the executable only (without path: {{git}}). However, without success.

    Jenkins JIRA | 4 years ago | Martin Burger
    hudson.plugins.git.GitException: Could not clone
  3. 0

    Build failed in Jenkins: openegnsb-domain-test-openengsb-2.x #1

    Google Groups | 5 years ago | openengsb admin
    hudson.plugins.git.GitException: Could not clone
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Build failed in Jenkins: openengsb-connector-gcalendar-master #1

    Google Groups | 5 years ago | openengsb admin
    hudson.plugins.git.GitException: Could not clone
  6. 0

    Configuring Jenkins with Bitbucket

    Stack Overflow | 5 years ago | david99world
    hudson.plugins.git.GitException: Could not clone git@bitbucket.org:DAVID99WORLD/assessme.git

    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 clone

      at hudson.plugins.git.GitSCM$2.invoke()
    2. Hudson GIT plugin
      GitSCM$2.invoke
      1. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1056)
      2. hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986)
      2 frames
    3. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:865)
      2. hudson.FilePath.act(FilePath.java:838)
      2 frames
    4. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986)
      2. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142)
      2 frames
    5. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1331)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682)
      2 frames
    6. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    7. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587)
      2. hudson.model.Run.execute(Run.java:1557)
      2 frames
    8. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      1 frame
    9. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:236)
      2 frames