<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:53:04 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-20075] Debian init script not setting correct permissions on PIDFILEPATH</title>
                <link>https://jira.mongodb.org/browse/SERVER-20075</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Debian init script does not ensure proper ownership/permissions on the PID file. The created PID file is not writable by the $DAEMONUSER (mongodb) causing the server to fail to start.&lt;/p&gt;

&lt;p&gt;Is it possible to ensure the PID location is writable before starting the service - like you do in the Ubuntu upstart script at lines 23-24: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/f7675b0a306764d8a435a623b4af0b5bd63180d4/debian/mongod.upstart&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/f7675b0a306764d8a435a623b4af0b5bd63180d4/debian/mongod.upstart&lt;/a&gt;&lt;/p&gt;</description>
                <environment>&amp;gt; lsb_release -a&lt;br/&gt;
No LSB modules are available.&lt;br/&gt;
Distributor ID:	Debian&lt;br/&gt;
Description:	Debian GNU/Linux 7.8 (wheezy)&lt;br/&gt;
Release:	7.8&lt;br/&gt;
Codename:	wheezy&lt;br/&gt;
&lt;br/&gt;
&amp;gt; mongod --version&lt;br/&gt;
db version v3.0.2&lt;br/&gt;
git version: 6201872043ecbbc0a4cc169b5482dcf385fc464f&lt;br/&gt;
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013</environment>
        <key id="226590">SERVER-20075</key>
            <summary>Debian init script not setting correct permissions on PIDFILEPATH</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="-1">Unassigned</assignee>
                                    <reporter username="petmal">Petr Malik</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Aug 2015 14:38:45 +0000</created>
                <updated>Thu, 14 Apr 2016 15:17:48 +0000</updated>
                            <resolved>Fri, 21 Aug 2015 16:11:27 +0000</resolved>
                                    <version>3.0.2</version>
                                                    <component>Packaging</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1011833" author="ramon.fernandez" created="Fri, 21 Aug 2015 16:11:07 +0000"  >&lt;p&gt;This is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18492&quot; title=&quot;Setting pidFilePath to /var/run/mongod.pid in config file on Debian prevents service from starting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18492&quot;&gt;&lt;del&gt;SERVER-18492&lt;/del&gt;&lt;/a&gt;: &lt;tt&gt;/var/run&lt;/tt&gt; is owned by the system, and setting &lt;tt&gt;pidFilePath&lt;/tt&gt; to anything in that directory is incorrect &amp;#8211; &lt;tt&gt;pidFilePath&lt;/tt&gt; should point to a path that the &lt;tt&gt;mongodb&lt;/tt&gt; user can write to.&lt;/p&gt;

&lt;p&gt;We&apos;ve opened &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-5696&quot; title=&quot;clarify pidfile setting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-5696&quot;&gt;&lt;del&gt;DOCS-5696&lt;/del&gt;&lt;/a&gt; to add clarification on this matter.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="204465">SERVER-18492</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</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, 21 Aug 2015 16:11:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 25 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 25 weeks, 5 days 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>petmal</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkwof:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsco0v:</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1. Create a configuration file.&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;/etc/mongod.conf&lt;br/&gt;
processManagement.fork: false&lt;br/&gt;
processManagement.pidFilePath: /var/run/mongod.pid&lt;br/&gt;
systemLog.destination: file&lt;br/&gt;
systemLog.path: /var/log/mongodb/mongod.log&lt;br/&gt;
systemLog.logAppend: true&lt;br/&gt;
storage.mmapv1.smallFiles: false&lt;br/&gt;
storage.journal.enabled: true&lt;br/&gt;
storage.dbPath: /var/lib/mongodb/&lt;br/&gt;
net.bindIp: 127.0.0.1&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;2. Start mongod as a service.&lt;br/&gt;
&amp;gt; sudo service mongod start&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;FAIL&amp;#93;&lt;/span&gt; Starting database: mongod failed!&lt;/p&gt;

&lt;p&gt;3. Check the server log.&lt;br/&gt;
&amp;gt; tail -f /var/log/mongodb/mongod.log&lt;br/&gt;
2015-08-21T10:20:20.096-0400 I CONTROL  ERROR: Cannot write pid file to /var/run/mongod.pid: Permission denied&lt;/p&gt;

&lt;p&gt;4. Check the PID permissions.&lt;br/&gt;
&amp;gt; ls -l /run/mongod.pid&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root root 5 Aug 21 10:20 /run/mongod.pid&lt;/p&gt;</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|hsfq5z:</customfieldvalue>

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