<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:05:56 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-24295] mongod service pid is different in /var/run/mongo and actual running service pid</title>
                <link>https://jira.mongodb.org/browse/SERVER-24295</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;MongoDB v3.0.6 CentOS -6.5&lt;br/&gt;
**********************&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Mongod service goes into unstable state after successive start/stop operation.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Very easy way to reproduce this issue is start already running service mongod in linux with /etc/init.d/mongod start&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Now, situation will be that if you check with ps -fax then service will be running with PID as below,&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;26138 ?        Sl     0:07 /usr/bin/mongod -f /etc/mongod.conf&lt;/p&gt;

&lt;p&gt;And if you check PID in /var/run/mongod&lt;br/&gt;
cat /var/run/mongo/mongod.pid&lt;br/&gt;
21106&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;In this case if you try to restart mongod with /etc/init.d/mongod restart&lt;br/&gt;
output will be as follow&lt;br/&gt;
Stopping mongod:                                           [  OK  ]&lt;br/&gt;
Starting mongod:                                           &lt;span class=&quot;error&quot;&gt;&amp;#91;FAILED&amp;#93;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;But in actual mongod service is already running with other PID.&lt;/p&gt;

&lt;p&gt;I guess this BUG is in init script of mongo.&lt;/p&gt;

&lt;p&gt;As I am new to JIRA, let me know if any other logs or information is required to debug this issue.&lt;/p&gt;</description>
                <environment></environment>
        <key id="289552">SERVER-24295</key>
            <summary>mongod service pid is different in /var/run/mongo and actual running service pid</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="3">Duplicate</resolution>
                                        <assignee username="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="tejaskumar.kasundra@gmail.com">Tejaskumar</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 May 2016 09:42:28 +0000</created>
                <updated>Fri, 22 Jul 2016 21:45:18 +0000</updated>
                            <resolved>Fri, 22 Jul 2016 21:45:18 +0000</resolved>
                                    <version>3.0.6</version>
                                                    <component>Admin</component>
                    <component>Packaging</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1333203" author="thomas.schubert" created="Fri, 22 Jul 2016 21:45:02 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tejaskumar.kasundra%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;tejaskumar.kasundra@gmail.com&quot;&gt;tejaskumar.kasundra@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Sorry for the delay getting back to you. I believe this issue duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23830&quot; title=&quot;On RHEL7/Centos7 mongod can&amp;#39;t stop if pid location in conf differs from the init.d script&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23830&quot;&gt;&lt;del&gt;SERVER-23830&lt;/del&gt;&lt;/a&gt;, which has been backported to the upcoming release, MongoDB 3.0.13. Please let us if this fix does not resolve the issue for you and we will continue to investigate.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1276154" author="tejaskumar.kasundra@gmail.com" created="Thu, 26 May 2016 12:57:47 +0000"  >&lt;p&gt;Hi Ramon,&lt;/p&gt;

&lt;p&gt;Thanks for quick reply. Pleaes find attached files as requested by you.&lt;br/&gt;
/etc/mongod.conf&lt;/p&gt;</comment>
                            <comment id="1276153" author="tejaskumar.kasundra@gmail.com" created="Thu, 26 May 2016 12:57:17 +0000"  >&lt;p&gt;/etc/init.d/mongod &lt;br/&gt;
There is customization is done from my side to avoid this issue.&lt;/p&gt;</comment>
                            <comment id="1276127" author="ramon.fernandez" created="Thu, 26 May 2016 12:39:04 +0000"  >&lt;p&gt;Can you please post the contents of your &lt;tt&gt;/etc/mongod.conf&lt;/tt&gt; file as well as your &lt;tt&gt;/etc/init.d/mongod&lt;/tt&gt; script?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="1276006" author="tejaskumar.kasundra@gmail.com" created="Thu, 26 May 2016 09:53:03 +0000"  >&lt;p&gt;Same issue is also observed for Mongos and Mongoconfig service when operating mongo incluster mode.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="281125">SERVER-23830</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="123495" name="mongod" size="5148" author="tejaskumar.kasundra@gmail.com" created="Thu, 26 May 2016 12:57:17 +0000"/>
                            <attachment id="123496" name="mongod.conf" size="1860" author="tejaskumar.kasundra@gmail.com" created="Thu, 26 May 2016 12:57:47 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 26 May 2016 12:39:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 29 weeks, 5 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>kelsey.schubert@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 29 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>tejaskumar.kasundra@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrk76f:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </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>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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