OpenNMS fails to start after 18.0.3 -> 19.0.1 upgrade

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

OpenNMS fails to start after 18.0.3 -> 19.0.1 upgrade

paisano
RHEL 6.8
postgresql 9..4.8
java 1.8.0_121

Resolved all changes in *.rpmsave files.  Followed steps in the 18 to 19 upgrade guide.  

Where to start?

root@corsair [etc]# service opennms -v start
Starting OpenNMS: Could not connect to the OpenNMS JVM (OpenNMS might not be running or could be starting up or shutting down): Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
       java.net.ConnectException: Connection refused (Connection refused)]
(not waiting for startup)                                  [  OK  ]

Tue Apr 11 09:41:16 CDT 2017
begin ulimit settings:
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 192916
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 20480
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 192916
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
end ulimit settings
Executing command: /opt/opennms/bin/runjava -r  -- -Djava.endorsed.dirs=/opt/opennms/lib/endorsed   -Dopennms.home=/opt/opennms -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError  -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.login.config=opennms -Dcom.sun.management.jmxremote.access.file=/opt/opennms/etc/jmxremote.access -DisThreadContextMapInheritable=true -Dgroovy.use.classvalue=true -XX:MaxMetaspaceSize=256m -Djava.io.tmpdir=/opt/opennms/data/tmp -verbose:gc -jar /opt/opennms/lib/opennms_bootstrap.jar  start
[GC (Allocation Failure)  193536K->12674K(740352K), 0.0161888 secs]
[GC (Metadata GC Threshold)  87275K->10206K(832512K), 0.0149826 secs]
[Full GC (Metadata GC Threshold)  10206K->9641K(613888K), 0.0421745 secs]
[DEBUG] System property 'opennms.library.jicmp' set to '/usr/lib64/libjicmp.so.  Attempting to load jicmp library from this location.
[INFO] Successfully loaded jicmp library.
[DEBUG] System property 'opennms.library.jicmp6' set to '/usr/lib64/libjicmp6.so.  Attempting to load jicmp6 library from this location.
[INFO] Successfully loaded jicmp6 library.
An error occurred while attempting to start the "OpenNMS:Name=TestLoadLibraries" service (class org.opennms.netmgt.vmmgr.Manager).  Shutting down and exiting.
javax.management.RuntimeMBeanException: java.lang.IllegalArgumentException: Unexpected exception thrown while trying to create pinger of type class org.opennms.netmgt.icmp.jni6.Jni6Pinger
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
        at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:278)
        at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:207)
        at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:154)
        at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:94)
        at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:173)
        at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:150)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:464)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: Unexpected exception thrown while trying to create pinger of type class org.opennms.netmgt.icmp.jni6.Jni6Pinger
.
.
.



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OpenNMS fails to start after 18.0.3 -> 19.0.1 upgrade

paisano
Well, just as a wild ass guess and without having the foggiest idea why I had to do this or why it worked, I uncommented this line in opennms.properties:

 org.opennms.netmgt.icmp.pingerClass=org.opennms.netmgt.icmp.jni.JniPinger

And now opennms starts!  But only after throwing this error:

root@corsair [etc]# service opennms -v start
Starting OpenNMS: Could not connect to the OpenNMS JVM (OpenNMS might not be running or could be starting up or shutting down): Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
       java.net.ConnectException: Connection refused (Connection refused)]

which again, I have no idea why this error happens, what it means or what can be done about it.  I think I have seen other threads where it's stated that this is error is "normal"(????).
Loading...