<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:38:47 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-15724] Cannot write pid file to /var/run/mongodb/mongod.pid: No such file or directory</title>
                <link>https://jira.mongodb.org/browse/SERVER-15724</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I&apos;ve logged this under docs, but I think core is probably more appropriate:&lt;/p&gt;

&lt;p&gt;----------------&lt;/p&gt;

&lt;p&gt;Hi,&lt;br/&gt;
I&apos;m running mongo server on rhel7 and systemd: # rpm -q mongodb-org-server&lt;br/&gt;
    mongodb-org-server-2.6.4-1.x86_64&lt;/p&gt;

&lt;p&gt;I&apos;m trying to run the daemon: # /etc/rc.d/init.d/mongod start&lt;br/&gt;
Starting mongod (via systemctl): Job for mongod.service failed. See &apos;systemctl status mongod.service&apos; and &apos;journalctl -xn&apos; for details.&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;FAILED&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;when I look at the log, I&apos;m seeing:&lt;br/&gt;
2014-10-20T11:36:28.085+0530 ***** SERVER RESTARTED *****&lt;br/&gt;
2014-10-20T11:36:28.087+0530 ERROR: Cannot write pid file to /var/run/mongodb/mongod.pid: No such file or directory&lt;/p&gt;

&lt;p&gt;The way around it is to create mongodb.conf in /lib/tmpfiles.d/ with following content:&lt;br/&gt;
d /var/run/mongodb 0755 mongod mongod&lt;/p&gt;

&lt;p&gt;Please add /lib/tmpfiles.d/mongodb.conf to mongodb-org-server package&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://stackoverflow.com/questions/23086655/mongodb-service-will-not-start-after-initial-setup&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/23086655/mongodb-service-will-not-start-after-initial-setup&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Many thanks,&lt;br/&gt;
Tomas&lt;/p&gt;</description>
                <environment></environment>
        <key id="164401">SERVER-15724</key>
            <summary>Cannot write pid file to /var/run/mongodb/mongod.pid: No such file or directory</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="ernie.hershey@mongodb.com">Ernie Hershey</assignee>
                                    <reporter username="tomasd">Tomas Daba&#154;inskas</reporter>
                        <labels>
                    </labels>
                <created>Sun, 19 Oct 2014 23:55:57 +0000</created>
                <updated>Tue, 28 Oct 2014 20:12:22 +0000</updated>
                            <resolved>Tue, 28 Oct 2014 20:12:22 +0000</resolved>
                                    <version>2.6.4</version>
                                                    <component>Packaging</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="750810" author="ramon.fernandez" created="Tue, 28 Oct 2014 20:12:22 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tomasd&quot; class=&quot;user-hover&quot; rel=&quot;tomasd&quot;&gt;tomasd&lt;/a&gt;, this is to let you know that systemd support is handled under &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7285&quot; title=&quot;Support systemd in future compatible distributions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7285&quot;&gt;&lt;del&gt;SERVER-7285&lt;/del&gt;&lt;/a&gt;, so feel free to watch that ticket for updates and/or vote for it.&lt;/p&gt;</comment>
                            <comment id="747612" author="tomasd" created="Thu, 23 Oct 2014 06:33:25 +0000"  >&lt;p&gt;Hi Ramon,&lt;br/&gt;
Many thanks for getting back.&lt;br/&gt;
Yep, I&apos;ve updated the package and I can now see /var/run/mongodb:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;rpm -ql  mongodb-org-server&lt;br/&gt;
/etc/init.d/mongod&lt;br/&gt;
/etc/mongod.conf&lt;br/&gt;
/etc/sysconfig/mongod&lt;br/&gt;
/usr/bin/mongod&lt;br/&gt;
/usr/share/man/man1/mongod.1&lt;br/&gt;
/var/lib/mongo&lt;br/&gt;
/var/log/mongodb&lt;br/&gt;
/var/log/mongodb/mongod.log&lt;br/&gt;
/var/run/mongodb&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;on systemd systems it would be good idea to distribute /lib/tmpfiles.d/mongodb.conf, other packages are using it:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;ls /lib/tmpfiles.d&lt;br/&gt;
abrt.conf  cups-lp.conf              httpd.conf        iscsi.conf   libselinux.conf  mdadm.conf    pam.conf  rpm.conf    saslauthd.conf       spice-vdagentd.conf        systemd.conf          tmp.conf cups.conf  gvfsd-fuse-tmpfiles.conf  initscripts.conf  legacy.conf  lvm2.conf        mongodb.conf  ppp.conf  samba.conf  selinux-policy.conf  subscription-manager.conf  systemd-nologin.conf  x11.conf&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;I&apos;m not sure how that would affect non systemd systems. Please feel free to resolve this.&lt;/p&gt;</comment>
                            <comment id="745282" author="ramon.fernandez" created="Mon, 20 Oct 2014 15:28:01 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tomasd&quot; class=&quot;user-hover&quot; rel=&quot;tomasd&quot;&gt;tomasd&lt;/a&gt;, thanks for opening this ticket. This bug should have been fixed by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-14679&quot; title=&quot;(CentOS 7/RHEL 7) init.d script should create directory for pid file if it is missing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-14679&quot;&gt;&lt;del&gt;SERVER-14679&lt;/del&gt;&lt;/a&gt; &amp;#8211; can you please try with 2.6.5 and see if the problem is fixed?&lt;/p&gt;</comment>
                            <comment id="744910" author="tomasd" created="Sun, 19 Oct 2014 23:56:28 +0000"  >&lt;p&gt;docs bug: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-4209&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/DOCS-4209&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="52448">SERVER-7285</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="149059">SERVER-14679</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="164400">DOCS-4209</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 20 Oct 2014 15:28:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 16 weeks, 1 day 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, 16 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ernie.hershey@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>tomasd</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrllbj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>143444</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>
                                

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

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