Iam trying to install opennms 29 on RHEL7 in order to test it and compare it with the old version we use in our project for a futur migration but iam struggling on a problem i followed all steps in the documentations but when i run
yum install opennms it sticks on opennms installing :
Install 1 Package (+2 Dependent packages) Total size: 614 M Installed size: 822 M Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : opennms-core-29.0.5-1.noarch 1/3 ^C* fixing ownership of /opt/opennms * fixing ownership of /var/opennms * fixing ownership of /var/log/opennms - making symlink for /opt/opennms/logs... done * fixing ownership of /opt/opennms/logs - making symlink for /opt/opennms/share... done * fixing ownership of /opt/opennms/share * fixing ownership of /opt/opennms/share/etc-pristine * fixing ownership of /opt/opennms/share/mibs * fixing ownership of /opt/opennms/share/reports * fixing ownership of /opt/opennms/share/rrd * fixing ownership of /opt/opennms/share/sftp * fixing ownership of /opt/opennms/share/version * fixing ownership of /opt/opennms/share/xsds - moving *.sql.rpmnew files (if any)... done - checking for old update files... done * fixing ownership of /opt/opennms/etc/libraries.properties - cleaning up $OPENNMS_HOME/data... done runjava: Looking for an appropriate JVM... runjava: Checking for an appropriate JVM in JAVA_HOME... runjava: Skipping... JAVA_HOME not set. runjava: Checking JVM in the PATH: "/etc/alternatives/java"... runjava: Did not find an appropriate JVM in the PATH: "/etc/alternatives/java" runjava: Searching for a good JVM... warning: %post(opennms-core-29.0.5-1.noarch) scriptlet failed, signal 2 Non-fatal POSTIN scriptlet failure in rpm package opennms-core-29.0.5-1.noarch
i setup java 11 as mentionned with JAVA_HOME for all user
[root@SERVER]# echo $JAVA_HOME /usr/lib/jvm/java-11-openjdk-220.127.116.11.9-1.el7_9.x86_64
java is totally accessible and works fine
[root@SERVER~]# java --version openjdk 11.0.14 2022-01-18 LTS OpenJDK Runtime Environment 18.9 (build 11.0.14+9-LTS) OpenJDK 64-Bit Server VM 18.9 (build 11.0.14+9-LTS, mixed mode, sharing)
I tried to run the bin to detect java but it seems corrupt it loops infinitly searching for a suitable java
[root@SERVER bin]# ./runjava -s runjava: Looking for an appropriate JVM... runjava: Checking for an appropriate JVM in JAVA_HOME... runjava: Skipping... JAVA_HOME not set. runjava: Checking JVM in the PATH: "/etc/alternatives/java"... runjava: Did not find an appropriate JVM in the PATH: "/etc/alternatives/java" runjava: Searching for a good JVM...
i noticed that opennms created a user opennms and setup all permissions of /opt/opennms to that user, and i run installation with root account.
Any ideas please ?