Env Inject failure "Couldn't find the right download for WINDOWS and i386 combination"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Env Inject failure "Couldn't find the right download for WINDOWS and i386 combination"

Steve K
Hello,

Has anyone else been plagued with these fatal errors recently?
Environment Inject bombs at the beginning of jobs running on i386 based OS's.
In the stack dump, the message "Couldn't find the right download for WINDOWS and i386 combination" is seen.
My Windows Jenkins server is v 2.46.2.
I just upgraded to "EnvInject API Plugin" v 1.4 and "Environment Injector Plugin" v2.1.5

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/18be29f5-ebf5-4a0c-a7c9-d1e159add813%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Env Inject failure "Couldn't find the right download for WINDOWS and i386 combination"

Devin Nusbaum
I suspect the error is being thrown by the JDK installer tool and is unrelated to EnvInject. Do you have a full stack trace, and are you using a JDK tool in your build configured with the “Install from java.sun.com” method to install JDK 9? if so, it looks like Oracle has removed the 32-bit JDK 9 downloads, so I guess you could use JDK 8 instead.

On Dec 1, 2017, at 1:20 PM, Steve K <[hidden email]> wrote:

Hello,

Has anyone else been plagued with these fatal errors recently?
Environment Inject bombs at the beginning of jobs running on i386 based OS's.
In the stack dump, the message "Couldn't find the right download for WINDOWS and i386 combination" is seen.
My Windows Jenkins server is v 2.46.2.
I just upgraded to "EnvInject API Plugin" v 1.4 and "Environment Injector Plugin" v2.1.5

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/18be29f5-ebf5-4a0c-a7c9-d1e159add813%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/DC8EF752-16A1-467B-A44D-6B08A9333491%40cloudbees.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Env Inject failure "Couldn't find the right download for WINDOWS and i386 combination"

Steve K
Thanks @David Nusbaum
Here's a trace from a test job that does nothing more than execute a `date /t` on the slave:
Building remotely on ROCDVMSDK2x (SLAVE FTP_CLIENT) in workspace C:\Jenkins\workspace\z_date
Installing JDK jdk-9.0.1-oth-JPR
FATAL: Unable to produce a script file
hudson.AbortException: Couldn't find the right download for WINDOWS and i386 combination
	at hudson.tools.JDKInstaller.locate(JDKInstaller.java:443)
	at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:138)
	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:144)
	at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:358)
	at hudson.model.Run.getEnvironment(Run.java:2264)
	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:921)
	at com.lookout.jenkins.EnvironmentScript.generateEnvironment(EnvironmentScript.java:147)
	at com.lookout.jenkins.EnvironmentScript.setUp(EnvironmentScript.java:119)
	at hudson.model.Build$BuildExecution.doRun(Build.java:157)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at hudson.model.Run.execute(Run.java:1728)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:405)


We're not using a JDK tool in our builds.

This has become a huge pain.  I can see from your link that Oracle is probably to blame, but I don't see where I can change Jenkins' mind about what JDK to look for.

Thanks again.


On Friday, December 1, 2017 at 1:58:11 PM UTC-5, Devin Nusbaum wrote:
I suspect the error is being thrown by the JDK installer tool and is unrelated to EnvInject. Do you have a full stack trace, and are you using a JDK tool in your build configured with the “Install from <a href="http://java.sun.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjava.sun.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGedajitVHqUilFoS50eE1IlQYCMg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjava.sun.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGedajitVHqUilFoS50eE1IlQYCMg&#39;;return true;">java.sun.com” method to install JDK 9? if so, it looks like <a href="https://stackoverflow.com/a/46371775" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fa%2F46371775\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF6e6JqH1WE1n6Czky9l64B0c_aQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fa%2F46371775\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF6e6JqH1WE1n6Czky9l64B0c_aQg&#39;;return true;">Oracle has removed the 32-bit JDK 9 downloads, so I guess you could use JDK 8 instead.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5653a824-6cbc-4edf-bba9-a6a3c1d1e3b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Env Inject failure "Couldn't find the right download for WINDOWS and i386 combination"

Daniel Beck

> On 4. Dec 2017, at 17:53, Steve K <[hidden email]> wrote:
>
> We're not using a JDK tool in our builds.
>
> This has become a huge pain.  I can see from your link that Oracle is probably to blame, but I don't see where I can change Jenkins' mind about what JDK to look for.
>
> Thanks again.

There's likely a single JDK configured in Manage Jenkins » Global Tool Configuration with an auto-installer that downloads from Oracle (the label might still say java.sun.com).

If so, your options are:
- Remove the tool.
- Remove the auto-installer for the JDK that downloads it from the Oracle site.
- Add a second tool version, which makes the per-job option explicit. Any jobs relying on the existing one set up automatically will fail until you explicitly configure one.
- Override the path to the JDK on the agent your builds are failing on, this should override the unavailable auto installer.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/714B2AB3-02A6-4993-8B8B-DE0270B95CBF%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Env Inject failure "Couldn't find the right download for WINDOWS and i386 combination"

Steve K
In reply to this post by Steve K
Oh Yeah!

Thanks @Daniel Beck & @Devin Nusbaum (sorry for referring to you as "David" in my previous post).
For the JDK configuration, I just had to de-select  "Install Automatically".
I don't think we use the JDK anywhere, but, if someone comes screaming to me "Hey, where's my JDK", I'll deal with it at that time.
But now, I'm a happy guy. 

Thanks again!

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7dee52c5-9055-4d02-8e4e-ff21dee6f3ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.