-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.1.1, 2.2.5, 2.4.5, 2.5.1
-
Component/s: Packaging
-
Fully Compatible
-
Linux
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.
- is duplicated by
-
SERVER-8774 mongodb is uninstallable on Debian Squeeze from the official repos
- Closed
-
SERVER-8565 debian/init.d does not work when numactl is installed
- Closed
-
SERVER-7575 Debian start-up script in 10gen repository makes MongoDB not start if numactl is available on system
- Closed
-
SERVER-7737 Error in init.d with numactl command on debian 6
- Closed
- is related to
-
SERVER-7268 Add numactl to upstart scripts
- Closed
- related to
-
SERVER-8774 mongodb is uninstallable on Debian Squeeze from the official repos
- Closed
-
SERVER-6721 Enable to set the NUMA mode through /etc/default/mongodb
- Closed
- links to