java.io.IOException: CreateProcess: mkview -snapshot -tag hudson_server_view hudson_server_view error=2

Jenkins JIRA | redsolo | 9 years ago
  1. 0

    If the cleartool command is empty (or doesnt exist) then a fatal error should be shown and not an exception. Creating a snapshot clear tool [workspace] $ mkview -snapshot -tag hudson_server_view hudson_server_view FATAL: CreateProcess: mkview -snapshot -tag hudson_server_view hudson_server_view error=2 java.io.IOException: CreateProcess: mkview -snapshot -tag hudson_server_view hudson_server_view error=2 at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) at hudson.Proc$LocalProc.<init>(Proc.java:80) at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290) at hudson.Launcher$LocalLauncher.launch(Launcher.java:281) at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:266) at hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:38) at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:145) at hudson.model.AbstractProject.checkout(AbstractProject.java:529) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189) at hudson.model.Run.run(Run.java:646) at hudson.model.Build.run(Build.java:102) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:62)

    Jenkins JIRA | 9 years ago | redsolo
    java.io.IOException: CreateProcess: mkview -snapshot -tag hudson_server_view hudson_server_view error=2
  2. 0

    If the cleartool command is empty (or doesnt exist) then a fatal error should be shown and not an exception. Creating a snapshot clear tool [workspace] $ mkview -snapshot -tag hudson_server_view hudson_server_view FATAL: CreateProcess: mkview -snapshot -tag hudson_server_view hudson_server_view error=2 java.io.IOException: CreateProcess: mkview -snapshot -tag hudson_server_view hudson_server_view error=2 at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) at hudson.Proc$LocalProc.<init>(Proc.java:80) at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:290) at hudson.Launcher$LocalLauncher.launch(Launcher.java:281) at hudson.plugins.clearcase.ClearCaseSCM$ClearToolLauncherImpl.run(ClearCaseSCM.java:266) at hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:38) at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:145) at hudson.model.AbstractProject.checkout(AbstractProject.java:529) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189) at hudson.model.Run.run(Run.java:646) at hudson.model.Build.run(Build.java:102) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:62)

    Jenkins JIRA | 9 years ago | redsolo
    java.io.IOException: CreateProcess: mkview -snapshot -tag hudson_server_view hudson_server_view error=2
  3. 0

    The ssh part works properly and Jenkins succeeds on copying the slave.jar file and executes it but it seems that it does make some wrong assumptions about paths, giving the error below: {code:java} [marvin] $ /bin/bash C:\Users\Administrator\hudson5000371039477233927.sh hudson.util.IOException2: Slave JVM has not reported exit code. Is it still running? at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:953) at hudson.plugins.sshslaves.SSHLauncher.access$400(SSHLauncher.java:133) Caused by: java.io.IOException: Cannot run program "/bin/bash" (in directory "C:\tools\cygwin\home\Administrator\marvin\marvin"): CreateProcess error=3, The system cannot find the path specified at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244) {code} Full log at https://gist.github.com/ssbarnea/370949586b622f751d07 The windows path is correct, being created by Jenkins, but it seems that he execution of /bin/bash is the one that fails. If one does manually performs ssh to the machine, using the same credentials, they would be able to run /bin/bash. I believe that the problem is because Jenkins is assuming that being a Windows machine it has to provide a Windows path to the CreateProcess which probably expects a Unix path instead because the entire shell is run under cygwin. Still, I tried any combinations of configuring the slave path on the node configuration but none seems to work.

    Jenkins JIRA | 1 year ago | Sorin Sbarnea
    hudson.util.IOException2: Slave JVM has not reported exit code. Is it still running?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't run gradle on jenkins slave

    Stack Overflow | 5 years ago | eldad levy
    java.io.IOException: Cannot run program "gradle" (in directory "/var/jenkins/workspace/dadi"): java.io.IOException: error=2, No such file or directory
  6. 0

    [JENKINS-29105] cannot start windows slaves via SSH (cygwin) due to Caused by: java.io.IOException: Cannot run program "/bin/bash" - Jenkins JIRA

    jenkins-ci.org | 7 months ago
    hudson.util.IOException2: Slave JVM has not reported exit code. Is it still running?

  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

    CreateProcess: mkview -snapshot -tag hudson_server_view hudson_server_view error=2

    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:451)
    4 frames
  3. Hudson
    Proc$LocalProc.<init>
    1. hudson.Proc$LocalProc.<init>(Proc.java:80)
    1 frame