hudson.plugins.git.GitException: Error performing command: /usr/bin/git ls-remote -h git://git.repo.example branch

Jenkins JIRA | Eyal Edri | 5 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

    when i try to mark "fast remote polling" option in one the git repositories i have when using "multiple SCM plugin", the option is NOT saved after i click apply/save on the job config. the /var/log/jenkins/jenkins.log file on the master shows exception [1] running the git ls-remote manully on the same dir from the jenkins slave works. using plugin ver 0.2 [1] SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@6ba43cda[my_job_name] hudson.plugins.git.GitException: Error performing command: /usr/bin/git ls-remote -h git://git.repo.example branch at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:845) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:800) at hudson.plugins.git.GitAPI.getHeadRev(GitAPI.java:1123) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:684) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at org.jenkinsci.plugins.multiplescms.MultiSCM.compareRemoteRevisionWith(MultiSCM.java:91) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject._poll(AbstractProject.java:1391) at hudson.model.AbstractProject.poll(AbstractProject.java:1324) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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:662) Caused by: java.io.IOException: Cannot run program "/usr/bin/git" (in directory "/var/lib/jenkins/workspaces/my_job"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:826) ... 19 more Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 25 more

    Jenkins JIRA | 5 years ago | Eyal Edri
    hudson.plugins.git.GitException: Error performing command: /usr/bin/git ls-remote -h git://git.repo.example branch
  2. 0

    when i try to mark "fast remote polling" option in one the git repositories i have when using "multiple SCM plugin", the option is NOT saved after i click apply/save on the job config. the /var/log/jenkins/jenkins.log file on the master shows exception [1] running the git ls-remote manully on the same dir from the jenkins slave works. using plugin ver 0.2 [1] SEVERE: Failed to record SCM polling for hudson.model.FreeStyleProject@6ba43cda[my_job_name] hudson.plugins.git.GitException: Error performing command: /usr/bin/git ls-remote -h git://git.repo.example branch at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:845) at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:800) at hudson.plugins.git.GitAPI.getHeadRev(GitAPI.java:1123) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:684) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at org.jenkinsci.plugins.multiplescms.MultiSCM.compareRemoteRevisionWith(MultiSCM.java:91) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject._poll(AbstractProject.java:1391) at hudson.model.AbstractProject.poll(AbstractProject.java:1324) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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:662) Caused by: java.io.IOException: Cannot run program "/usr/bin/git" (in directory "/var/lib/jenkins/workspaces/my_job"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:826) ... 19 more Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 25 more

    Jenkins JIRA | 5 years ago | Eyal Edri
    hudson.plugins.git.GitException: Error performing command: /usr/bin/git ls-remote -h git://git.repo.example branch
  3. 0

    jenkins | Blog of Annoying Technical Details

    wordpress.com | 2 years ago
    java.io.IOException: Cannot run program "/opt/android-sdk/platform-tools/aapt" (in directory ": java.io.IOException: error=2, No such file or directory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot run program “/opt/android-sdk/platform-tools/aapt” | Blog of Annoying Technical Details

    wordpress.com | 10 months ago
    java.io.IOException: Cannot run program "/opt/android-sdk/platform-tools/aapt" (in directory ": java.io.IOException: error=2, No such file or directory
  6. 0

    android | Blog of Annoying Technical Details

    wordpress.com | 9 months ago
    java.io.IOException: Cannot run program "/opt/android-sdk/platform-tools/aapt" (in directory ": java.io.IOException: error=2, No such file or directory

  1. rp 1 times, last 2 months ago
  2. michallos 1 times, last 3 months ago
  3. eti22 1 times, last 4 months ago
  4. asdasd 24 times, last 5 months ago
  5. rexgreenza 8 times, last 5 months ago
2 more registered users
93 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. java.io.IOException

    java.io.IOException: error=2, No such file or directory

    at java.lang.UNIXProcess.<init>()
  2. Java RT
    ProcessBuilder.start
    1. java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
    2. java.lang.ProcessImpl.start(ProcessImpl.java:65)
    3. java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    3 frames
  3. Hudson
    Launcher$ProcStarter.join
    1. hudson.Proc$LocalProc.<init>(Proc.java:244)
    2. hudson.Proc$LocalProc.<init>(Proc.java:216)
    3. hudson.Launcher$LocalLauncher.launch(Launcher.java:709)
    4. hudson.Launcher$ProcStarter.start(Launcher.java:338)
    5. hudson.Launcher$ProcStarter.join(Launcher.java:345)
    5 frames
  4. Hudson GIT plugin
    GitSCM.compareRemoteRevisionWith
    1. hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:826)
    2. hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:800)
    3. hudson.plugins.git.GitAPI.getHeadRev(GitAPI.java:1123)
    4. hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:684)
    4 frames
  5. Hudson
    SCM.poll
    1. hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
    2. hudson.scm.SCM.poll(SCM.java:373)
    2 frames
  6. org.jenkinsci.plugins
    MultiSCM.compareRemoteRevisionWith
    1. org.jenkinsci.plugins.multiplescms.MultiSCM.compareRemoteRevisionWith(MultiSCM.java:91)
    1 frame
  7. Hudson
    SequentialExecutionQueue$QueueEntry.run
    1. hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
    2. hudson.scm.SCM.poll(SCM.java:373)
    3. hudson.model.AbstractProject._poll(AbstractProject.java:1391)
    4. hudson.model.AbstractProject.poll(AbstractProject.java:1324)
    5. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
    6. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
    7. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
    7 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    6. java.lang.Thread.run(Thread.java:662)
    6 frames