java.io.IOException: Cannot run program "/home/yezt/aaa.sh": error=2, No such file or directory

Pentaho BI Platform Tracking | yezt | 8 months ago
  1. 0

    I'm not sure this is a bug or not. In my opinion, EXIT_CODE = 0 means success, if thers's any error eccured druing the execution, the EXIT_CODE shouldn't be 0. The log of example I as follow: Apr 06, 2016 1:02:09 PM org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the server's publish address to be /lineage Apr 06, 2016 1:02:10 PM org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the server's publish address to be /marketplace Processing stopped because of an error: Unable to load the job from XML file [/home/yezt/Downloads/test_not_exists_shelllllll.kjb] Unable to read file [file:///home/yezt/Downloads/test_not_exists_shelllllll.kjb] Could not read from "file:///home/yezt/Downloads/test_not_exists_shelllllll.kjb" because it is not a file. ERROR: Kitchen can't continue because the job couldn't be loaded. ---------------------------0 The log of example II & III as follow: 2016/04/06 12:58:29 - test_not_exists_shell - Start of job execution 2016/04/06 12:58:29 - test_not_exists_shell - exec(0, 0, START.0) 2016/04/06 12:58:29 - START - Starting job entry 2016/04/06 12:58:29 - test_not_exists_shell - Starting entry [Shell] 2016/04/06 12:58:29 - test_not_exists_shell - exec(1, 0, Shell.0) 2016/04/06 12:58:29 - Shell - Starting job entry 2016/04/06 12:58:29 - Shell - Found 0 previous result rows 2016/04/06 12:58:29 - Shell - Running on platform : Linux 2016/04/06 12:58:29 - Shell - Executing command : /home/yezt/aaa.sh 2016/04/06 12:58:29 - Shell - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : Error running shell [/home/yezt/aaa.sh] : java.io.IOException: Cannot run program "/home/yezt/aaa.sh": error=2, No such file or directory 2016/04/06 12:58:29 - Shell - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : java.io.IOException: Cannot run program "/home/yezt/aaa.sh": error=2, No such file or directory 2016/04/06 12:58:29 - Shell - at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.entries.shell.JobEntryShell.executeShell(JobEntryShell.java:578) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.entries.shell.JobEntryShell.execute(JobEntryShell.java:418) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.Job.execute(Job.java:730) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.Job.execute(Job.java:873) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.Job.execute(Job.java:546) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.Job.run(Job.java:435) 2016/04/06 12:58:29 - Shell - Caused by: java.io.IOException: error=2, No such file or directory 2016/04/06 12:58:29 - Shell - at java.lang.UNIXProcess.forkAndExec(Native Method) 2016/04/06 12:58:29 - Shell - at java.lang.UNIXProcess.<init>(UNIXProcess.java:248) 2016/04/06 12:58:29 - Shell - at java.lang.ProcessImpl.start(ProcessImpl.java:134) 2016/04/06 12:58:29 - Shell - at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) 2016/04/06 12:58:29 - Shell - ... 6 more 2016/04/06 12:58:29 - test_not_exists_shell - Finished job entry [Shell] (result=[false]) 2016/04/06 12:58:29 - test_not_exists_shell - Job execution finished 2016/04/06 12:58:29 - Kitchen - Finished! 2016/04/06 12:58:29 - Kitchen - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : Finished with errors 2016/04/06 12:58:29 - Kitchen - Start=2016/04/06 12:58:18.970, Stop=2016/04/06 12:58:29.575 2016/04/06 12:58:29 - Kitchen - Processing ended after 10 seconds. ---------------------------0 I modify the spoon.sh in order to print EXIT_CODE. script as follow: # *************** # ** Run... ** # *************** OS=`uname -s | tr '[:upper:]' '[:lower:]'` if [ $OS = "linux" ]; then "$_PENTAHO_JAVA" $OPT -jar "$STARTUP" -lib $LIBPATH "${1+$@}" 2>&1 | grep -viE "Gtk-WARNING|GLib-GObject|GLib-CRITICAL|^$" else "$_PENTAHO_JAVA" $OPT -jar "$STARTUP" -lib $LIBPATH "${1+$@}" fi EXIT_CODE=$? echo "---------------------------"$EXIT_CODE # return to the catalog from which spoon.sh has been started cd $INITIALDIR exit $EXIT_CODE

    Pentaho BI Platform Tracking | 8 months ago | yezt
    java.io.IOException: Cannot run program "/home/yezt/aaa.sh": error=2, No such file or directory
  2. 0

    I'm not sure this is a bug or not. In my opinion, EXIT_CODE = 0 means success, if thers's any error eccured druing the execution, the EXIT_CODE shouldn't be 0. The log of example I as follow: Apr 06, 2016 1:02:09 PM org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the server's publish address to be /lineage Apr 06, 2016 1:02:10 PM org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the server's publish address to be /marketplace Processing stopped because of an error: Unable to load the job from XML file [/home/yezt/Downloads/test_not_exists_shelllllll.kjb] Unable to read file [file:///home/yezt/Downloads/test_not_exists_shelllllll.kjb] Could not read from "file:///home/yezt/Downloads/test_not_exists_shelllllll.kjb" because it is not a file. ERROR: Kitchen can't continue because the job couldn't be loaded. ---------------------------0 The log of example II & III as follow: 2016/04/06 12:58:29 - test_not_exists_shell - Start of job execution 2016/04/06 12:58:29 - test_not_exists_shell - exec(0, 0, START.0) 2016/04/06 12:58:29 - START - Starting job entry 2016/04/06 12:58:29 - test_not_exists_shell - Starting entry [Shell] 2016/04/06 12:58:29 - test_not_exists_shell - exec(1, 0, Shell.0) 2016/04/06 12:58:29 - Shell - Starting job entry 2016/04/06 12:58:29 - Shell - Found 0 previous result rows 2016/04/06 12:58:29 - Shell - Running on platform : Linux 2016/04/06 12:58:29 - Shell - Executing command : /home/yezt/aaa.sh 2016/04/06 12:58:29 - Shell - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : Error running shell [/home/yezt/aaa.sh] : java.io.IOException: Cannot run program "/home/yezt/aaa.sh": error=2, No such file or directory 2016/04/06 12:58:29 - Shell - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : java.io.IOException: Cannot run program "/home/yezt/aaa.sh": error=2, No such file or directory 2016/04/06 12:58:29 - Shell - at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.entries.shell.JobEntryShell.executeShell(JobEntryShell.java:578) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.entries.shell.JobEntryShell.execute(JobEntryShell.java:418) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.Job.execute(Job.java:730) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.Job.execute(Job.java:873) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.Job.execute(Job.java:546) 2016/04/06 12:58:29 - Shell - at org.pentaho.di.job.Job.run(Job.java:435) 2016/04/06 12:58:29 - Shell - Caused by: java.io.IOException: error=2, No such file or directory 2016/04/06 12:58:29 - Shell - at java.lang.UNIXProcess.forkAndExec(Native Method) 2016/04/06 12:58:29 - Shell - at java.lang.UNIXProcess.<init>(UNIXProcess.java:248) 2016/04/06 12:58:29 - Shell - at java.lang.ProcessImpl.start(ProcessImpl.java:134) 2016/04/06 12:58:29 - Shell - at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) 2016/04/06 12:58:29 - Shell - ... 6 more 2016/04/06 12:58:29 - test_not_exists_shell - Finished job entry [Shell] (result=[false]) 2016/04/06 12:58:29 - test_not_exists_shell - Job execution finished 2016/04/06 12:58:29 - Kitchen - Finished! 2016/04/06 12:58:29 - Kitchen - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : Finished with errors 2016/04/06 12:58:29 - Kitchen - Start=2016/04/06 12:58:18.970, Stop=2016/04/06 12:58:29.575 2016/04/06 12:58:29 - Kitchen - Processing ended after 10 seconds. ---------------------------0 I modify the spoon.sh in order to print EXIT_CODE. script as follow: # *************** # ** Run... ** # *************** OS=`uname -s | tr '[:upper:]' '[:lower:]'` if [ $OS = "linux" ]; then "$_PENTAHO_JAVA" $OPT -jar "$STARTUP" -lib $LIBPATH "${1+$@}" 2>&1 | grep -viE "Gtk-WARNING|GLib-GObject|GLib-CRITICAL|^$" else "$_PENTAHO_JAVA" $OPT -jar "$STARTUP" -lib $LIBPATH "${1+$@}" fi EXIT_CODE=$? echo "---------------------------"$EXIT_CODE # return to the catalog from which spoon.sh has been started cd $INITIALDIR exit $EXIT_CODE

    Pentaho BI Platform Tracking | 8 months ago | yezt
    java.io.IOException: Cannot run program "/home/yezt/aaa.sh": error=2, No such file or directory
  3. 0

    How to build a Play2 project using play-yeoman from IntelliJ IDEA

    Stack Overflow | 2 years ago
    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

    unable to create javafx application .deb pakage for linux.

    Stack Overflow | 2 years ago | Brajendra Pandey
    java.io.IOException: Cannot run program "fakeroot" (in directory "/tmp/fxbundler2581933641178636333/images/linux-deb.image"): error=2, No such file or directory
  6. 0

    Specify 'PATH' environment does not work when running Gradle 'exec'

    Stack Overflow | 1 year ago | Kane
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':npm'.

  1. eti22 1 times, last 1 month ago
  2. asdasd 24 times, last 3 months ago
  3. rexgreenza 8 times, last 3 months ago
  4. Benj-AD 1 times, last 4 months ago
  5. Akshay 4 times, last 6 months ago
95 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

    error=2, No such file or directory

    at java.lang.UNIXProcess.forkAndExec()
  2. Java RT
    ProcessBuilder.start
    1. java.lang.UNIXProcess.forkAndExec(Native Method)
    2. java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    3. java.lang.ProcessImpl.start(ProcessImpl.java:134)
    4. java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    4 frames
  3. org.pentaho.di
    Job.run
    1. org.pentaho.di.job.entries.shell.JobEntryShell.executeShell(JobEntryShell.java:578)
    2. org.pentaho.di.job.entries.shell.JobEntryShell.execute(JobEntryShell.java:418)
    3. org.pentaho.di.job.Job.execute(Job.java:730)
    4. org.pentaho.di.job.Job.execute(Job.java:873)
    5. org.pentaho.di.job.Job.execute(Job.java:546)
    6. org.pentaho.di.job.Job.run(Job.java:435)
    6 frames