Crash when Netflow 5 Adapter is not found in Telemetryd after upgrade

Problem

After upgrading OpenNMS Horizon 24 to 25 OpenNMS crashes after startup and throws the following error message in the manager.log.

2019-10-23 20:41:31,461 ERROR [Main] o.o.n.v.Invoker: An error occurred invoking operation start on MBean OpenNMS:Name=Telemetryd
javax.management.RuntimeMBeanException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'consumer': Invocation of init method failed; nested exception is java.lang.Exception: No adapter found for class: org.opennms.netmgt.telemetry.protocols.netflow.adapter.netflow5.Netflow5Adapter

Cause

The Karaf cache may contain data from your old version which conflicts with the newly installed version.

Solution

Stop OpenNMS, clear the Karaf cache and restart OpenNMS Horizon.

systemctl stop opennms
rm -rf ${OPENNMS_HOME}/data/*
systemctl start opennms
1 Like

I had this problem on one of my OpenNMS servers recently. A reinstall fixed. This would have saved me the reinstall :slight_smile: