<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:10:30 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-6008] numactl in debian init script seems to be problematic</title>
                <link>https://jira.mongodb.org/browse/SERVER-6008</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;div class=&quot;panel&quot; style=&quot;background-color: #EEEEEE;border-color: #ccc;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-color: #ccc;background-color: #6CB33F;&quot;&gt;&lt;b&gt;Issue Status as of December 16th, 2013&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #EEEEEE;&quot;&gt;
&lt;p&gt;&lt;b&gt;ISSUE SUMMARY&lt;/b&gt;&lt;br/&gt;
Mongod fails to start via init script in Debian if numactl is also installed.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;USER IMPACT&lt;/b&gt;&lt;br/&gt;
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.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;SOLUTION&lt;/b&gt;&lt;br/&gt;
Fix command line construction logic in init script.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;WORKAROUNDS&lt;/b&gt;&lt;br/&gt;
Option 1) Uninstall numactl.&lt;br/&gt;
Option 2) Manually set the $NUMACTL variable to the empty string (&quot;&quot;) in the mongod init script. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;PATCHES&lt;/b&gt;&lt;br/&gt;
Production release v2.4.7 contains the fix for this issue, and production release v2.6.0 will contain the fix as well.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;OriginalDescription&quot;&gt;&lt;/a&gt;Original Description&lt;/h4&gt;

&lt;p&gt;It looks like the wrapper function for numactl here: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/debian/init.d#L67-74&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/master/debian/init.d#L67-74&lt;/a&gt; doesn&apos;t work with the &lt;tt&gt;start-stop-daemon&lt;/tt&gt; here: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/debian/init.d#L129-135&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/master/debian/init.d#L129-135&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One solution could be to test for the existence of numa, and pass the full command to --exec.&lt;/p&gt;</description>
                <environment></environment>
        <key id="40478">SERVER-6008</key>
            <summary>numactl in debian init script seems to be problematic</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="ernie.hershey@mongodb.com">Ernie Hershey</assignee>
                                    <reporter username="miketheman">Michael A. Fiedler</reporter>
                        <labels>
                            <label>initscript</label>
                    </labels>
                <created>Tue, 5 Jun 2012 19:46:14 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:36 +0000</updated>
                            <resolved>Mon, 5 Aug 2013 19:58:01 +0000</resolved>
                                    <version>2.1.1</version>
                    <version>2.2.5</version>
                    <version>2.4.5</version>
                    <version>2.5.1</version>
                                    <fixVersion>2.4.7</fixVersion>
                    <fixVersion>2.5.2</fixVersion>
                                    <component>Packaging</component>
                                        <votes>4</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="434965" author="auto" created="Wed, 2 Oct 2013 23:48:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ehershey&apos;, u&apos;name&apos;: u&apos;Ernie Hershey&apos;, u&apos;email&apos;: u&apos;ernie.hershey@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6008&quot; title=&quot;numactl in debian init script seems to be problematic&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6008&quot;&gt;&lt;del&gt;SERVER-6008&lt;/del&gt;&lt;/a&gt; move &apos;--&apos; out of DAEMON_OPTS rvalue&lt;br/&gt;
Branch: v2.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4a34704bfa393b7a52b64a447a9c735bafe52782&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4a34704bfa393b7a52b64a447a9c735bafe52782&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="434964" author="auto" created="Wed, 2 Oct 2013 23:48:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;Aricg&apos;, u&apos;name&apos;: u&apos;Aricg&apos;, u&apos;email&apos;: u&apos;actual@aricgardner.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6008&quot; title=&quot;numactl in debian init script seems to be problematic&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6008&quot;&gt;&lt;del&gt;SERVER-6008&lt;/del&gt;&lt;/a&gt; put the logic for DAEMON_OPTS= and &amp;#8211; into the &quot;if which numactl&quot;&lt;/p&gt;

&lt;p&gt;I hope this is correct, I have signed the contributor&apos;s agreement.&lt;/p&gt;

&lt;p&gt;Signed-off-by: Ernie Hershey &amp;lt;ernie.hershey@10gen.com&amp;gt;&lt;br/&gt;
Branch: v2.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/95342c1fb48e145b7f8a7e46c4fcc79d8bf0f1a0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/95342c1fb48e145b7f8a7e46c4fcc79d8bf0f1a0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="393111" author="auto" created="Wed, 31 Jul 2013 21:35:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ehershey&apos;, u&apos;name&apos;: u&apos;Ernie Hershey&apos;, u&apos;email&apos;: u&apos;ernie.hershey@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6008&quot; title=&quot;numactl in debian init script seems to be problematic&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6008&quot;&gt;&lt;del&gt;SERVER-6008&lt;/del&gt;&lt;/a&gt; move &apos;--&apos; out of DAEMON_OPTS rvalue&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/878cc4e5c93ce66b06f66bc80038a3d55a514226&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/878cc4e5c93ce66b06f66bc80038a3d55a514226&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="393110" author="auto" created="Wed, 31 Jul 2013 21:35:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;Aricg&apos;, u&apos;name&apos;: u&apos;Aricg&apos;, u&apos;email&apos;: u&apos;actual@aricgardner.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6008&quot; title=&quot;numactl in debian init script seems to be problematic&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6008&quot;&gt;&lt;del&gt;SERVER-6008&lt;/del&gt;&lt;/a&gt; put the logic for DAEMON_OPTS= and &amp;#8211; into the &quot;if which numactl&quot;&lt;/p&gt;

&lt;p&gt;I hope this is correct, I have signed the contributor&apos;s agreement.&lt;/p&gt;

&lt;p&gt;Signed-off-by: Ernie Hershey &amp;lt;ernie.hershey@10gen.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/188a0237bdbb84d308373f024a9a43e7d4715ef4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/188a0237bdbb84d308373f024a9a43e7d4715ef4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="360560" author="mloftis" created="Fri, 14 Jun 2013 19:45:30 +0000"  >&lt;p&gt;Fixed init script that actually works, and behaves as intended and expected.&lt;/p&gt;</comment>
                            <comment id="360557" author="mloftis" created="Fri, 14 Jun 2013 19:44:45 +0000"  >&lt;p&gt;Really, you need to remove --exec altogether as it is most emphatically &lt;b&gt;NOT&lt;/b&gt; doing what you think it is, or at the very least has side effects that are completely unintended in this case.  What you want is to forget about --exec in the startup case (and in the stop case too!) as it will try to find other processes with the exe and not start (or stop them too) if they exist.  Granted on a production node you shouldn&apos;t run into this but on development, it could be pretty annoying.  Use --startas instead during the start case, and remove --exec from the stop case.  When numactl is available use --startas $NUMACTL and when numactl isn&apos;t available, just use the daemon.&lt;/p&gt;

&lt;p&gt;I&apos;ll attach a fixed init script that works with and without numactl, and doesn&apos;t accidentally clobber other side by side mongo instances to this ticket.&lt;/p&gt;</comment>
                            <comment id="277529" author="mmike" created="Wed, 27 Feb 2013 22:11:12 +0000"  >&lt;p&gt;Currently, mongodb is uninstallable without manual intervention on Debian Squeeze. &lt;/p&gt;

&lt;p&gt;A patch provided is fixing that.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="66733">SERVER-8774</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="65240">SERVER-8565</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="55483">SERVER-7575</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="57124">SERVER-7737</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="85522">DOCS-1801</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="66733">SERVER-8774</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="46331">SERVER-6721</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="52378">SERVER-7268</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="24511" name="init.d.patch" size="950" author="mmike" created="Wed, 27 Feb 2013 22:11:12 +0000"/>
                            <attachment id="27947" name="mongodb.debian.init" size="7641" author="mloftis" created="Fri, 14 Jun 2013 19:45:30 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 27 Feb 2013 22:11:12 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 20 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 20 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>ernie.hershey@mongodb.com</customfieldvalue>
            <customfieldvalue>mmike</customfieldvalue>
            <customfieldvalue>miketheman</customfieldvalue>
            <customfieldvalue>mloftis</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmc2v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrg45z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7579</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hsmclb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>