Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-6135

opennms-server package init script requires postgres to start

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.12.1
    • Fix Version/s: None
    • Component/s: Installation
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Debian Wheezy

      Description

      When I upgraded my installation to 1.12.1, the installation didn't complete. The following error kept reoccuring when running apt-get upgrade:

      --snip--

      1. 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:
      opennms-server
      E: Sub-process /usr/bin/dpkg returned an error code (1)

      --/snip--

      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.

      Thanks,
      Robin.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ranger Benjamin Reed
              Reporter:
              sinusoidal Robin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration