shinesolutions/puppet-aem-curator

Java JDK8u261 installation fails

Closed this issue · 1 comments

Describe the bug
The installation of Java JDK8u261 fails, because the binary path to the java binary changed again.

Error message:

    aws: Notice: /Stage[main]/Aem_curator::Install_aem_java/Exec[alternatives --set  java /usr/java/jdk1.8.0_261-amd64/jre/bin/java]/returns: /usr/java/jdk1.8.0_261-amd64/jre/bin/java has not been configured as an alternative for java
    aws: Error: 'alternatives --set  java /usr/java/jdk1.8.0_261-amd64/jre/bin/java' returned 2 instead of one of [0]
    aws: Error: /Stage[main]/Aem_curator::Install_aem_java/Exec[alternatives --set  java /usr/java/jdk1.8.0_261-amd64/jre/bin/java]/returns: change from 'notrun' to ['0'] failed: 'alternatives --set  java /usr/java/jdk1.8.0_261-amd64/jre/bin/java' returned 2 instead of one of [0]

Running alternatives manually fails as well:

[root@d7c1bd230a89 artifacts]# alternatives --set  java /usr/java/jdk1.8.0_261-amd64/jre/bin/java
/usr/java/jdk1.8.0_261-amd64/jre/bin/java has not been configured as an alternative for java
[root@d7c1bd230a89 artifacts]#

Running alternatives with the new binary path:

[root@d7c1bd230a89 artifacts]# alternatives --set  java /usr/java/jdk1.8.0_261-amd64/bin/java
[root@d7c1bd230a89 artifacts]#

To Reproduce

  1. Use manifest install_aem_java or install_java to install Java JDK8u261

or

  1. Install JDK8u261
  2. Update alternatives alternatives --set java /usr/java/jdk1.8.0_261-amd64/jre/bin/java

Expected behavior
The installation should be successful

Environment (please complete the following information if relevant):

  • puppet-aem-curator 3.15.0
  • OS rhel7

Included in release 3.17.0