Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6008

numactl in debian init script seems to be problematic

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.4.7, 2.5.2
    • Affects Version/s: 2.1.1, 2.2.5, 2.4.5, 2.5.1
    • Component/s: Packaging
    • Fully Compatible
    • Linux

      Issue Status as of December 16th, 2013

      ISSUE SUMMARY
      Mongod fails to start via init script in Debian if numactl is also installed.

      USER IMPACT
      If numactl is installed on a Debian system along with mongod, the init script will fail to start mongod. This issue is present in versions of MongoDB between v2.2.0 and v2.4.6, inclusive.

      SOLUTION
      Fix command line construction logic in init script.

      WORKAROUNDS
      Option 1) Uninstall numactl.
      Option 2) Manually set the $NUMACTL variable to the empty string ("") in the mongod init script.

      PATCHES
      Production release v2.4.7 contains the fix for this issue, and production release v2.6.0 will contain the fix as well.

      Original Description

      It looks like the wrapper function for numactl here: https://github.com/mongodb/mongo/blob/master/debian/init.d#L67-74 doesn't work with the start-stop-daemon here: https://github.com/mongodb/mongo/blob/master/debian/init.d#L129-135

      One solution could be to test for the existence of numa, and pass the full command to --exec.

        1. init.d.patch
          0.9 kB
          Mario Splivalo
        2. mongodb.debian.init
          7 kB
          Michael Loftis

            Assignee:
            ernie.hershey@mongodb.com Ernie Hershey (Inactive)
            Reporter:
            miketheman Michael A. Fiedler
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: