<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:38:34 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-15643] mongod aborts on log file rotation when log file is missing</title>
                <link>https://jira.mongodb.org/browse/SERVER-15643</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi,&lt;br/&gt;
using external logrotate configuration on 2.6.4 results in server crash .&lt;br/&gt;
the logrotate renames the initial mongodb.log file in another name then sends the USR1 signal to mongod, this one doesn&apos;t find initial file and so terminates.&lt;/p&gt;


&lt;p&gt;2014-10-14T11:36:43.188+0200 &lt;span class=&quot;error&quot;&gt;&amp;#91;clientcursormon&amp;#93;&lt;/span&gt;  connections:2&lt;br/&gt;
2014-10-14T11:38:45.790+0200 &lt;span class=&quot;error&quot;&gt;&amp;#91;signalProcessingThread&amp;#93;&lt;/span&gt; warning: Rotating log file /var/log/mongodb/mongodb.log failed: FileRenameFailed Failed  to rename&lt;br/&gt;
&quot;/var/log/mongodb/mongodb.log&quot; to &quot;/var/log/mongodb/mongodb.log.2014-10-14T09-38-45&quot;: No such file or directory (2)&lt;br/&gt;
2014-10-14T11:38:45.790+0200 &lt;span class=&quot;error&quot;&gt;&amp;#91;signalProcessingThread&amp;#93;&lt;/span&gt; Fatal Assertion 16782&lt;br/&gt;
2014-10-14T11:38:45.797+0200 &lt;span class=&quot;error&quot;&gt;&amp;#91;signalProcessingThread&amp;#93;&lt;/span&gt; 0x11e6111 0x1187e49 0x116a97d 0x11e57cf 0x122aaa9 0x7ffa481cb9d1 0x7ffa47570b5d &lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x11e6111&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo10logContextEPKc+0x159) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x1187e49&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo13fassertFailedEi+0xcd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x116a97d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x11e57cf&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x122aaa9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0(+0x79d1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7ffa481cb9d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7ffa47570b5d&amp;#93;&lt;/span&gt;&lt;br/&gt;
2014-10-14T11:38:45.797+0200 &lt;span class=&quot;error&quot;&gt;&amp;#91;signalProcessingThread&amp;#93;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;***aborting after fassert() failure&lt;/p&gt;


&lt;p&gt;2014-10-14T11:38:45.802+0200 &lt;span class=&quot;error&quot;&gt;&amp;#91;signalProcessingThread&amp;#93;&lt;/span&gt; SEVERE: Got signal: 6 (Aborted).&lt;br/&gt;
Backtrace:0x11e6111 0x11e54ee 0x7ffa474ba9a0 0x7ffa474ba925 0x7ffa474bc105 0x116a9ea 0x11e57cf 0x122aaa9 0x7ffa481cb9d1 0x7ffa47570b5d &lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x11e6111&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x11e54ee&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(+0x329a0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7ffa474ba9a0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(gsignal+0x35) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7ffa474ba925&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(abort+0x175) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7ffa474bc105&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo13fassertFailedEi+0x13a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x116a9ea&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x11e57cf&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x122aaa9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0(+0x79d1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7ffa481cb9d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7ffa47570b5d&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;having a missing log file is frequent when people (or logrotate) delete log files expecting to free disk space&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;IMHO : even if original ile is missing the server should not terminate.&lt;/p&gt;

&lt;p&gt;Previously I used mongo 2.4.6 from centos repositories with logrotate and had no trouble, I switched to mongo 2.6.4 from mongodb repositories and reused previous logrotate configuration, ad now my servers are crashing at log rotation.&lt;/p&gt;

&lt;p&gt;Regards.&lt;/p&gt;</description>
                <environment></environment>
        <key id="163466">SERVER-15643</key>
            <summary>mongod aborts on log file rotation when log file is missing</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="lglayal">Laurent Glayal</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Oct 2014 10:01:16 +0000</created>
                <updated>Sun, 30 Nov 2014 14:18:26 +0000</updated>
                            <resolved>Sun, 30 Nov 2014 14:18:00 +0000</resolved>
                                    <version>2.6.4</version>
                                                    <component>Logging</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="774707" author="ramon.fernandez" created="Sun, 30 Nov 2014 14:17:17 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lglayal&quot; class=&quot;user-hover&quot; rel=&quot;lglayal&quot;&gt;lglayal&lt;/a&gt;, this issue was reported before in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11087&quot; title=&quot;mongod/mongos fatally asserts when rotating logs and log isn&amp;#39;t in original location&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11087&quot;&gt;SERVER-11087&lt;/a&gt;, so I&apos;m marking this ticket as a duplicate. Please feel free to watch and vote for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11087&quot; title=&quot;mongod/mongos fatally asserts when rotating logs and log isn&amp;#39;t in original location&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11087&quot;&gt;SERVER-11087&lt;/a&gt;. You may also be interested in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4905&quot; title=&quot;logRotate should conform to standard log rotation mechanisms&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4905&quot;&gt;&lt;del&gt;SERVER-4905&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="740578" author="lglayal" created="Tue, 14 Oct 2014 12:58:08 +0000"  >&lt;p&gt;Would it be possible to replace&lt;/p&gt;

&lt;p&gt;case SIGUSR1:&lt;br/&gt;
                // log rotate signal&lt;br/&gt;
                fassert(16782, rotateLogs());&lt;br/&gt;
                logProcessDetailsForLogRotate();&lt;br/&gt;
                break;&lt;/p&gt;

&lt;p&gt;with something like&lt;/p&gt;

&lt;p&gt;case SIGUSR1:&lt;br/&gt;
                // log rotate signal&lt;br/&gt;
                if(! rotateLogs()) &lt;/p&gt;
{
                  logProcessDetailsForLogRotate();
                }
&lt;p&gt; else &lt;/p&gt;
{
                 checkAnMayBeReopenLogFile();
                 logWarningOnLogrotate(&quot;Unable to rotate initial log file&quot;);
                }
&lt;p&gt;                break;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="93309">SERVER-11087</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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 27 Nov 2014 09:17:09 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 11 weeks, 3 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, 11 weeks, 3 days 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>lglayal</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|hrlls7:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>142548</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;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;rename mongodb.log file&lt;/li&gt;
	&lt;li&gt;send USR12 to server to force a log rotation&lt;/li&gt;
&lt;/ul&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|hrpnt3:</customfieldvalue>

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