Re: Issues changing from JRobin to RRDtool graphs

Chuck harpham <[email protected]> Wed, 24 Oct 2018 10:32:23 -0700
Newsgroups gmane.network.opennms.general
Message-ID <CAO08g5Ne9Ci73xsqTDapoWD+TiSORbN05ud7qpYfmsTHaYSEBg@mail.gmail.com>
Thanks Michael for responding.. This is a very small setup..  about 25
devices. I have waited for about an hour now and opennms is still failing.

here is some output from the manager.log and output.log.  I am rather new
at troublshooting at what it looks like some sort of java exception.  Any
help would greatly be appreciated.. I had this running on a previous
install, however when I created a new host with a relatively new version of
Opennms, I am getting this issue.


[root@talgor logs]# tail -20 manager.log
2018-10-24 09:27:25,942 DEBUG [Main] o.o.n.v.Controller: Could not find
OpenNMS JVM ("opennms_bootstrap.jar start") among JVMs
("/opt/opennms/lib/opennms_bootstrap.jar -p 2286 -u
service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/jmxrmi status")
2018-10-24 09:27:25,998 DEBUG [Main] o.o.n.v.Controller: IOException when
attaching to OpenNMS JVM at PID: 2286: No such process
2018-10-24 09:27:25,998 DEBUG [Main] o.o.n.v.Controller: Could not attach
to JVM, falling back to JMX over RMI
2018-10-24 09:27:26,021 DEBUG [Main] o.e.j.u.log: Logging to
org.apache.logging.slf4j.Log4jLogger@7fb8d36 via
org.eclipse.jetty.util.log.Slf4jLog
2018-10-24 09:27:26,023 INFO  [Main] o.e.j.u.log: Logging initialized
@1103ms to org.eclipse.jetty.util.log.Slf4jLog
2018-10-24 09:27:26,025 DEBUG [Main] jndi:
InitialContextFactory.getInitialContext()
2018-10-24 09:27:26,032 DEBUG [Main] jndi: supportDeepBinding=false
2018-10-24 09:27:26,033 DEBUG [Main] jndi: Created initial context delegate
for local namespace:org.eclipse.jetty.jndi.local.localContextRoot@262868e1
2018-10-24 09:27:26,050 DEBUG [Main] o.o.n.v.StatusGetter: Could not fetch
status: 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)]
2018-10-24 09:27:27,197 DEBUG [Main] o.o.n.v.Controller: Could not find
OpenNMS JVM ("opennms_bootstrap.jar start") among JVMs
("/opt/opennms/lib/opennms_bootstrap.jar -p 2286 -u
service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/jmxrmi status")
2018-10-24 09:27:27,240 DEBUG [Main] o.o.n.v.Controller: IOException when
attaching to OpenNMS JVM at PID: 2286: No such process
2018-10-24 09:27:27,240 DEBUG [Main] o.o.n.v.Controller: Could not attach
to JVM, falling back to JMX over RMI
2018-10-24 09:27:27,256 DEBUG [Main] o.e.j.u.log: Logging to
org.apache.logging.slf4j.Log4jLogger@7fb8d36 via
org.eclipse.jetty.util.log.Slf4jLog
2018-10-24 09:27:27,258 INFO  [Main] o.e.j.u.log: Logging initialized
@1054ms to org.eclipse.jetty.util.log.Slf4jLog
2018-10-24 09:27:27,259 DEBUG [Main] jndi:
InitialContextFactory.getInitialContext()
2018-10-24 09:27:27,265 DEBUG [Main] jndi: supportDeepBinding=false
2018-10-24 09:27:27,265 DEBUG [Main] jndi: Created initial context delegate
for local namespace:org.eclipse.jetty.jndi.local.localContextRoot@262868e1
2018-10-24 09:27:27,284 DEBUG [Main] o.o.n.v.StatusGetter: Could not fetch
status: 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)]
[root@talgor logs]# tail -30 manager.log
2018-10-24 09:27:23,864 DEBUG [Main] o.o.n.v.Manager:
java.lang.Thread.run(Thread.java:748)
2018-10-24 09:27:23,864 DEBUG [Main] o.o.n.v.Manager: Thread 223 (daemon):
Thread[ActiveMQ Data File Writer,10,main] (state: WAITING)
2018-10-24 09:27:23,864 DEBUG [Main] o.o.n.v.Manager:
java.lang.Object.wait(Native Method)
2018-10-24 09:27:23,864 DEBUG [Main] o.o.n.v.Manager:
java.lang.Object.wait(Object.java:502)
2018-10-24 09:27:23,864 DEBUG [Main] o.o.n.v.Manager:
org.apache.activemq.store.kahadb.disk.journal.DataFileAppender.processQueue(DataFileAppender.java:275)
2018-10-24 09:27:23,864 DEBUG [Main] o.o.n.v.Manager:
org.apache.activemq.store.kahadb.disk.journal.DataFileAppender$1.run(DataFileAppender.java:174)
2018-10-24 09:27:23,864 DEBUG [Main] o.o.n.v.Manager: Thread 228:
Thread[Timer-1,5,main] (state: TIMED_WAITING)
2018-10-24 09:27:23,864 DEBUG [Main] o.o.n.v.Manager: Thread dump completed.
2018-10-24 09:27:23,864 DEBUG [Main] o.o.n.v.Manager: memory usage
(free/used/total/max allowed): 133550328/397553416/531103744/954728448
2018-10-24 09:27:23,864 INFO  [Main] o.o.n.v.Manager: calling System.exit(0)
2018-10-24 09:27:25,942 DEBUG [Main] o.o.n.v.Controller: Could not find
OpenNMS JVM ("opennms_bootstrap.jar start") among JVMs
("/opt/opennms/lib/opennms_bootstrap.jar -p 2286 -u
service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/jmxrmi status")
2018-10-24 09:27:25,998 DEBUG [Main] o.o.n.v.Controller: IOException when
attaching to OpenNMS JVM at PID: 2286: No such process
2018-10-24 09:27:25,998 DEBUG [Main] o.o.n.v.Controller: Could not attach
to JVM, falling back to JMX over RMI
2018-10-24 09:27:26,021 DEBUG [Main] o.e.j.u.log: Logging to
org.apache.logging.slf4j.Log4jLogger@7fb8d36 via
org.eclipse.jetty.util.log.Slf4jLog
2018-10-24 09:27:26,023 INFO  [Main] o.e.j.u.log: Logging initialized
@1103ms to org.eclipse.jetty.util.log.Slf4jLog
2018-10-24 09:27:26,025 DEBUG [Main] jndi:
InitialContextFactory.getInitialContext()
2018-10-24 09:27:26,032 DEBUG [Main] jndi: supportDeepBinding=false
2018-10-24 09:27:26,033 DEBUG [Main] jndi: Created initial context delegate
for local namespace:org.eclipse.jetty.jndi.local.localContextRoot@262868e1
2018-10-24 09:27:26,050 DEBUG [Main] o.o.n.v.StatusGetter: Could not fetch
status: 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)]
2018-10-24 09:27:27,197 DEBUG [Main] o.o.n.v.Controller: Could not find
OpenNMS JVM ("opennms_bootstrap.jar start") among JVMs
("/opt/opennms/lib/opennms_bootstrap.jar -p 2286 -u
service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/jmxrmi status")
2018-10-24 09:27:27,240 DEBUG [Main] o.o.n.v.Controller: IOException when
attaching to OpenNMS JVM at PID: 2286: No such process
2018-10-24 09:27:27,240 DEBUG [Main] o.o.n.v.Controller: Could not attach
to JVM, falling back to JMX over RMI
2018-10-24 09:27:27,256 DEBUG [Main] o.e.j.u.log: Logging to
org.apache.logging.slf4j.Log4jLogger@7fb8d36 via
org.eclipse.jetty.util.log.Slf4jLog
2018-10-24 09:27:27,258 INFO  [Main] o.e.j.u.log: Logging initialized
@1054ms to org.eclipse.jetty.util.log.Slf4jLog
2018-10-24 09:27:27,259 DEBUG [Main] jndi:
InitialContextFactory.getInitialContext()
2018-10-24 09:27:27,265 DEBUG [Main] jndi: supportDeepBinding=false
2018-10-24 09:27:27,265 DEBUG [Main] jndi: Created initial context delegate
for local namespace:org.eclipse.jetty.jndi.local.localContextRoot@262868e1
2018-10-24 09:27:27,284 DEBUG [Main] o.o.n.v.StatusGetter: Could not fetch
status: 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)]





[root@talgor logs]# tail -30 output.log
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
        at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1148)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1058)
        at
org.opennms.netmgt.rrd.RrdStrategyFactory.getStrategy(RrdStrategyFactory.java:73)
        at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)
        at
org.springframework.beans.factory.config.MethodInvokingBean.invokeWithTargetException(MethodInvokingBean.java:119)
        at
org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet(MethodInvokingFactoryBean.java:106)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1642)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1579)
        ... 74 more
Caused by: java.lang.ClassNotFoundException:
org.opennms.netmgt.rrd.jrrd2.api.JRrd2Exception
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 111 more
2018-10-24 09:27:24,422 ActiveMQ ShutdownHook WARN Unable to register Log4j
shutdown hook because JVM is shutting down. Using SimpleLogger



*Notice of Confidentiality:*
*This transmission constitutes an electronic communication within the
meaning of the Electronic Commissions Privacy Act, 18 U.S.C. 2510, and its
disclosure is strictly limited to the recipient intended by the sender of
this message, together with any attachments.  This communication, including
any attachments, may contain confidential and privileged material for the
sole use of the intended individual or entity, and receipt by any party
other than the intended recipient does not constitute a loss of the
confidential or privileged nature of the communication. *

*Any review or distribution by others is prohibited:*  *If you are not the
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this message, or any attachment, is strictly
prohibited.  If you have received this message in error, please notify the
original sender immediately by telephone or by return E-mail and delete
this message, along with any attachments, from your computer.*
.

Thank you kindly

chuck harpham
_____
|__/__|
(0||||0)

Sit vis vobiscum

[image: linkedin icon]
linkedin.com/in/charpham411


On Tue, Oct 23, 2018 at 11:21 PM Seibold, Michael <[email protected]>
wrote:

> Hi Chuck,
>
> are there really any java exceptions in the log files? And how long did
> you wait for OpenNMS coming up? How many jrb files do you have?
>
> When you change to rrd ALL measurement files need to be recreated. If
> there is a lot of them, this might take some time. The start script is
> waiting for a certain time span (configurable in opennms.conf, if I
> remember well) and then exits with "started" of "failed". When the start
> takes too long you will see "failed", even when OpenNMS will come up some
> minutes later.
>
> -Michael
>
>
>
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
>
> opennms-discuss mailing list
>
> To *unsubscribe* or change your subscription options, see the bottom of
> this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-discuss
>

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
image002.png (image/png, 604 B) - not displayed