Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-5233

Downloading Oracle JDK 8u121 fails with puppetlabs-java

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • java
    • Modules
    • Manual Test

    Description

      Configuration:
      Following configuration of java::oracle module fails:

      java::oracle { 'jdk8':
          ensure => 'present',
          version_major => '8u121',
          version_minor => 'b13',
          java_se => 'jdk',
        }
      

      Error message:

      Error: Execution of '/opt/puppetlabs/puppet/bin/curl http://download.oracle.com/otn-pub/java/jdk//8u121-b13/jdk-8u121-linux-x64.rpm -o /tmp/jdk-8u121-linux-x64.rpm_20170716-237-qen1kt -fsSL --max-redirs 5 --cookie gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie' returned 22: curl: (22) The requested URL returned error: 404 Not Found
      Error: /Stage[main]/Svv_tomcat/Java::Oracle[jdk8]/Archive[/tmp/jdk-8u121-linux-x64.rpm]/ensure: change from 'absent' to 'present' failed: Execution of '/opt/puppetlabs/puppet/bin/curl http://download.oracle.com/otn-pub/java/jdk//8u121-b13/jdk-8u121-linux-x64.rpm -o /tmp/jdk-8u121-linux-x64.rpm_20170716-237-qen1kt -fsSL --max-redirs 5 --cookie gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie' returned 22: curl: (22) The requested URL returned error: 404 Not Found
      

      Observations:

      1. Previous versions (latest version is 8u131) is not found at oracle_url http://download.oracle.com/otn-pub/java/jdk/ but at http://download.oracle.com/otn/java/jdk/
      2. Setting parameters oracle_url and url_hash doesn´t help, because Oracle requires user to login, before downloading previous JDK versions. I tried following configuration:

        java::oracle { 'jdk8':
            ensure              => 'present',
            oracle_url          => 'http://download.oracle.com/otn/java/jdk/',
            version_major       => '8u121',
            version_minor       => 'b13',
            java_se             => 'jdk',
            url_hash            => 'e9e7ea248e2c4826b92b3f075a80e441',
          }
        

      Error message:

      Error: Execution of '/opt/puppetlabs/puppet/bin/curl http://download.oracle.com/otn/java/jdk//8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.rpm -o /tmp/jdk-8u121-linux-x64.rpm_20170716-269-ax2gw0 -fsSL --max-redirs 5 --cookie gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie' returned 22: curl: (22) The requested URL returned error: 401 Authorization Required
      Error: /Stage[main]/Svv_tomcat/Java::Oracle[jdk8]/Archive[/tmp/jdk-8u121-linux-x64.rpm]/ensure: change from 'absent' to 'present' failed: Execution of '/opt/puppetlabs/puppet/bin/curl http://download.oracle.com/otn/java/jdk//8u121-b13/e9e7ea248e2c4826b92b3f075a80e441/jdk-8u121-linux-x64.rpm -o /tmp/jdk-8u121-linux-x64.rpm_20170716-269-ax2gw0 -fsSL --max-redirs 5 --cookie gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie' returned 22: curl: (22) The requested URL returned error: 401 Authorization Required
      

      Attachments

        Activity

          People

            eimhin.laverty Eimhin Laverty
            ismar.slomic Ismar Slomic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support