This can happen for a a number of reasons. You can run "opennms -v status" a few times after getting this error to see if OpenNMS eventually starts itself completely and if not, to see which daemons never start up completely. Here are some of the likely causes of this problem:

  1. OpenNMS takes a while to startup. This can happen on larger installations and when this happens "opennms -v status" will eventually show that all services have started up. By default, the startup script will try 10 times to see if OpenNMS has started and will wait 5 seconds between each try. You can increase the number of times by creating $OPENNMS_HOME/etc/opennms.conf and adding a line like "START_TIMEOUT=20" to double the number of times it tests. You can set the value to 0 to have the startup script not wait for OpenNMS to start. 在1.9版的OpenNMS的etc下没有opennms.conf可以将/etc/examples/opennms.conf复制到此文件夹下。修改START_TIMEOUT=20,再重启opennms即可解决。

  2. Database is not running. If only about half or less of the daemons are shown as running, you can check for this condition by looking for FATAL errors in the log files. You'll see something like "Error accessing database" in the logs.

  3. Dhcpd doesn't start. See the item in the next section.

  4. JNI library problem. OpenNMS uses a few native C libraries that are accessed using JNI (Java Native Interface). Normally they just work, except users have started seeing problems when running Linux in native AMD64 mode where they end up using a 32-bit (x86) version of Java and a 64-bit (AMD64) version of the JNI libraries, or vice-versa. If you have this problem, you might want to try switching your version of Java from 32-bit to 64-bit or in the other direction.

  5. Other. If the OpenNMS is installed, and the packages were not forced in using options like "--nodeps", the application should run just fine. If not, OpenNMS has a robust logging facility. Change to the logs directory (usually /var/log/opennms) and search the logs, using grep or your tool of choice, for words like FATAL and ERROR (the two highest log severities). Those events should give you clues as to why OpenNMS is not working.

  6. 本文参考:http://www.opennms.org/documentation/installguide.html#not-finished-starting-up