OpenNMS - Cant login to the main web page
Kevin Jones <[email protected]> Wed, 1 Aug 2018 08:27:08 +0100
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <CAGFEuBzrpQdZjwZHQ0O4eLhHV4PyJ9+2-GxV6eC6KS_n__Wzog@mail.gmail.com> |
The issue:-
At some point in the not so distant past, I have used "yum update" on my
Centos7 server and my OpenNMS is no longer working. It took we some time
to spot this as it just sits there and monitors things quietly. You can
connect to the web front end but nothing is displayed at all.
Me:-
I am not nor never will be a developer (I'm a network security team leader)
and quite frankly I am so out of my depth its not even funny.
My Environment:-
[root@www opennms]# uname -a
Linux www 3.10.0-862.9.1.el7.x86_64 #1 SMP Mon Jul 16 16:29:36 UTC 2018
x86_64 x86_64 x86_64 GNU/Linux
[root@www opennms]#
[root@www opennms]# pg_config --version
PostgreSQL 9.2.23
[root@www opennms]#
[root@www opennms]# psql --version
psql (PostgreSQL) 9.2.23
[root@www opennms]#
[root@www opennms]# java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
[root@www opennms]#
[root@www opennms]# rpm -qa opennms*
opennms-22.0.2-1.noarch
opennms-core-22.0.2-1.noarch
opennms-repo-stable-1.0-109.noarch
opennms-webapp-jetty-22.0.2-1.noarch
[root@www opennms]#
Logs & Output:-
I have tried everything that i can think of and looking at the logs, there
is nothing that particularly stands out at me as there are normally always
some non-fatal errors i have seen in the past. I have even tried dropping
the DB and going through the install again but to no avail.
If I stop the OpenNMS system, re-run the java install and re-run the
OpenNMS install -dis command, I get the following:-
[root@www scripts]# systemctl stop opennms
[root@www scripts]# ${OPENNMS_HOME}/bin/runjava -s
runjava: Looking for an appropriate JRE...
runjava: Checking for an appropriate JRE in JAVA_HOME...
runjava: found: "/usr/bin/java" is an appropriate JRE
runjava: value of "/usr/bin/java" stored in configuration file
[root@www scripts]# ${OPENNMS_HOME}/bin/install -dis
==============================================================================
OpenNMS Installer
==============================================================================
Configures PostgreSQL tables, users, and other miscellaneous settings.
DEBUG: Platform is IPv6 ready: true
- searching for libjicmp.so:
- trying to load /usr/lib64/libjicmp.so: OK
- searching for libjicmp6.so:
- trying to load /usr/lib64/libjicmp6.so: OK
- searching for libjrrd.so:
- trying to load /usr/lib64/libjrrd.so: NO
- trying to load /usr/lib64/libjrrd.so: NO
- trying to load /usr/lib64/libjrrd.so: NO
- trying to load /libjrrd.so: NO
- trying to load /opt/opennms/lib/libjrrd.so: NO
- trying to load /opt/opennms/lib/linux64/libjrrd.so: NO
- trying to load /usr/java/packages/lib/amd64/libjrrd.so: NO
- trying to load /usr/lib64/libjrrd.so: NO
- trying to load /lib64/libjrrd.so: NO
- trying to load /lib/libjrrd.so: NO
- trying to load /usr/lib/libjrrd.so: NO
- trying to load /usr/lib/jni/libjrrd.so: NO
- trying to load /usr/lib/libjrrd.so: NO
- trying to load /usr/local/lib/libjrrd.so: NO
- trying to load /opt/NMSjicmp/lib/32/libjrrd.so: NO
- trying to load /opt/NMSjicmp/lib/64/libjrrd.so: NO
- trying to load /opt/NMSjicmp6/lib/32/libjrrd.so: NO
- trying to load /opt/NMSjicmp6/lib/64/libjrrd.so: NO
- Failed to load the optional jrrd library.
- This error is not fatal, since jrrd is only required for optional
features.
- For more information, see http://www.opennms.org/index.php/jrrd
- searching for libjrrd2.so:
- trying to load /usr/lib64/libjrrd2.so: OK
08:22:41.365 [Main] WARN org.opennms.install.Installer - Could not create
file: /opt/opennms/etc/libraries.properties
- using SQL directory... /opt/opennms/etc
- using create.sql... /opt/opennms/etc/create.sql
08:22:41.378 [Main] INFO org.opennms.core.schema.Migrator - validating
database version
* using 'postgres' as the PostgreSQL user for OpenNMS
* using 'opennms' as the PostgreSQL database name for OpenNMS
08:22:41.492 [Main] INFO org.opennms.core.schema.Migrator - validating
database version
08:22:41.505 [Main] INFO org.opennms.core.schema.Migrator - adding
PL/PgSQL support to the database, if necessary
08:22:41.511 [Main] INFO org.opennms.core.schema.Migrator - PL/PgSQL call
handler exists
08:22:41.513 [Main] INFO org.opennms.core.schema.Migrator - PL/PgSQL
language exists
- checking if database "opennms" is unicode... ALREADY UNICODE
- checking if time of database "opennms" is matching system time... OK
- Checking for old import files in /opt/opennms/etc... DONE
- Running migration for changelog: URL
[jar:file:/opt/opennms/lib/org.opennms.core.schema-22.0.2-liquibase.jar!/changelog.xml]
INFO 01/08/18 08:22:liquibase: Successfully acquired change log lock
INFO 01/08/18 08:22:liquibase: Reading from databasechangelog
INFO 01/08/18 08:22:liquibase: Reading from databasechangelog
INFO 01/08/18 08:22:liquibase: Successfully released change log lock
- checking if iplike is usable... YES
- checking if iplike supports IPv6... YES
- checking for stale eventtime.so references... OK
08:22:45.836 [Main] WARN org.opennms.install.Installer - Could not create
file: /opt/opennms/etc/configured
Installer completed successfully!
==============================================================================
OpenNMS Upgrader
==============================================================================
08:22:46.524 [Main] INFO org.eclipse.jetty.util.log - Logging initialized
@8331ms to org.eclipse.jetty.util.log.Slf4jLog
OpenNMS is currently stopped
Found upgrade task ServiceConfigMigratorOffline
Found upgrade task MagicUsersMigratorOffline
Found upgrade task JettyConfigMigratorOffline
Found upgrade task JmxRrdMigratorOffline
Found upgrade task RequisitionsMigratorOffline
Found upgrade task DataCollectionConfigMigratorOffline
Found upgrade task ServiceConfig1701MigratorOffline
Found upgrade task DataCollectionConfigMigrator17Offline
Found upgrade task DiscoveryConfigurationLocationMigratorOffline
Found upgrade task EOLServiceConfigMigratorOffline
Found upgrade task KscReportsMigrator
No monitoring-locations.xml file found, skipping migration to database
Found upgrade task MonitoringLocationsMigratorOffline
Found upgrade task DiscoveryConfigurationMigratorOffline
Found upgrade task EventParameterMigratorOffline
Found upgrade task SnmpInterfaceRrdMigratorOnline
Processing RequisitionsMigratorOffline: Remove non-ip-snmp-primary and
non-ip-interfaces from requisitions: NMS-5630, NMS-5571
Task RequisitionsMigratorOffline has been executed at Fri Jan 29 11:44:54
GMT 2016
Processing SnmpInterfaceRrdMigratorOnline: Merge SNMP Interface directories
(Online Version): NMS-6056
Task SnmpInterfaceRrdMigratorOnline requires OpenNMS is running but it is
stopped (ignoring)
Processing JmxRrdMigratorOffline: Fix the JRB names for the new JMX
Collector: NMS-1539, NMS-3485, NMS-4592, NMS-4612, NMS-5247, NMS-5279,
NMS-5824
Task JmxRrdMigratorOffline has been executed at Fri Jan 29 11:44:55 GMT
2016
Processing JettyConfigMigratorOffline: Adds jetty.xml if necessary: NMS-6629
Task JettyConfigMigratorOffline has been executed at Fri Jan 29 11:44:55
GMT 2016
Processing ServiceConfigMigratorOffline: Fixes service-configuration.xml if
necessary when upgrading from 1.12: NMS-6970
Task ServiceConfigMigratorOffline has been executed at Fri Jan 29
11:44:55 GMT 2016
Processing KscReportsMigrator: Fixes the KSC Reports because of SNMP
Interface directories changes
Task KscReportsMigrator has been executed at Fri Jan 29 11:44:55 GMT 2016
Processing DataCollectionConfigMigratorOffline: Modifies the packages names
used in etc/datacollection/*.xml. See NMS-7612.
Task DataCollectionConfigMigratorOffline has been executed at Fri Jan 29
11:44:55 GMT 2016
Processing ServiceConfig1701MigratorOffline: Fixes
service-configuration.xml if necessary when upgrading from 1.12: NMS-6970
Task ServiceConfig1701MigratorOffline has been executed at Mon Jan 09
11:34:27 GMT 2017
Processing MonitoringLocationsMigratorOffline: Moves monitoring locations
from monitoring-locations.xml into the monitoringlocations tables in the
database
Task MonitoringLocationsMigratorOffline has been executed at Fri Jan 29
11:44:55 GMT 2016
Processing EventParameterMigratorOffline: Moves event parameters from the
'eventparms' column to the 'event_parameters' table.
Task EventParameterMigratorOffline has been executed at Fri Oct 20
07:46:50 BST 2017
Processing DataCollectionConfigMigrator17Offline: Fixes the missing
resource types on datacollection-config.xml. See NMS-7816.
Task DataCollectionConfigMigrator17Offline has been executed at Fri Jan
29 11:44:57 GMT 2016
Processing EOLServiceConfigMigratorOffline: Fixes service-configuration.xml
if necessary when upgrading to 17.0.0: HZN-545
Task EOLServiceConfigMigratorOffline has been executed at Fri Jan 29
11:44:57 GMT 2016
Processing DiscoveryConfigurationMigratorOffline: Removes the 'threads'
attribute from discovery-configuration.xml. See HZN-599.
Task DiscoveryConfigurationMigratorOffline has been executed at Mon Jan
09 11:34:27 GMT 2017
Processing MagicUsersMigratorOffline: Moves security roles from
magic-users.properties into the users.xml file: HZN-871
Task MagicUsersMigratorOffline has been executed at Thu Jun 15 11:09:38
BST 2017
Processing DiscoveryConfigurationLocationMigratorOffline: Changes the name
for the default location from 'localhost' to 'Default'. See HZN-940.
Task DiscoveryConfigurationLocationMigratorOffline has been executed at
Thu Jun 15 11:09:38 BST 2017
Upgrade completed successfully!
[root@www scripts]# systemctl restart opennms
[root@www scripts]# systemctl status opennms.service
opennms.service - OpenNMS server
Loaded: loaded (/usr/lib/systemd/system/opennms.service; enabled; vendor
preset: disabled)
Active: active (running) since Wed 2018-08-01 08:23:03 BST; 5s ago
Process: 1918 ExecStop=/opt/opennms/bin/opennms stop (code=exited,
status=0/SUCCESS)
Process: 2860 ExecStart=/opt/opennms/bin/opennms -Q start (code=exited,
status=0/SUCCESS)
Main PID: 3686 (java)
CGroup: /system.slice/opennms.service
└─3686 /usr/bin/java
-Djava.endorsed.dirs=/opt/opennms/lib/endorsed -Dopennms.home=/opt/opennms
-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError
-Dcom.sun.management.jmxremote.authenticate=true -Dcom....
Aug 01 08:22:53 www systemd[1]: Starting OpenNMS server...
Aug 01 08:23:03 www opennms[2860]: Starting OpenNMS: (not waiting for
startup) [ OK ]
Aug 01 08:23:03 www systemd[1]: Started OpenNMS server.
[root@www scripts]#
Can anyone please help me with this issue. Its driving me mad and I don't
understand the technology behind this product.
Thanks
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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