<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:15 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-3162] old lock file error even when using journaling</title>
                <link>https://jira.mongodb.org/browse/SERVER-3162</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Mongodb can&apos;t start and I&apos;m getting the old lock file error in the log although journaling is enabled&lt;br/&gt;
and the log says it cleaned the journal files when it receive the machine shut down signal.&lt;/p&gt;

&lt;p&gt;journaling is enabled by adding the following to /etc/mongodb.conf:&lt;br/&gt;
journal = true&lt;/p&gt;

&lt;p&gt;This is the log file:&lt;/p&gt;

&lt;p&gt;Fri May 27 09:49:13 got kill or ctrl c or hup signal 15 (Terminated), will terminate after current cmd ends&lt;br/&gt;
Fri May 27 09:49:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; now exiting&lt;br/&gt;
Fri May 27 09:49:13 dbexit:&lt;br/&gt;
Fri May 27 09:49:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Fri May 27 09:49:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; closing listening socket: 6&lt;br/&gt;
Fri May 27 09:49:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; closing listening socket: 7&lt;br/&gt;
Fri May 27 09:49:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; closing listening socket: 8&lt;br/&gt;
Fri May 27 09:49:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; closing listening socket: 9&lt;br/&gt;
Fri May 27 09:49:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; removing socket file: /tmp/mongodb-27017.sock&lt;br/&gt;
Fri May 27 09:49:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; removing socket file: /tmp/mongodb-28017.sock&lt;br/&gt;
Fri May 27 09:49:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
Fri May 27 09:49:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Fri May 27 09:49:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Fri May 27 09:49:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: lock for final commit...&lt;br/&gt;
Fri May 27 09:49:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: final commit...&lt;br/&gt;
Fri May 27 09:49:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Fri May 27 09:49:14 closeAllFiles() finished&lt;br/&gt;
Fri May 27 09:49:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: journalCleanup...&lt;br/&gt;
Fri May 27 09:49:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; removeJournalFiles&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=668 port=27017 dbpath=/var/lib/mongodb 64-bit&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v1.8.1, pdfile version 4.5&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: a429cd4f535b2499cc4130b06ff7c26f41c00f04&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build sys info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41&lt;br/&gt;
**************&lt;br/&gt;
old lock file: /var/lib/mongodb/mongod.lock.  probably means unclean shutdown,&lt;br/&gt;
but there are no journal files to recover.&lt;br/&gt;
this is likely human error or filesystem corruption.&lt;br/&gt;
found 4 dbs.&lt;br/&gt;
see: &lt;a href=&quot;http://dochub.mongodb.org/core/repair&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://dochub.mongodb.org/core/repair&lt;/a&gt; for more information&lt;br/&gt;
*************&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; exception in initAndListen std::exception: old lock file, terminating&lt;br/&gt;
Fri May 27 11:03:26 dbexit:&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: lock for final commit...&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: final commit...&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Fri May 27 11:03:26 closeAllFiles() finished&lt;br/&gt;
Fri May 27 11:03:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: journalCleanup...&lt;br/&gt;
Fri May 27 11:03:26 dbexit: really exiting now&lt;/p&gt;</description>
                <environment>ubuntu 11.04 64bit running as a vbox guest</environment>
        <key id="17615">SERVER-3162</key>
            <summary>old lock file error even when using journaling</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="9">Done</resolution>
                                        <assignee username="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="pablo">pablo platt</reporter>
                        <labels>
                    </labels>
                <created>Fri, 27 May 2011 20:32:44 +0000</created>
                <updated>Tue, 4 Jun 2013 16:29:51 +0000</updated>
                            <resolved>Fri, 19 Aug 2011 19:56:39 +0000</resolved>
                                    <version>1.8.1</version>
                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="352656" author="joeytwiddle" created="Tue, 4 Jun 2013 16:29:51 +0000"  >&lt;p&gt;FWIW I am getting this with mongodb-server 1:2.0.6-1ubuntu4 on Ubuntu 12.10 running on a 32bit laptop.&lt;/p&gt;

&lt;p&gt;I had run &apos;halt&apos; to shutdown the machine, but a few minutes later I saw shutdown had still not completed.  Then I had to leave, and when I returned the machine had died due to loss of power.&lt;/p&gt;

&lt;p&gt;Tue Jun  4 18:33:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: final commit...&lt;br/&gt;
Tue Jun  4 18:33:37 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Tue Jun  4 18:33:37 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; closeAllFiles() finished&lt;br/&gt;
Tue Jun  4 18:33:37 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; journalCleanup...&lt;br/&gt;
Tue Jun  4 18:33:37 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; removeJournalFiles&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;
			&lt;ul&gt;
				&lt;li&gt;
				&lt;ul&gt;
					&lt;li&gt;SERVER RESTARTED *****&lt;br/&gt;
Tue Jun  4 22:29:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=1206 port=27017 dbpath=/var/lib/mongodb 32-bit host=porridge&lt;br/&gt;
Tue Jun  4 22:29:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;$&lt;br/&gt;
Tue Jun  4 22:29:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data&lt;br/&gt;
Tue Jun  4 22:29:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **       see &lt;a href=&quot;http://blog.mongodb.org/post/137788967/32-bit-limitations&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://blog.mongodb.org/post/137788967/32-bit-limitations&lt;/a&gt;&lt;br/&gt;
Tue Jun  4 22:29:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **       with --journal, the limit is lower&lt;br/&gt;
Tue Jun  4 22:29:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;$&lt;br/&gt;
Tue Jun  4 22:29:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v2.0.6, pdfile version 4.5&lt;/li&gt;
				&lt;/ul&gt;
				&lt;/li&gt;
			&lt;/ul&gt;
			&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I have:&lt;br/&gt;
journal=true&lt;br/&gt;
in my mongodb.conf&lt;/p&gt;

&lt;p&gt;Not too concerned about this happening on my dev machine, but I really want to make sure it doesn&apos;t happen on live!&lt;/p&gt;</comment>
                            <comment id="49592" author="redbeard0531" created="Fri, 19 Aug 2011 19:56:39 +0000"  >&lt;p&gt;The solution is to use the new --shutdown flag in init scripts for 2.0.&lt;/p&gt;

&lt;p&gt;I don&apos;t think we will be backporting to 1.8.x&lt;/p&gt;</comment>
                            <comment id="38518" author="redbeard0531" created="Tue, 21 Jun 2011 16:13:04 +0000"  >&lt;p&gt;I&apos;m actually working on that now: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3307&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-3307&lt;/a&gt;. There should be a fix for this in master today.&lt;/p&gt;</comment>
                            <comment id="38515" author="pablo" created="Tue, 21 Jun 2011 16:08:48 +0000"  >&lt;p&gt;&quot;For a long term fix, I&apos;d suggest modifying your init scripts to block on shutdown until the mongod successfully exits.&quot;&lt;br/&gt;
I&apos;m just using your ubuntu package.&lt;br/&gt;
What about a server power failure?&lt;/p&gt;

&lt;p&gt;I&apos;m not the only one seeing this problem:&lt;br/&gt;
&lt;a href=&quot;http://groups.google.com/group/fameisfame/browse_thread/thread/304c44ad2b6f9a95/857805ebe960b265?lnk=raot&amp;amp;pli=1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/fameisfame/browse_thread/thread/304c44ad2b6f9a95/857805ebe960b265?lnk=raot&amp;amp;pli=1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That&apos;s a serious issue. If there is a power failure mongodb might not start.&lt;br/&gt;
I don&apos;t understand how you and Scott dismiss this issue instead of giving it high priority.&lt;/p&gt;</comment>
                            <comment id="38499" author="redbeard0531" created="Tue, 21 Jun 2011 15:21:17 +0000"  >&lt;p&gt;typically the last two lines in the log file after &quot;removeJournalFiles&quot; look like this:&lt;/p&gt;

&lt;p&gt;Tue Jun 21 11:16:35 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; shutdown: removing fs lock...&lt;br/&gt;
Tue Jun 21 11:16:35 dbexit: really exiting now&lt;/p&gt;

&lt;p&gt;The fact that you don&apos;t have those implies that the mongod was killed before it got a chance to remove the lock file. It looks like you rebooted the server and mongod got the TERM signal, but your shutdown process didn&apos;t wait for it to finish before sending the KILL signal. Judging by where it failed it should be safe to just remove the lock file and continue (if you haven&apos;t already). For a long term fix, I&apos;d suggest modifying your init scripts to block on shutdown until the mongod successfully exits.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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>Tue, 21 Jun 2011 15:21:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 37 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>
                            10 years, 37 weeks, 1 day 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>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>pablo</customfieldvalue>
            <customfieldvalue>joeytwiddle</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroz1b:</customfieldvalue>

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

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

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