When I upgraded my installation to 1.12.1, the installation didn't complete. The following error kept reoccuring when running apt-get upgrade:
- apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up opennms-server (1.12.1-1) ...
- Installation complete. You must still run the installer at
- $OPENNMS_HOME/bin/install to be sure your database is up
- to date before you start OpenNMS. See the install guide at
- http://www.opennms.org/wiki/Installation:Debian and the
- release notes for details.
insserv: Service postgresql has to be enabled to start service opennms
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing opennms-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Similar to this old bug http://issues.opennms.org/browse/NMS-3507 , it looks like the init script in the latest version (at least the one that my machine picked up) has postgres listed as a required-start rather than a should-start which means those running separate DB servers will run into problems.