java.io.IOException: Cannot run program "cleartool" (in directory "/data/workspace/testbuild"): java.io.IOException: error=2, No such file or directory

Jenkins JIRA | Matthias Spiller | 5 years ago
  1. 0

    See error message below. cleartool is in /usr/atria/bin I have tried to set the PATH variable using EnvInject. Please help. Thanks. {quote} [EnvInject] - Preparing an environment for the job. [EnvInject] - Keep Jenkins system variables. [EnvInject] - Keep Jenkins build variables. [EnvInject] - Injecting as environment variables the properties content PATH=/usr/atria/bin:$PATH [EnvInject] - Variables injected successfully. checkout: Starting to 'checkout' checkout: There is no Previous build or there isn't any RevisionState added, we invoke lshistory with null date [testbuild] $ cleartool setview -exec 'cleartool lshistory -last 10 -fmt "%Nd| |%u| |%En| |%Vn| |%e| |%o| |%Nc\n" -nco /vobs/a93k/prod_com' bf_r7.1_fix-enhance_mspiller_cr74112 java.io.IOException: Cannot run program "cleartool" (in directory "/data/workspace/testbuild"): 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$RemoteLaunchCallable.call(Launcher.java:932) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:899) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) 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:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) 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 Notifying upstream projects of job completion Finished: FAILURE {quote}

    Jenkins JIRA | 5 years ago | Matthias Spiller
    java.io.IOException: Cannot run program "cleartool" (in directory "/data/workspace/testbuild"): java.io.IOException: error=2, No such file or directory
  2. 0

    See error message below. cleartool is in /usr/atria/bin I have tried to set the PATH variable using EnvInject. Please help. Thanks. {quote} [EnvInject] - Preparing an environment for the job. [EnvInject] - Keep Jenkins system variables. [EnvInject] - Keep Jenkins build variables. [EnvInject] - Injecting as environment variables the properties content PATH=/usr/atria/bin:$PATH [EnvInject] - Variables injected successfully. checkout: Starting to 'checkout' checkout: There is no Previous build or there isn't any RevisionState added, we invoke lshistory with null date [testbuild] $ cleartool setview -exec 'cleartool lshistory -last 10 -fmt "%Nd| |%u| |%En| |%Vn| |%e| |%o| |%Nc\n" -nco /vobs/a93k/prod_com' bf_r7.1_fix-enhance_mspiller_cr74112 java.io.IOException: Cannot run program "cleartool" (in directory "/data/workspace/testbuild"): 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$RemoteLaunchCallable.call(Launcher.java:932) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:899) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) 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:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) 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 Notifying upstream projects of job completion Finished: FAILURE {quote}

    Jenkins JIRA | 5 years ago | Matthias Spiller
    java.io.IOException: Cannot run program "cleartool" (in directory "/data/workspace/testbuild"): java.io.IOException: error=2, No such file or directory
  3. 0

    [JENKINS-24788] Cannot run program "/bin/java" on maven 3 projects - Jenkins JIRA

    jenkins-ci.org | 5 months ago
    java.io.IOException: Cannot run program "/bin/java" (in directory "/shn/builder/workspace/build-shnproxy-trunk"): 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

    At work, in my configuration, the master only do balancing stuff. The master as no executor, but many slaves do the builds. When the plugin do a scm-polling, if no executor was set to the master (0 executor) the plugin does not append path to cleartool command. In my configuration, it fail because cleartool is not in the PATH. (i have not the rights to define env variable in the system) If i set an executor on the master, the path set in the clearcase installation field is taken. (even if the job is forced to run on a slave) Even if i try to manualy set clearcase path on slaves, in clearcase installation field, or in PATH variable, it does not work. Here the trace when an executor is setted : Started on Jun 28, 2012 4:37:12 PM [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool desc -fmt %[found_bls]Xp\n stream:IM_Ass@/vobs/pvob_ati baseline:intg-metier_INITIAL@/vobs/pvob_ati [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool desc -fmt %[component]Xp\n baseline:intg-metier_INITIAL@/vobs/pvob_ati component:intg-metier@/vobs/pvob_ati [jenkins_im_test-ass_dyn] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool pwv -root /view/jenkins_im_test-ass_dyn [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool lsview jenkins_im_test-ass_dyn * jenkins_im_test-ass_dyn /Clearcase/views/siciceda/jenkins_im_test-ass_dyn.vws [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool startview jenkins_im_test-ass_dyn [jenkins_im_test-ass_dyn] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool lshistory -all -since 28-jun-12.14:12:10utc+0000 -fmt '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \"%[activity]Xp\" \n%c\n' -branch brtype:IM_Ass -nco vobs/vob_ati/intg-metier [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool desc -fmt %[found_bls]Xp\n stream:IM_Ass@/vobs/pvob_ati baseline:intg-metier_INITIAL@/vobs/pvob_ati [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool desc -fmt %[component]Xp\n baseline:intg-metier_INITIAL@/vobs/pvob_ati component:intg-metier@/vobs/pvob_ati Done. Took 2.2 sec No changes Here a trace when no master executor is set : Started on Jun 28, 2012 4:39:12 PM [im_test_ass_build] $ cleartool desc -fmt %[found_bls]Xp\n stream:IM_Ass@/vobs/pvob_ati FATAL: Cannot run program "cleartool" (in directory "/applis/iced/jenkins/shared/slave0001/workspace/im_test_ass_build"): java.io.IOException: error=2, No such file or directory java.io.IOException: Cannot run program "cleartool" (in directory "/applis/iced/jenkins/shared/slave0001/workspace/im_test_ass_build"): 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$RemoteLaunchCallable.call(Launcher.java:934) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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:619) 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) ... 15 more Done. Took 0.13 sec No changes

    Jenkins JIRA | 4 years ago | Steve Eckerlein
    java.io.IOException: Cannot run program "cleartool" (in directory "/applis/iced/jenkins/shared/slave0001/workspace/im_test_ass_build"): java.io.IOException: error=2, No such file or directory
  6. 0

    At work, in my configuration, the master only do balancing stuff. The master as no executor, but many slaves do the builds. When the plugin do a scm-polling, if no executor was set to the master (0 executor) the plugin does not append path to cleartool command. In my configuration, it fail because cleartool is not in the PATH. (i have not the rights to define env variable in the system) If i set an executor on the master, the path set in the clearcase installation field is taken. (even if the job is forced to run on a slave) Even if i try to manualy set clearcase path on slaves, in clearcase installation field, or in PATH variable, it does not work. Here the trace when an executor is setted : Started on Jun 28, 2012 4:37:12 PM [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool desc -fmt %[found_bls]Xp\n stream:IM_Ass@/vobs/pvob_ati baseline:intg-metier_INITIAL@/vobs/pvob_ati [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool desc -fmt %[component]Xp\n baseline:intg-metier_INITIAL@/vobs/pvob_ati component:intg-metier@/vobs/pvob_ati [jenkins_im_test-ass_dyn] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool pwv -root /view/jenkins_im_test-ass_dyn [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool lsview jenkins_im_test-ass_dyn * jenkins_im_test-ass_dyn /Clearcase/views/siciceda/jenkins_im_test-ass_dyn.vws [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool startview jenkins_im_test-ass_dyn [jenkins_im_test-ass_dyn] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool lshistory -all -since 28-jun-12.14:12:10utc+0000 -fmt '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \"%[activity]Xp\" \n%c\n' -branch brtype:IM_Ass -nco vobs/vob_ati/intg-metier [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool desc -fmt %[found_bls]Xp\n stream:IM_Ass@/vobs/pvob_ati baseline:intg-metier_INITIAL@/vobs/pvob_ati [im_test_ass_build] $ /produits/clearcase/opt_ibm/RationalSDLC/clearcase/bin/cleartool desc -fmt %[component]Xp\n baseline:intg-metier_INITIAL@/vobs/pvob_ati component:intg-metier@/vobs/pvob_ati Done. Took 2.2 sec No changes Here a trace when no master executor is set : Started on Jun 28, 2012 4:39:12 PM [im_test_ass_build] $ cleartool desc -fmt %[found_bls]Xp\n stream:IM_Ass@/vobs/pvob_ati FATAL: Cannot run program "cleartool" (in directory "/applis/iced/jenkins/shared/slave0001/workspace/im_test_ass_build"): java.io.IOException: error=2, No such file or directory java.io.IOException: Cannot run program "cleartool" (in directory "/applis/iced/jenkins/shared/slave0001/workspace/im_test_ass_build"): 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$RemoteLaunchCallable.call(Launcher.java:934) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:901) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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:619) 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) ... 15 more Done. Took 0.13 sec No changes

    Jenkins JIRA | 4 years ago | Steve Eckerlein
    java.io.IOException: Cannot run program "cleartool" (in directory "/applis/iced/jenkins/shared/slave0001/workspace/im_test_ass_build"): java.io.IOException: error=2, No such file or directory

  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

    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$RemoteLaunchCallable.call
    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$RemoteLaunchCallable.call(Launcher.java:932)
    6. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:899)
    6 frames
  4. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:287)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    4 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    5. java.lang.Thread.run(Thread.java:636)
    5 frames