<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:22:31 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-10190] Upstart configuration fails to start server if other instances are running</title>
                <link>https://jira.mongodb.org/browse/SERVER-10190</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The upstart configuration installed by the &lt;tt&gt;mongodb-10gen&lt;/tt&gt; package from &lt;a href=&quot;http://downloads-distro.mongodb.org/repo/ubuntu-upstart&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://downloads-distro.mongodb.org/repo/ubuntu-upstart&lt;/a&gt; uses &lt;tt&gt;start-stop-daemon(8)&lt;/tt&gt; to control the spawn of &lt;tt&gt;/usr/bin/mongod&lt;/tt&gt;. It currently doesn&apos;t use a pidfile to track the lifecycle of the process, and thus falls back to the default behaviour of scanning the process table for an extant instance of a &lt;tt&gt;mongod&lt;/tt&gt; process.&lt;/p&gt;

&lt;p&gt;This means that when, for example, &lt;tt&gt;mongod&lt;/tt&gt; is running inside an LXC container on the host, the upstart script will fail to start MongoDB.&lt;/p&gt;</description>
                <environment>Ubuntu 12.04</environment>
        <key id="82052">SERVER-10190</key>
            <summary>Upstart configuration fails to start server if other instances are running</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="nick.stenning@digital.cabinet-office.gov.uk">Nick Stenning</reporter>
                        <labels>
                            <label>polish</label>
                            <label>pull-request</label>
                    </labels>
                <created>Fri, 12 Jul 2013 10:40:58 +0000</created>
                <updated>Fri, 14 Nov 2014 16:41:26 +0000</updated>
                            <resolved>Mon, 30 Jun 2014 15:54:57 +0000</resolved>
                                    <version>2.4.4</version>
                                    <fixVersion>2.7.3</fixVersion>
                                    <component>Packaging</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="638810" author="xgen-internal-githook" created="Mon, 30 Jun 2014 15:50:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;nickstenning&apos;, u&apos;name&apos;: u&apos;Nick Stenning&apos;, u&apos;email&apos;: u&apos;nick@whiteink.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10190&quot; title=&quot;Upstart configuration fails to start server if other instances are running&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10190&quot;&gt;&lt;del&gt;SERVER-10190&lt;/del&gt;&lt;/a&gt; Upstart conf: use pidfile, not &apos;ps&apos;&lt;/p&gt;

&lt;p&gt;The default upstart config installed with MongoDB doesn&apos;t provide the&lt;br/&gt;
`-&lt;del&gt;pidfile` or `&lt;/del&gt;-make-pidfile` options to `start-stop-daemon`, which&lt;br/&gt;
means it determines whether or not MongoDB is running by inspecting the&lt;br/&gt;
process table to see if there are any instances of &quot;mongod&quot; running.&lt;/p&gt;

&lt;p&gt;This is a pretty crude mechanism, and we can make it substantially more&lt;br/&gt;
reliable (not susceptible to mongod instances running inside LXC&lt;br/&gt;
containers or similar) by simply getting start-stop-daemon to write a&lt;br/&gt;
pidfile.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5d4b3fe40cfe91857850d89a7a99a07d41b1d48d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5d4b3fe40cfe91857850d89a7a99a07d41b1d48d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="638809" author="xgen-internal-githook" created="Mon, 30 Jun 2014 15:50:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10190&quot; title=&quot;Upstart configuration fails to start server if other instances are running&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10190&quot;&gt;&lt;del&gt;SERVER-10190&lt;/del&gt;&lt;/a&gt; reformat start-stop-daemon command line with newlines&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4350bfad7cea746d081190063a6f5a2b00531132&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4350bfad7cea746d081190063a6f5a2b00531132&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="382979" author="guilhem" created="Wed, 17 Jul 2013 09:50:40 +0000"  >&lt;p&gt;Can you test &lt;a href=&quot;https://github.com/mongodb/mongo/pull/454&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/454&lt;/a&gt; to see if it resolve your issue?&lt;/p&gt;</comment>
                            <comment id="381783" author="tad" created="Tue, 16 Jul 2013 00:16:54 +0000"  >&lt;p&gt;When testing pidfile, be aware of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10034&quot; title=&quot;Invalid --pidfilepath is silently ignored&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10034&quot;&gt;&lt;del&gt;SERVER-10034&lt;/del&gt;&lt;/a&gt; in case it would skew your results.&lt;/p&gt;</comment>
                            <comment id="381588" author="ernie.hershey@10gen.com" created="Mon, 15 Jul 2013 20:25:40 +0000"  >&lt;p&gt;Looks good to me. We should test though, especially in both ubuntu 10.4 and 12.4 to make sure the syntax is supported to start-stop-daemon. &lt;/p&gt;

&lt;p&gt;Also this might conflict with setting a pidfile in the config file, so we should test with and without a pidfile in the config file (none is our default on ubuntu packaged installs).&lt;/p&gt;</comment>
                            <comment id="380192" author="matt.kangas@10gen.com" created="Fri, 12 Jul 2013 22:21:56 +0000"  >&lt;p&gt;Ernie, please review.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="52378">SERVER-7268</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10220">
                    <name>Tested</name>
                                            <outwardlinks description="tested by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 12 Jul 2013 22:21:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 33 weeks, 2 days 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 33 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </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>ernie.hershey@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>guilhem</customfieldvalue>
            <customfieldvalue>matt.kangas</customfieldvalue>
            <customfieldvalue>nick.stenning@digital.cabinet-office.gov.uk</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmn9z:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7295</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="175">Server 2.7.3</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1. Install Mongo from the 10gen apt repository.&lt;br/&gt;
2. Run &lt;tt&gt;mongod&lt;/tt&gt; in a shell, perhaps with different configuration, port bindings, etc.&lt;br/&gt;
3. Run &quot;/sbin/start mongodb&quot;&lt;/p&gt;

&lt;p&gt;Expected behaviour:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;starts MongoDB and outputs something like &lt;tt&gt;mongodb start/running, process 12345&lt;/tt&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Actual behaviour:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;refuses to start MongoDB due to second running instance, and prints &lt;tt&gt;mongodb stop/waiting&lt;/tt&gt;&lt;/li&gt;
&lt;/ul&gt;
</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10153"><![CDATA[Unneeded]]></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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

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

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