Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6880

Automatically installing JDK in mixed environment fails


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • remoting
    • None
    • Master=Windows 2003 x86
      Slave=Ubuntu Linux x64 (ssh connected)

      When starting a maven 2 build the slave fails installing the JDK. I've tried several versions from update 17-20 and they all fail with equal errors.

      Reason seems incorrect path building by the master as the working dir is set in Windows style instead of *nix style. (backslashes against forward slashes). Please see build log below. The jdk.sh install file is downloaded to the slave & when manually run, gives no error at all. Of course, on the next build the JDK get's reinstalled & fails once more.

      Started by user anonymous
      Building remotely on work7203 (ssh)
      Updating svn://
      At revision 22552
      no change for svn:// since the previous build
      Downloading file:/C:/Documents and Settings/Default User/.hudson/cache/jdks/LINUX/amd64/jdk-6u20-oth-JPR@CDS-CDS_Developer
      Installing /home/hudson/tools/JDK1.6.0_20/jdk.sh
      [JDK1.6.0_20] $ /home/hudson/tools/JDK1.6.0_20/jdk.sh -noregister
      ERROR: Failed to parse POMs
      java.io.IOException: Cannot run program "/home/hudson/tools/JDK1.6.0_20/jdk.sh" (in directory "\home\hudson\tools\JDK1.6.0_20"): java.io.IOException: error=2, No such file or directory
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
      at hudson.Proc$LocalProc.<init>(Proc.java:192)
      at hudson.Proc$LocalProc.<init>(Proc.java:164)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:638)
      at hudson.Launcher$ProcStarter.start(Launcher.java:273)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:793)
      at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:767)
      at hudson.remoting.UserRequest.perform(UserRequest.java:114)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:270)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      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:452)
      ... 15 more
      Sending e-mails to: *************
      Finished: FAILURE

            mindless Alan Harder
            jeroen_muis jeroen_muis
            1 Vote for this issue
            2 Start watching this issue