hudson.plugins.git.GitException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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
    via by Eyal Edri,
  • 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
    via by Eyal Edri,
  • jenkins | Blog of Annoying Technical Details
    via by Unknown author,
  • android | Blog of Annoying Technical Details
    via by Unknown author,
  • I overwrited buildCommandLine in hudson.tasks.Shell to execute script by "source" command: return new Shell(script) { @Override protected String[] buildCommandLine(FilePath script) { if(command.startsWith("#!")) { // interpreter override int end = command.indexOf('\n'); if(end<0) end=command.length(); List<String> args = new ArrayList(); //args.addAll(Arrays.asList(Util.tokenize(command.substring(0,end).trim()))); args.add("source"); args.add(script.getRemote()); //args.set(0,args.get(0).substring(2)); // trim off "#!" return args.toArray(new String[args.size()]); } else return new String[] { getDescriptor().getShellOrDefault(),"-xe",script.getRemote()}; } } Build log says: FATAL: command execution failed java.io.IOException: Cannot run program "source" (in directory "<my worspace>"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at hudson.Proc$LocalProc.<init>(Proc.java:192) at hudson.Proc$LocalProc.<init>(Proc.java:164) at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) at hudson.Launcher$ProcStarter.start(Launcher.java:273) at hudson.Launcher$ProcStarter.join(Launcher.java:280) at com.nokia.hudson.s40isattcn.S40IsattcnBuilder$1.perform(S40IsattcnBuilder.java:901) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at com.nokia.hudson.s40isattcn.S40IsattcnBuilder.perform(S40IsattcnBuilder.java:373) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.Build$RunnerImpl.build(Build.java:174) at hudson.model.Build$RunnerImpl.doRun(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1273) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) 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:452) ... 17 more But "source" is Linux build-in command. I think it's a bug.
    via by jasperlj,
  • I installed the grails plugin. Went to Manage Jenkins and setup a grails instance called grails_2.0.1 I selected Install automatically I selected Grails 2.0.1 Saved then created a new job that calls grails test-app target Got the following job output: [webapp] $ grails test-app -clean --non-interactive FATAL: command execution failed java.io.IOException: Cannot run program "grails" (in directory "/var/lib/jenkins/jobs/liftyourgame-grails-master/workspace/webapp"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:707) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at com.g2one.hudson.grails.GrailsBuilder.perform(GrailsBuilder.java:217) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 15 more Build step 'Build With Grails' marked build as failure Recording test results An attempt to send an e-mail to empty list of recipients, ignored. Finished: FAILURE
    via by Greg Pagendam-Turner,
  • I overwrited buildCommandLine in hudson.tasks.Shell to execute script by "source" command: return new Shell(script) { @Override protected String[] buildCommandLine(FilePath script) { if(command.startsWith("#!")) { // interpreter override int end = command.indexOf('\n'); if(end<0) end=command.length(); List<String> args = new ArrayList(); //args.addAll(Arrays.asList(Util.tokenize(command.substring(0,end).trim()))); args.add("source"); args.add(script.getRemote()); //args.set(0,args.get(0).substring(2)); // trim off "#!" return args.toArray(new String[args.size()]); } else return new String[] { getDescriptor().getShellOrDefault(),"-xe",script.getRemote()}; } } Build log says: FATAL: command execution failed java.io.IOException: Cannot run program "source" (in directory "<my worspace>"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at hudson.Proc$LocalProc.<init>(Proc.java:192) at hudson.Proc$LocalProc.<init>(Proc.java:164) at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) at hudson.Launcher$ProcStarter.start(Launcher.java:273) at hudson.Launcher$ProcStarter.join(Launcher.java:280) at com.nokia.hudson.s40isattcn.S40IsattcnBuilder$1.perform(S40IsattcnBuilder.java:901) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) at com.nokia.hudson.s40isattcn.S40IsattcnBuilder.perform(S40IsattcnBuilder.java:373) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.Build$RunnerImpl.build(Build.java:174) at hudson.model.Build$RunnerImpl.doRun(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1273) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) 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:452) ... 17 more But "source" is Linux build-in command. I think it's a bug.
    via by jasperlj,
  • I installed the grails plugin. Went to Manage Jenkins and setup a grails instance called grails_2.0.1 I selected Install automatically I selected Grails 2.0.1 Saved then created a new job that calls grails test-app target Got the following job output: [webapp] $ grails test-app -clean --non-interactive FATAL: command execution failed java.io.IOException: Cannot run program "grails" (in directory "/var/lib/jenkins/jobs/liftyourgame-grails-master/workspace/webapp"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:707) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at com.g2one.hudson.grails.GrailsBuilder.perform(GrailsBuilder.java:217) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1404) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 15 more Build step 'Build With Grails' marked build as failure Recording test results An attempt to send an e-mail to empty list of recipients, ignored. Finished: FAILURE
    via by Greg Pagendam-Turner,
  • Gradle installer Permission Error
    via GitHub by atomi
    ,
    • 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

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    124 more bugmates