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

JDK Automatic install fails on Debian

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: javanet-plugin
    • Labels:
      None

      Description

      I have my Jenkins system set up to automatically install Java 7. When I add a new project and try to build, I see errors saying:

      Started by an SCM change
      Building in workspace /var/lib/jenkins/jobs/FeedWatcher/workspace
      Installing /var/lib/jenkins/tools/Java_SE_7/jdk.sh
      [Java_SE_7] $ /var/lib/jenkins/tools/Java_SE_7/jdk.sh -noregister
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 1: cannot open html: No such file
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 2: cannot open head: No such file
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 3: cannot open title: No such file
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 3: Request: not found
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 4: cannot open META: No such file
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 5: cannot open link: No such file
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 6: cannot open link: No such file
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 7:
      : not found
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 8: cannot open body: No such file
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 9: cannot open div: No such file
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 10: cannot open table: No such file
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 11: cannot open tr: No such file
      /var/lib/jenkins/tools/Java_SE_7/jdk.sh: 12: Syntax error: redirection unexpected
      ERROR: Failed to install JDK. Exit code=2
      Finished: FAILURE

      Looking at /var/lib/jenkins/tools/Java_SE_7/jdk.sh, I see it's HTML generated from an Oracle site.

        Issue Links

          Activity

          Hide
          kean_lau Kean Lau added a comment - - edited

          I'm getting this problem as well. It looks like Oracle has changed the Java website to now require additional authentication for downloads. This is the error webpage that gets written into jdk.sh:

          Sorry!

          In order to download products from Oracle Technology Network you must agree to the OTN license terms.

          Be sure that...
          Your browser has "cookies" and JavaScript enabled.
          You clicked on "Accept License" for the product you wish to download.
          You attempt the download within 30 minutes of accepting the license.

          This problem affects all Java Web Start based slaves.

          Show
          kean_lau Kean Lau added a comment - - edited I'm getting this problem as well. It looks like Oracle has changed the Java website to now require additional authentication for downloads. This is the error webpage that gets written into jdk.sh : Sorry! In order to download products from Oracle Technology Network you must agree to the OTN license terms. Be sure that... Your browser has "cookies" and JavaScript enabled. You clicked on "Accept License" for the product you wish to download. You attempt the download within 30 minutes of accepting the license. This problem affects all Java Web Start based slaves.
          Hide
          kean_lau Kean Lau added a comment -

          Attaching a copy of jdk.sh

          Show
          kean_lau Kean Lau added a comment - Attaching a copy of jdk.sh
          Hide
          kean_lau Kean Lau added a comment - - edited

          The priority needs to be blocker. Everyone who has any Java Web Start based slaves cannot build because the problem causes all of the slaves to be offline.

          Show
          kean_lau Kean Lau added a comment - - edited The priority needs to be blocker. Everyone who has any Java Web Start based slaves cannot build because the problem causes all of the slaves to be offline.
          Hide
          kean_lau Kean Lau added a comment -

          I haven't read the fine print in the OTN license, but I'm guessing it prevents the Jenkins community from mirroring the JDK packages on the Jenkins website?

          Show
          kean_lau Kean Lau added a comment - I haven't read the fine print in the OTN license, but I'm guessing it prevents the Jenkins community from mirroring the JDK packages on the Jenkins website?
          Hide
          kean_lau Kean Lau added a comment - - edited

          I can downgrade the priority from blocker to critical. One of my colleagues has figured out a work around. Here's what he did:

          1. Manually downloaded the JDK and install it on your slaves
          2. Changed the configuration of the slave node to use the master command execute launch method, which will SSH to the slave and start up slave.jar
          Show
          kean_lau Kean Lau added a comment - - edited I can downgrade the priority from blocker to critical. One of my colleagues has figured out a work around. Here's what he did: Manually downloaded the JDK and install it on your slaves Changed the configuration of the slave node to use the master command execute launch method, which will SSH to the slave and start up slave.jar

            People

            • Assignee:
              Unassigned
              Reporter:
              jessebs Jesse Bowes
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: