• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • javanet-plugin
    • None

      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.

          [JENKINS-13405] JDK Automatic install fails on Debian

          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.

          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.

          Kean Lau added a comment -

          Attaching a copy of jdk.sh

          Kean Lau added a comment - Attaching a copy of jdk.sh

          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.

          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.

          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?

          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?

          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

          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

            Unassigned Unassigned
            jessebs jessebs
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: