java.io.IOException: error=2, No such file or directory

Jenkins JIRA | woneill | 8 years ago
  1. 0

    Using cvs-tag version 1.3 on Hudson 1.282, I'm unable to get the post-build cvs tag to work when it's run on a slave node. It appears to be related to making the tmp directory where the command is executed. The plugin works fine on jobs run on the master node. Some nodes are more verbose than others. This is a quiet node: Executing tag command: cvs -d :pserver:dev@cvs.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121629 foo [hudson132373tmp] $ cvs -d :pserver:dev@cvs.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121629 foo /tmp/hudson132373tmp: No such file or directory FATAL: Perform CVS tagging on succesful build failed. exit code=255 cleaning up /tmp/hudson132373tmp And a more verbose failure on a different node: Executing tag command: cvs -d :pserver:cm@cvscm.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121637 foo [hudson139965tmp] $ cvs -d :pserver:cm@cvscm.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121637 foo ERROR: Cannot run program "cvs" (in directory "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or directory java.io.IOException: Cannot run program "cvs" (in directory "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:127) at hudson.Proc$LocalProc.<init>(Proc.java:105) at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:338) at hudson.Launcher$LocalLauncher.launch(Launcher.java:329) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:444) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:428) at hudson.remoting.UserRequest.perform(UserRequest.java:92) at hudson.remoting.UserRequest.perform(UserRequest.java:46) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 16 more IOException occurred: java.io.IOException: Cannot run program "cvs" (in directory "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or directory cleaning up /tmp/hudson139965tmp

    Jenkins JIRA | 8 years ago | woneill
    java.io.IOException: error=2, No such file or directory
  2. 0

    Using cvs-tag version 1.3 on Hudson 1.282, I'm unable to get the post-build cvs tag to work when it's run on a slave node. It appears to be related to making the tmp directory where the command is executed. The plugin works fine on jobs run on the master node. Some nodes are more verbose than others. This is a quiet node: Executing tag command: cvs -d :pserver:dev@cvs.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121629 foo [hudson132373tmp] $ cvs -d :pserver:dev@cvs.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121629 foo /tmp/hudson132373tmp: No such file or directory FATAL: Perform CVS tagging on succesful build failed. exit code=255 cleaning up /tmp/hudson132373tmp And a more verbose failure on a different node: Executing tag command: cvs -d :pserver:cm@cvscm.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121637 foo [hudson139965tmp] $ cvs -d :pserver:cm@cvscm.tek.foo.com:/usr/local/cvsroot rtag -r release-23 TEST-200902121637 foo ERROR: Cannot run program "cvs" (in directory "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or directory java.io.IOException: Cannot run program "cvs" (in directory "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:127) at hudson.Proc$LocalProc.<init>(Proc.java:105) at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:338) at hudson.Launcher$LocalLauncher.launch(Launcher.java:329) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:444) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:428) at hudson.remoting.UserRequest.perform(UserRequest.java:92) at hudson.remoting.UserRequest.perform(UserRequest.java:46) at hudson.remoting.Request$2.run(Request.java:236) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 16 more IOException occurred: java.io.IOException: Cannot run program "cvs" (in directory "/tmp/hudson139965tmp"): java.io.IOException: error=2, No such file or directory cleaning up /tmp/hudson139965tmp

    Jenkins JIRA | 8 years ago | woneill
    java.io.IOException: error=2, No such file or directory
  3. 0

    How can I use an alternate path for a Jenkins slave SCM step (CVS)

    Google Groups | 5 years ago | Matthew Johnson
    java.io.IOException: cvs: not found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.io.IOException: Cannot run program "ant" - java pressing answers

    itanswerz.com | 1 year ago
    java.io.IOException: Cannot run program "ant" (in directory "/hudson/buildTool/src/bt"): error=2, No existe el fichero o el directorio
  6. 0

    Re: [dash-dev] Weird failure..

    eclipse.org | 1 year ago
    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>(Unknown Source)
    2. java.lang.ProcessImpl.start(Unknown Source)
    3. java.lang.ProcessBuilder.start(Unknown Source)
    3 frames
  3. Hudson
    Launcher$RemoteLaunchCallable.call
    1. hudson.Proc$LocalProc.<init>(Proc.java:127)
    2. hudson.Proc$LocalProc.<init>(Proc.java:105)
    3. hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:338)
    4. hudson.Launcher$LocalLauncher.launch(Launcher.java:329)
    5. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:444)
    6. hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:428)
    6 frames
  4. Hudson :: Remoting Layer
    Request$2.run
    1. hudson.remoting.UserRequest.perform(UserRequest.java:92)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:46)
    3. hudson.remoting.Request$2.run(Request.java:236)
    3 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    3. java.util.concurrent.FutureTask.run(Unknown Source)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    6. java.lang.Thread.run(Unknown Source)
    6 frames