Java JDK8u261 installation fails
Closed this issue · 1 comments
mbloch1986 commented
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
- Use manifest
install_aem_java
orinstall_java
to install Java JDK8u261
or
- Install JDK8u261
- 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
mbloch1986 commented
Included in release 3.17.0