OpenNMS won't start after upgrade

Description

Hi,

OpenNMS won't start after upgrading to 19.1.0 (from 18)

I can find the following lines in manager.log:

And, indeed, I can't find any org.opennms.netmgt.poller.monitors.AbstractServiceMonitor class (only a
org.opennms.netmgt.poller.support.AbstractServiceMonitor in file /usr/share/opennms/system/org/opennms/features/poller/org.opennms.features.poller.api/19.1.0/org.opennms.features.poller.api-19.1.0.jar

what's going wrong?

Environment

Ubuntu 14.04.5 LTS java version "1.8.0_131"

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Cyrille Bollu June 1, 2017 at 3:09 AM

issue resolved.

underlying cause unknown though

Cyrille Bollu May 31, 2017 at 11:27 AM

Ok, I've solved it

I don't know exactly how because I did 2 or 3 things together between a restart.

1) I deleted 2 or 3 old .jar files that I once compiled myself and forgot in my path after the tests (Though, none seem related to the issue)

2) more related to the issue, but very strange: after replacing my whole /etc/opennms folder by the /var/lib/opennms/etc-pristine folder, I noticed an issue with the poller-configuration.xml file. I tried to re-install the opennms-common package to restore a proper version, but failed: The re-installation of the opennms-common package won't copy the default poller-configuration.xml in my /etc/opennms folder. I finally had to download the .deb file, extract it, and move the poller-configuration.xml file myself.

After performing these things opennms restarted (and other problems started, but not worth a jira issue though).

Cyrille

Cyrille Bollu May 31, 2017 at 8:49 AM

So, these are the 9 occurences of "org.opennms.netmgt.poller.monitors.AbstractServiceMonitor" in foundation-2016:

And, there are no occurences of org.opennms.netmgt.poller.support.AbstractServiceMonitor

Now, when I checkout release-19.1.1, I find plenty of references to org.opennms.netmgt.poller.support.AbstractServiceMonitor and none to org.opennms.netmgt.poller.monitors.AbstractServiceMonitor

Cyrille Bollu May 31, 2017 at 8:25 AM

Now, I've just:

apt-get --reinstall install opennms-common opennms libopennms-java libopennms-java opennms-db opennms-plugin-northbounder-jms opennms-plugin-protocol-dhcp opennms-plugin-protocol-radius opennms-plugin-provisioning-snmp-asset opennms-server opennms-webapp-jetty

then install -dis

still the same

Cyrille Bollu May 31, 2017 at 8:19 AM

Ok, so I've just replaced my whole /etc/opennms folder by /var/lib/opennms/etc-pristine and it still won't start, with the same error

Done

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created May 31, 2017 at 7:02 AM
Updated February 15, 2018 at 9:34 PM
Resolved June 1, 2017 at 3:09 AM