hudson.plugins.git.GitException

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.

  • I'm trying to clone a git repository that is hosted on a Atlassian Stash instance. The special case about the repository is that it has several submodules in it. Here is what I did to get to the error: 1) I installed the latest git-plugin (2.4.0) / git-client-plugin (1.19.0) in Jenkins 2) setup a ssh rsa key in Stash 3) configured a Jenkins job to clone the repository from the Stash remote host (via ssh://) 4) configured the ssh key & credentials in the Jenkins job git-plugin settings now when I run the build, Jenkins sucessfully clones the top-level git repository, but fails when trying to update the submodules (the error looks like Jenkins is trying to read username & password from a CLI, but only for the submodules) {code:java} Gestartet durch Benutzer anonymous Baue in Arbeitsbereich C:\Program Files (x86)\Jenkins\jobs\test node\workspace No JDK named 'null' found No JDK named 'null' found > git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git.exe config remote.origin.url ssh://git@jenkinshost:7999/ipp/ipp-project.git # timeout=10 Fetching upstream changes from ssh://git@jenkinshost:7999/ipp/ipp-project.git > git.exe --version # timeout=10 using GIT_SSH to set credentials > git.exe -c core.askpass=true fetch --tags --progress ssh://git@jenkinshost:7999/ipp/ipp-project.git +refs/heads/*:refs/remotes/origin/* > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10 Checking out Revision a27c48024088c36e6eff3420c699ea1d1977e5cd (refs/remotes/origin/master) No JDK named 'null' found > git.exe config core.sparsecheckout # timeout=10 > git.exe checkout -f a27c48024088c36e6eff3420c699ea1d1977e5cd > git.exe rev-list a27c48024088c36e6eff3420c699ea1d1977e5cd # timeout=10 > git.exe remote # timeout=10 > git.exe submodule init # timeout=10 > git.exe submodule sync # timeout=10 > git.exe config --get remote.origin.url # timeout=10 > git.exe submodule update FATAL: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed hudson.plugins.git.GitException: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:904) at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:83) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1074) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE {code}
    via by Wolfgang Steiner,
  • I'm trying to clone a git repository that is hosted on a Atlassian Stash instance. The special case about the repository is that it has several submodules in it. Here is what I did to get to the error: 1) I installed the latest git-plugin (2.4.0) / git-client-plugin (1.19.0) in Jenkins 2) setup a ssh rsa key in Stash 3) configured a Jenkins job to clone the repository from the Stash remote host (via ssh://) 4) configured the ssh key & credentials in the Jenkins job git-plugin settings now when I run the build, Jenkins sucessfully clones the top-level git repository, but fails when trying to update the submodules (the error looks like Jenkins is trying to read username & password from a CLI, but only for the submodules) {code:java} Gestartet durch Benutzer anonymous Baue in Arbeitsbereich C:\Program Files (x86)\Jenkins\jobs\test node\workspace No JDK named 'null' found No JDK named 'null' found > git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git.exe config remote.origin.url ssh://git@jenkinshost:7999/ipp/ipp-project.git # timeout=10 Fetching upstream changes from ssh://git@jenkinshost:7999/ipp/ipp-project.git > git.exe --version # timeout=10 using GIT_SSH to set credentials > git.exe -c core.askpass=true fetch --tags --progress ssh://git@jenkinshost:7999/ipp/ipp-project.git +refs/heads/*:refs/remotes/origin/* > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10 Checking out Revision a27c48024088c36e6eff3420c699ea1d1977e5cd (refs/remotes/origin/master) No JDK named 'null' found > git.exe config core.sparsecheckout # timeout=10 > git.exe checkout -f a27c48024088c36e6eff3420c699ea1d1977e5cd > git.exe rev-list a27c48024088c36e6eff3420c699ea1d1977e5cd # timeout=10 > git.exe remote # timeout=10 > git.exe submodule init # timeout=10 > git.exe submodule sync # timeout=10 > git.exe config --get remote.origin.url # timeout=10 > git.exe submodule update FATAL: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed hudson.plugins.git.GitException: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:904) at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:83) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1074) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE {code}
    via by Wolfgang Steiner,
  • GitHub comment 4451#181384771
    via GitHub by joshmoore
    ,
  • FlightGear - Flight Simulator / Mailing Lists
    via by Unknown author,
  • Used to work on git 2.2.1. After upgrading to 2.2.7, it cannot work on Linux slave. But can work on windows slave. Errors from polling log: Started on Oct 21, 2014 10:31:00 PM Polling SCM changes on VM-Platuypus-Build-10.110.61.85-PDK Using strategy: Default [poll] Last Built Revision: Revision cd2cd96d9ff5f3ca90ead6178f299a873978a44c (origin/master) > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repositories > git config remote.origin.url ssh://bmcdiags@10.110.61.117:30000/platypus.git # timeout=10 Fetching upstream changes from ssh://bmcdiags@10.110.61.117:30000/platypus.git > git --version # timeout=10 > git fetch --tags ssh://bmcdiags@10.110.61.117:30000/platypus.git +refs/heads/*:refs/remotes/origin/* # timeout=20 FATAL: hudson.plugins.git.GitException: Failed to fetch from ssh://bmcdiags@10.110.61.117:30000/platypus.git hudson.util.IOException2: hudson.plugins.git.GitException: Failed to fetch from ssh://bmcdiags@10.110.61.117:30000/platypus.git at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:475) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:357) at hudson.scm.SCM.poll(SCM.java:374) at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1449) at hudson.model.AbstractProject._poll(AbstractProject.java:1420) at hudson.model.AbstractProject.poll(AbstractProject.java:1331) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:477) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:506) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: hudson.plugins.git.GitException: Failed to fetch from ssh://bmcdiags@10.110.61.117:30000/platypus.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:647) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:554) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:473) ... 13 more Caused by: hudson.plugins.git.GitException: Command "git fetch --tags ssh://bmcdiags@10.110.61.117:30000/platypus.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: error: cannot run ssh: No such file or directory fatal: unable to fork at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1435) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1223) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:85) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:280) 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) Done. Took 0.15 sec No changes
    via by sharon xia,
    • hudson.plugins.git.GitException: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:904) at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:83) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1074) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    2 more bugmates