java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified{color:red}

Jenkins JIRA | Renu Chudamani | 3 years ago
  1. 0

    When executing the TFS Plugin from a Linux master to a Windows 7 slave I am getting the following error: bq. 17:00:52 [EnvInject] - Loading node environment variables. 17:00:53 Building remotely on VMWAYQA09 in workspace C:\jenkins-slave\workspace\AUT-Geb-Demo 17:00:53 [AUT-Geb-Demo] $ tf workspaces -format:brief -server:http://<server>:8080/tfs/2x ******** {color:red}17:00:53 java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified{color:red} 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:244) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:216) 17:00:53 at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) 17:00:53 at hudson.Launcher$ProcStarter.start(Launcher.java:353) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 17:00:53 at hudson.remoting.Request$2.run(Request.java:328) 17:00:53 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 17:00:53 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 17:00:53 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 17:00:53 at hudson.remoting.Engine$1$1.run(Engine.java:63) 17:00:53 at java.lang.Thread.run(Thread.java:662) 17:00:53 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified 17:00:53 at java.lang.ProcessImpl.create(Native Method) 17:00:53 at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) 17:00:53 at java.lang.ProcessImpl.start(ProcessImpl.java:30) 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) 17:00:53 ... 16 more 17:00:53 Finished: FAILURE

    Jenkins JIRA | 3 years ago | Renu Chudamani
    java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified{color:red}
  2. 0

    Jenkins issues - [JIRA] [tfs] (JENKINS-22251) Executing tf using the TFS Plugin throws an IO exception

    nabble.com | 7 months ago
    java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified
  3. 0

    [JENKINS-22251] Executing tf using the TFS Plugin throws an IO exception - Jenkins JIRA

    jenkins-ci.org | 5 months ago
    java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When executing the TFS Plugin from a Linux master to a Windows 7 slave I am getting the following error: bq. 17:00:52 [EnvInject] - Loading node environment variables. 17:00:53 Building remotely on VMWAYQA09 in workspace C:\jenkins-slave\workspace\AUT-Geb-Demo 17:00:53 [AUT-Geb-Demo] $ tf workspaces -format:brief -server:http://<server>:8080/tfs/2x ******** {color:red}17:00:53 java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified{color:red} 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:244) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:216) 17:00:53 at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) 17:00:53 at hudson.Launcher$ProcStarter.start(Launcher.java:353) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 17:00:53 at hudson.remoting.Request$2.run(Request.java:328) 17:00:53 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 17:00:53 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 17:00:53 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 17:00:53 at hudson.remoting.Engine$1$1.run(Engine.java:63) 17:00:53 at java.lang.Thread.run(Thread.java:662) 17:00:53 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified 17:00:53 at java.lang.ProcessImpl.create(Native Method) 17:00:53 at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) 17:00:53 at java.lang.ProcessImpl.start(ProcessImpl.java:30) 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) 17:00:53 ... 16 more 17:00:53 Finished: FAILURE

    Jenkins JIRA | 3 years ago | Renu Chudamani
    java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified{color:red}
  6. 0

    Maven - Notifications - Build failed in Jenkins: maven-plugins-ITs-m3-windows #88 | Page 2

    nabble.com | 1 year ago
    java.io.IOException: Cannot run program "mvn.bat" (in directory "< ")>: CreateProcess error=2, The system cannot find the file specified
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

    CreateProcess error=2, The system cannot find the file specified

    at java.lang.ProcessImpl.create()
  2. Java RT
    ProcessBuilder.start
    1. java.lang.ProcessImpl.create(Native Method)
    2. java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
    3. java.lang.ProcessImpl.start(ProcessImpl.java:30)
    4. java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
    4 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:773)
    4. hudson.Launcher$ProcStarter.start(Launcher.java:353)
    5. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998)
    6. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965)
    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:328)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    4 frames
  5. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    4 frames
  6. Hudson :: Remoting Layer
    Engine$1$1.run
    1. hudson.remoting.Engine$1$1.run(Engine.java:63)
    1 frame
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:662)
    1 frame