[JIRA] (JENKINS-57090) Some Java 8 artifacts return 404 on download

1 view
Skip to first unread message

owood@cloudbees.com (JIRA)

unread,
Apr 17, 2019, 2:02:03 PM4/17/19
to jenkinsc...@googlegroups.com
Owen Wood created an issue
 
Jenkins / Bug JENKINS-57090
Some Java 8 artifacts return 404 on download
Issue Type: Bug Bug
Assignee: Devin Nusbaum
Components: jdk-tool-plugin
Created: 2019-04-17 18:01
Priority: Minor Minor
Reporter: Owen Wood

We've noted that some of the JDK 8 artifacts return 404.

For example:

Installing JDK jdk-8u202-oth-JPR 
Downloading JDK from https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-linux-x64.tar.gz 
FATAL: command execution failed 
java.io.IOException: Failed to request https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-linux-x64.tar.gz?AuthParam=1555471069_b10c8d4cbccf39e1a71d85ff3f9fc4c1 exit code=404 
at hudson.tools.JDKInstaller.locate(JDKInstaller.java:492) 
at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:150) 
at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:72) 
at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109) 
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206) 
at hudson.model.JDK.forNode(JDK.java:148) 
at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:341) 
at hudson.model.Run.getEnvironment(Run.java:2374) 
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:872) 
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:102) 
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66) 
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) 
at hudson.model.Build$BuildExecution.build(Build.java:206) 
at hudson.model.Build$BuildExecution.doRun(Build.java:163) 
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) 
at hudson.model.Run.execute(Run.java:1816) 
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
at hudson.model.ResourceController.execute(ResourceController.java:97) 
at hudson.model.Executor.run(Executor.java:429) 
Build step 'Execute shell' marked build as failure 
Finished: FAILURE

We've noticed that JDK 7 artifacts seem fine.

We've noticed that some JDK 8 artifacts still work. 8u202 and 8u201 give 404. 8u192 seem to download just fine (for example).
 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

owood@cloudbees.com (JIRA)

unread,
Apr 17, 2019, 2:06:03 PM4/17/19
to jenkinsc...@googlegroups.com
Owen Wood updated an issue
Change By: Owen Wood
We've noted that some of the JDK 8 artifacts return 404.

For example:
{noformat}

Installing JDK jdk-8u202-oth-JPR 
Downloading JDK from https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-linux-x64.tar.gz 
FATAL: command execution failed 
java.io.IOException: Failed to request https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jdk-8u202-linux-x64.tar.gz?AuthParam= 1555471069_b10c8d4cbccf39e1a71d85ff3f9fc4c1 XXXXX  exit code=404 

at hudson.tools.JDKInstaller.locate(JDKInstaller.java:492) 
at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:150) 
at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:72) 
at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:109) 
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206) 
at hudson.model.JDK.forNode(JDK.java:148) 
at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:341) 
at hudson.model.Run.getEnvironment(Run.java:2374) 
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:872) 
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:102) 
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66) 
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) 
at hudson.model.Build$BuildExecution.build(Build.java:206) 
at hudson.model.Build$BuildExecution.doRun(Build.java:163) 
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) 
at hudson.model.Run.execute(Run.java:1816) 
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
at hudson.model.ResourceController.execute(ResourceController.java:97) 
at hudson.model.Executor.run(Executor.java:429) 
Build step 'Execute shell' marked build as failure 
Finished: FAILURE
{noformat}

We've noticed that JDK 7 artifacts seem fine.

We've noticed that some JDK 8 artifacts still work. 8u202 and 8u201 give 404. 8u192 seem to download just fine (for example).
 

dnusbaum@cloudbees.com (JIRA)

unread,
Apr 17, 2019, 2:12:02 PM4/17/19
to jenkinsc...@googlegroups.com
Devin Nusbaum assigned an issue to Unassigned
Change By: Devin Nusbaum
Assignee: Devin Nusbaum

dnusbaum@cloudbees.com (JIRA)

unread,
Apr 17, 2019, 2:12:02 PM4/17/19
to jenkinsc...@googlegroups.com
Devin Nusbaum commented on Bug JENKINS-57090
 
Re: Some Java 8 artifacts return 404 on download

This is probably related to Oracle changing the license for Java 8 as of the April 16, 2019 release of JDK 8u211 and JDK 8u212. In short, using Oracle JDK 8u211 and newer for non-personal use cases is a violation of the license agreement unless you are paying Oracle for some other license. Using the JDK inside of Jenkins probably does not qualify as personal use according to the FAQ here.

So, while maybe some crawler or plugin update could fix this, I don't think it would make sense to do so. You should switch to using OpenJDK builds from your OS package manager or something like https://adoptopenjdk.net/. Updating this plugin to download from AdoptOpenJDK sounds like a good RFE, but I have no plans to work on it.

dnusbaum@cloudbees.com (JIRA)

unread,
Apr 17, 2019, 2:14:01 PM4/17/19
to jenkinsc...@googlegroups.com
Devin Nusbaum edited a comment on Bug JENKINS-57090
This is probably related to Oracle changing the license for Java 8 as of the April 16, 2019 release of JDK 8u211 and JDK 8u212 (or maybe for earlier versions, but I'm not sure) . In short, using Oracle JDK 8u211 and newer for non-personal use cases is a violation of the license agreement unless you are paying Oracle for some other license , see the warning [here|https://www . oracle.com/technetwork/java/javaee/downloads/jdk8-downloads-2133151.html] for details. Using the JDK inside of Jenkins probably does not qualify as personal use according to the FAQ [here|https://www.oracle.com/technetwork/java/javase/overview/oracle-jdk-faqs.html].


So, while maybe some crawler or plugin update could fix this, I don't think it would make sense to do so. You should switch to using OpenJDK builds from your OS package manager or something like https://adoptopenjdk.net/. Updating this plugin to download from AdoptOpenJDK sounds like a good RFE, but I have no plans to work on it.

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jun 17, 2019, 5:07:02 AM6/17/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages