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

JDK Automatic install fails on Debian

    XMLWordPrintable

Details

    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.

      Attachments

        Issue Links

          Activity

            jessebs jessebs created issue -
            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.

            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.
            kean_lau Kean Lau added a comment -

            Attaching a copy of jdk.sh

            kean_lau Kean Lau added a comment - Attaching a copy of jdk.sh
            kean_lau Kean Lau made changes -
            Field Original Value New Value
            Attachment jdk.sh.html [ 21730 ]
            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.

            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.
            kean_lau Kean Lau made changes -
            Component/s ssh-slaves [ 15578 ]
            Priority Major [ 3 ] Blocker [ 1 ]
            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?

            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?
            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
            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
            kean_lau Kean Lau made changes -
            Component/s ssh-slaves [ 15578 ]
            Priority Blocker [ 1 ] Critical [ 2 ]
            sogabe sogabe made changes -
            Link This issue duplicates JENKINS-13435 [ JENKINS-13435 ]
            sogabe sogabe made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 143871 ] JNJira + In-Review [ 190791 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: