Automatic JDK installation not working on AIX systems

50 views
Skip to first unread message

sunnym...@gmail.com

unread,
Dec 20, 2016, 9:11:00 AM12/20/16
to Jenkins Users
Hi,
I failed to launch a new Jenkins agent (slave) on an AIX system. It seems that the “automatic JDK installation” of Jenkins does not work here:

hudson.util.IOException2: Could not find any known supported java version in [java, /usr/bin/java, /usr/java/default/bin/java, /usr/java/latest/bin/java, /usr/local/bin/java, /usr/local/java/bin/java, /usr/jenkins/.jenkins/jdk/bin/java, /bin/java], and we also failed to install JDK as a fallback
                at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:820)
                at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:716)
                at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Failed to detect the environment for automatic JDK installation. Please report this to jenkins...@googlegroups.com: AIX
                at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:931)
                at hudson.plugins.sshslaves.SSHLauncher.resolveJava(SSHLauncher.java:818)
                ... 6 more
[12/20/16 10:46:34] Launch failed - cleaning up connection
[12/20/16 10:46:34] [SSH] Connection closed.

Is it possible to get AIX systems supported in the near future?

Daniel Beck

unread,
Dec 20, 2016, 10:25:26 AM12/20/16
to jenkins...@googlegroups.com

> On 20.12.2016, at 15:11, sunnym...@gmail.com wrote:
>
> Is it possible to get AIX systems supported in the near future?

Probably not, unless you do this yourself.

FWIW you could choose to install the JDK from a zip/tar file that Jenkins downloads for that machine (limit the install to specific nodes using the label expression). While less convenient (it requires preparation by you), this should work on all platforms.

Baptiste Mathus

unread,
Dec 25, 2016, 8:05:15 AM12/25/16
to jenkins...@googlegroups.com
+1. This is how we did that in the past for AIX. 
And anyway, I think you should not use JDK (or maven, or any tool really) auto install feature for long in general. It's cool and useful for quick prototyping but probably not a good idea for your production CD/CI cluster. (If not obvious why: you don't want your builds to start failing because of any unavailability from where you're downloading from...)

--
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 jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/AA3BEBED-10BA-4F93-9D71-46A748C888C1%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages