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

Jenkins JIRA | Greg Pagendam-Turner | 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

    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

    Jenkins JIRA | 5 years ago | Greg Pagendam-Turner
    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
  2. 0

    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

    Jenkins JIRA | 5 years ago | Greg Pagendam-Turner
    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
  3. 0

    Build Grails project (2.5) with jenkins

    Stack Overflow | 2 weeks ago | Lionel Piroche
    java.io.IOException: Cannot run program "/var/jenkins_home/workspace/mycj/grailsw" (in directory "/var/jenkins_home/workspace/mycj"): error=13, Permission denied
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

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

    wordpress.com | 11 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 3 months ago
  2. michallos 1 times, last 4 months ago
  3. eti22 1 times, last 5 months ago
  4. asdasd 24 times, last 6 months ago
  5. rexgreenza 8 times, last 6 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:164)
    2. java.lang.ProcessImpl.start(ProcessImpl.java:81)
    3. java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
    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:707)
    4. hudson.Launcher$ProcStarter.start(Launcher.java:338)
    5. hudson.Launcher$ProcStarter.join(Launcher.java:345)
    5 frames
  4. com.g2one.hudson
    GrailsBuilder.perform
    1. com.g2one.hudson.grails.GrailsBuilder.perform(GrailsBuilder.java:217)
    1 frame
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:700)
    3. hudson.model.Build$RunnerImpl.build(Build.java:178)
    4. hudson.model.Build$RunnerImpl.doRun(Build.java:139)
    5. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470)
    6. hudson.model.Run.run(Run.java:1404)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:238)
    9 frames