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

Auto Install jdk from oracle downloads html instead of bin

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None

      Description

      On version 1.455 (saw on 1.459 as well), choosing to auto-install the jdk from oracle results in an html page being downloaded and the message below. When I look at the jdk.sh, it's the html page from oracle complaining about not accepting the license terms. Also see: https://groups.google.com/group/jenkinsci-users/browse_thread/thread/1d510fae9816f086

      Installing JDK jdk-1.5.0_22-oth-JPR
      Downloading JDK from http://download.oracle.com/otn/java/jdk/1.5.0_22/jdk-1_5_0_22-linux-amd64.bin
      Downloading 5307bytes
      Installing /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh
      [jdk1.5_22] $ /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh -noregister
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 1: html: No such file or directory
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 2: head: No such file or directory
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 3: title: No such file or directory
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 4: META: No such file or directory
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 5: link: No such file or directory
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 6: link: No such file or directory
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 7:
      : command not found
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 8: body: No such file or directory
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 9: div: No such file or directory
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 10: table: No such file or directory
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 11: tr: No such file or directory
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 12: syntax error near unexpected token `<'
      /home/exodus/jenkins/tools/jdk1.5_22/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td>
      '
      [EnvInject] - [ERROR] - SEVERE ERROR occurs: hudson.AbortException: Failed to install JDK. Exit code=2
      Finished: FAILURE

        Issue Links

          Activity

          Hide
          ivalo Markku Saarela added a comment -

          Jenkins 1.459 running on RH 4.1.2

          Building in workspace /var/lib/jenkins/jobs/RITU-nightly/workspace
          Installing /var/lib/jenkins/tools/1.6.0_24/jdk.sh
          [1.6.0_24] $ /var/lib/jenkins/tools/1.6.0_24/jdk.sh -noregister
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 1: html: No such file or directory
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 2: head: No such file or directory
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 3: title: No such file or directory
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 4: META: No such file or directory
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 5: link: No such file or directory
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 6: link: No such file or directory
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 7:
          : command not found
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 8: body: No such file or directory
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 9: div: No such file or directory
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 10: table: No such file or directory
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 11: tr: No such file or directory
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 12: syntax error near unexpected token `<'
          /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td>
          '
          ERROR: Failed to install JDK. Exit code=2

          Show
          ivalo Markku Saarela added a comment - Jenkins 1.459 running on RH 4.1.2 Building in workspace /var/lib/jenkins/jobs/RITU-nightly/workspace Installing /var/lib/jenkins/tools/1.6.0_24/jdk.sh [1.6.0_24] $ /var/lib/jenkins/tools/1.6.0_24/jdk.sh -noregister /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 1: html: No such file or directory /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 2: head: No such file or directory /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 3: title: No such file or directory /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 4: META: No such file or directory /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 5: link: No such file or directory /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 6: link: No such file or directory /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 7: : command not found /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 8: body: No such file or directory /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 9: div: No such file or directory /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 10: table: No such file or directory /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 11: tr: No such file or directory /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 12: syntax error near unexpected token `<' /var/lib/jenkins/tools/1.6.0_24/jdk.sh: line 12: ` <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif" width="154" height="19" hspace="10" vspace="25" border="0" ></a></td> ' ERROR: Failed to install JDK. Exit code=2
          Hide
          sogabe sogabe added a comment -
          Show
          sogabe sogabe added a comment - See https://github.com/jenkinsci/jenkins/commit/7a0bd976f11c62e0ca1f666ded823801771ea21f This will be fixed in 1.464.
          Hide
          highstick Andreas Hochsteger added a comment -

          Hi,

          I've just upgraded to 1.464 but I still get the same problem.
          Here's my log output:

          [EnvInject] - Loading node environment variables.
          Installing /var/lib/jenkins/tools/JDK6/jdk.sh
          [JDK6] $ /var/lib/jenkins/tools/JDK6/jdk.sh -noregister
          /var/lib/jenkins/tools/JDK6/jdk.sh: 1: /var/lib/jenkins/tools/JDK6/jdk.sh: cannot open html: No such file
          /var/lib/jenkins/tools/JDK6/jdk.sh: 2: /var/lib/jenkins/tools/JDK6/jdk.sh: cannot open head: No such file
          /var/lib/jenkins/tools/JDK6/jdk.sh: 3: /var/lib/jenkins/tools/JDK6/jdk.sh: cannot open title: No such file
          /var/lib/jenkins/tools/JDK6/jdk.sh: 3: /var/lib/jenkins/tools/JDK6/jdk.sh: Request: not found
          /var/lib/jenkins/tools/JDK6/jdk.sh: 4: /var/lib/jenkins/tools/JDK6/jdk.sh: cannot open META: No such file
          /var/lib/jenkins/tools/JDK6/jdk.sh: 5: /var/lib/jenkins/tools/JDK6/jdk.sh: cannot open link: No such file
          /var/lib/jenkins/tools/JDK6/jdk.sh: 6: /var/lib/jenkins/tools/JDK6/jdk.sh: cannot open link: No such file
          /var/lib/jenkins/tools/JDK6/jdk.sh: 7: /var/lib/jenkins/tools/JDK6/jdk.sh: 
          : not found
          /var/lib/jenkins/tools/JDK6/jdk.sh: 8: /var/lib/jenkins/tools/JDK6/jdk.sh: cannot open body: No such file
          /var/lib/jenkins/tools/JDK6/jdk.sh: 9: /var/lib/jenkins/tools/JDK6/jdk.sh: cannot open div: No such file
          /var/lib/jenkins/tools/JDK6/jdk.sh: 10: /var/lib/jenkins/tools/JDK6/jdk.sh: cannot open table: No such file
          /var/lib/jenkins/tools/JDK6/jdk.sh: 11: /var/lib/jenkins/tools/JDK6/jdk.sh: cannot open tr: No such file
          /var/lib/jenkins/tools/JDK6/jdk.sh: 12: /var/lib/jenkins/tools/JDK6/jdk.sh: Syntax error: redirection unexpected
          [EnvInject] - [ERROR] - SEVERE ERROR occurs: hudson.AbortException: JDK konnte nicht installiert werden.
          Capturing build context.
          Finished: FAILURE
          

          Is there something (e.g. a work-around) I can do about it?

          Thanks,

          Andreas

          Show
          highstick Andreas Hochsteger added a comment - Hi, I've just upgraded to 1.464 but I still get the same problem. Here's my log output: [EnvInject] - Loading node environment variables. Installing / var /lib/jenkins/tools/JDK6/jdk.sh [JDK6] $ / var /lib/jenkins/tools/JDK6/jdk.sh -noregister / var /lib/jenkins/tools/JDK6/jdk.sh: 1: / var /lib/jenkins/tools/JDK6/jdk.sh: cannot open html: No such file / var /lib/jenkins/tools/JDK6/jdk.sh: 2: / var /lib/jenkins/tools/JDK6/jdk.sh: cannot open head: No such file / var /lib/jenkins/tools/JDK6/jdk.sh: 3: / var /lib/jenkins/tools/JDK6/jdk.sh: cannot open title: No such file / var /lib/jenkins/tools/JDK6/jdk.sh: 3: / var /lib/jenkins/tools/JDK6/jdk.sh: Request: not found / var /lib/jenkins/tools/JDK6/jdk.sh: 4: / var /lib/jenkins/tools/JDK6/jdk.sh: cannot open META: No such file / var /lib/jenkins/tools/JDK6/jdk.sh: 5: / var /lib/jenkins/tools/JDK6/jdk.sh: cannot open link: No such file / var /lib/jenkins/tools/JDK6/jdk.sh: 6: / var /lib/jenkins/tools/JDK6/jdk.sh: cannot open link: No such file / var /lib/jenkins/tools/JDK6/jdk.sh: 7: / var /lib/jenkins/tools/JDK6/jdk.sh: : not found / var /lib/jenkins/tools/JDK6/jdk.sh: 8: / var /lib/jenkins/tools/JDK6/jdk.sh: cannot open body: No such file / var /lib/jenkins/tools/JDK6/jdk.sh: 9: / var /lib/jenkins/tools/JDK6/jdk.sh: cannot open div: No such file / var /lib/jenkins/tools/JDK6/jdk.sh: 10: / var /lib/jenkins/tools/JDK6/jdk.sh: cannot open table: No such file / var /lib/jenkins/tools/JDK6/jdk.sh: 11: / var /lib/jenkins/tools/JDK6/jdk.sh: cannot open tr: No such file / var /lib/jenkins/tools/JDK6/jdk.sh: 12: / var /lib/jenkins/tools/JDK6/jdk.sh: Syntax error: redirection unexpected [EnvInject] - [ERROR] - SEVERE ERROR occurs: hudson.AbortException: JDK konnte nicht installiert werden. Capturing build context. Finished: FAILURE Is there something (e.g. a work-around) I can do about it? Thanks, Andreas
          Hide
          aschilling Andreas Schilling added a comment -

          Same problem here, still not fixed in 1.464
          Is more action needed than just upgrading to 1.464? Refreshing credentials for Oracle Account or whatever?
          This is becoming a serious problem for us.

          Show
          aschilling Andreas Schilling added a comment - Same problem here, still not fixed in 1.464 Is more action needed than just upgrading to 1.464? Refreshing credentials for Oracle Account or whatever? This is becoming a serious problem for us.
          Hide
          sogabe sogabe added a comment -

          You should remove cache file under $JENKINS_HOME/cache/.

          Show
          sogabe sogabe added a comment - You should remove cache file under $JENKINS_HOME/cache/.
          Hide
          andreyev Andreyev Melo added a comment -

          Great! Using version 1.464 in a clean install it works! Thanks a lot!

          Show
          andreyev Andreyev Melo added a comment - Great! Using version 1.464 in a clean install it works! Thanks a lot!
          Hide
          highstick Andreas Hochsteger added a comment -

          Thanks, after cleaning $JENKINS_HOME/cache/ it finally works for me too!

          Show
          highstick Andreas Hochsteger added a comment - Thanks, after cleaning $JENKINS_HOME/cache/ it finally works for me too!
          Hide
          thejus55 Thejus R added a comment -

          Does the cache look something like this??

          [jenkins@<Some> cache]$ ll -lrt jars/
          total 120
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 49
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 F4
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 99
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 6C
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 30
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 A3
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 33
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 31
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 BF
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 0B
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 DB
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 9B
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 36
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 C2
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 5E
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 27
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 21
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 F2
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 CA
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 9A
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 7A
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 78
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 43
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 23
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 85
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 25
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 E3
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:43 84
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:43 CD
          drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:43 2C
          [jenkins@<Some> cache]$

          Please help as I possibly do not know where my $JENKINS_HOME points to. And still the above reported error persists.

          Show
          thejus55 Thejus R added a comment - Does the cache look something like this?? [jenkins@<Some> cache] $ ll -lrt jars/ total 120 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 49 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 F4 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 99 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 6C drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 30 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 A3 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 33 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 31 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 BF drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 0B drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 DB drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 9B drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 36 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 C2 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 5E drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:16 27 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 21 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 F2 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 CA drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 9A drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 7A drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 78 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 43 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 23 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 85 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 25 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:17 E3 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:43 84 drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:43 CD drwxr-xr-x 2 jenkins jenkins 4096 Sep 9 02:43 2C [jenkins@<Some> cache] $ Please help as I possibly do not know where my $JENKINS_HOME points to. And still the above reported error persists.

            People

            • Assignee:
              Unassigned
              Reporter:
              daliboz Jenni Syed
            • Votes:
              10 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: