<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:00 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-2719] mongod running as a service on Windows does not restart correctly after a reboot</title>
                <link>https://jira.mongodb.org/browse/SERVER-2719</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Steps to reproduce:&lt;/p&gt;

&lt;p&gt;1. mongod --install --logpath c:\data\logs --logappend&lt;br/&gt;
2. net start MongoDB&lt;br/&gt;
3. at this point mongod is running as a Windows service&lt;br/&gt;
4. reboot&lt;/p&gt;

&lt;p&gt;Upon reboot mongod repeatedly fails to start. If you watch its status using the Windows Services Administrative Tool you can see the status alternating between Starting and Started.&lt;/p&gt;

&lt;p&gt;Each time mongod attempts to start it writes a few lines to the log file, and the attempts to start are happening in such quick succession that the log file is growing at the rate of several MB/minute, so unless action is taken the disk can be filled up.&lt;/p&gt;

&lt;p&gt;To break out of the cycle repeatedly run:&lt;/p&gt;

&lt;p&gt;net stop MongoDB&lt;/p&gt;

&lt;p&gt;The problem is that this command only works when the service is in the Started state, which it is only very briefly before failing. So you have to keep running this command until you get lucky.&lt;/p&gt;

&lt;p&gt;The other piece of information is that upon reboot the mongod.lock file is not empty. It contains one line of text with a number in it.&lt;/p&gt;

&lt;p&gt;The two log files attached are the log file right after the service was started for the first time, and the first 20K of the ever growing log file after reboot.&lt;/p&gt;</description>
                <environment>Windows 7 64-bit with SP1 and all Windows Updates as of 2011-03-07.</environment>
        <key id="15053">SERVER-2719</key>
            <summary>mongod running as a service on Windows does not restart correctly after a reboot</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="tad">Tad Marshall</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Mar 2011 12:50:55 +0000</created>
                <updated>Wed, 8 Feb 2023 14:11:16 +0000</updated>
                            <resolved>Tue, 15 Mar 2011 14:32:40 +0000</resolved>
                                    <version>1.8.0-rc1</version>
                                    <fixVersion>1.8.1</fixVersion>
                    <fixVersion>1.9.0</fixVersion>
                                                        <votes>2</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="460415" author="tjrobinson" created="Fri, 22 Nov 2013 16:53:13 +0000"  >&lt;p&gt;Is this related?&lt;br/&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/20142123/whats-the-safest-way-to-shut-down-mongodb-when-running-as-a-windows-service?noredirect=1#comment30022908_20142123&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/20142123/whats-the-safest-way-to-shut-down-mongodb-when-running-as-a-windows-service?noredirect=1#comment30022908_20142123&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="80169" author="tad" created="Mon, 16 Jan 2012 19:49:13 +0000"  >&lt;p&gt;@Zeng Jie &amp;#8211; you mention version 2.0.2, but your log says 1.8.2.  Some of what I see in the log file matches behavior that was fixed for 2.1.0 (see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2833&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-2833&lt;/a&gt; ) but some fixes are in earlier versions, including the 2.0.2 you mentioned.  The fix for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2833&quot; title=&quot;mongod.exe does not shut down correctly as a Windows service&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2833&quot;&gt;&lt;del&gt;SERVER-2833&lt;/del&gt;&lt;/a&gt; makes sure that we initialize the thread that the service controller gives us so that shutdown doesn&apos;t generate errors, and logs the call from the service controller so that the log file makes clear how and why shutdown was triggered.  It also closes a hole if Windows tries to close our console.  I&apos;d like to leave this ticket marked as Closed until 2.1.0 is ready and gets tested.&lt;/p&gt;</comment>
                            <comment id="50721" author="donnyv@gmail.com" created="Thu, 25 Aug 2011 16:16:28 +0000"  >&lt;p&gt;I&apos;m still seeing this bug also when you stop the service. Doesn&apos;t seem to happen all the time though.&lt;/p&gt;

&lt;p&gt;Log file:&lt;br/&gt;
------------------------------------------------------&lt;br/&gt;
Thu Aug 25 12:15:38 BackgroundJob starting: DataFileSync&lt;br/&gt;
Thu Aug 25 12:15:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=3724 port=27017 dbpath=C:\myiDV_Server\MongoDB\data\db 64-bit &lt;br/&gt;
Thu Aug 25 12:15:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v1.8.3, pdfile version 4.5&lt;br/&gt;
Thu Aug 25 12:15:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: c206d77e94bc3b65c76681df5a6b605f68a2de05&lt;br/&gt;
Thu Aug 25 12:15:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build sys info: windows (6, 1, 7601, 2, &apos;Service Pack 1&apos;) BOOST_LIB_VERSION=1_42&lt;br/&gt;
Thu Aug 25 12:15:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Accessing: local for the first time&lt;br/&gt;
Thu Aug 25 12:15:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; query local.system.namespaces reslen:36 nreturned:0 0ms&lt;br/&gt;
Thu Aug 25 12:15:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; enter repairDatabases (to check pdfile version #)&lt;br/&gt;
Thu Aug 25 12:15:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; done repairDatabases&lt;br/&gt;
Thu Aug 25 12:15:38 BackgroundJob starting: snapshot&lt;br/&gt;
Thu Aug 25 12:15:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; waiting for connections on port 27017&lt;br/&gt;
Thu Aug 25 12:15:38 BackgroundJob starting: ClientCursorMonitor&lt;br/&gt;
Thu Aug 25 12:15:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;websvr&amp;#93;&lt;/span&gt; web admin interface listening on port 28017&lt;br/&gt;
Thu Aug 25 12:15:42 shutdown: going to close listening sockets...&lt;br/&gt;
Thu Aug 25 12:15:42 closing listening socket: 300&lt;br/&gt;
Thu Aug 25 12:15:42 closing listening socket: 304&lt;br/&gt;
Thu Aug 25 12:15:42 shutdown: going to flush diaglog...&lt;br/&gt;
Thu Aug 25 12:15:42 shutdown: going to close sockets...&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;websvr&amp;#93;&lt;/span&gt; Listener: accept() returns -1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;websvr&amp;#93;&lt;/span&gt; select() failure: ret=-1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Thu Aug 25 12:15:42 shutdown: waiting for fs preallocator...&lt;br/&gt;
Thu Aug 25 12:15:42 shutdown: closing all files...&lt;br/&gt;
Thu Aug 25 12:15:42 closeAllFiles() finished&lt;br/&gt;
Thu Aug 25 12:15:42 shutdown: removing fs lock...&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Listener: accept() returns -1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; select() failure: ret=-1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; now exiting&lt;br/&gt;
Thu Aug 25 12:15:42 dbexit: &lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Thu Aug 25 12:15:42 closeAllFiles() finished&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: removing fs lock...&lt;br/&gt;
Thu Aug 25 12:15:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; couldn&apos;t remove fs lock 0&lt;br/&gt;
Thu Aug 25 12:15:42 dbexit: really exiting now&lt;/p&gt;
</comment>
                            <comment id="29669" author="zippy1981" created="Tue, 26 Apr 2011 18:43:22 +0000"  >&lt;p&gt;Why does mongo not attempt to remove the lock file? Doesn&apos;t mongod hold an exclusive lock on the the lock file? &lt;/p&gt;</comment>
                            <comment id="29667" author="rstam" created="Tue, 26 Apr 2011 18:39:38 +0000"  >&lt;p&gt;The fix that was made for this JIRA ticket is limited to ensuring that a clean shutdown of Windows results in a clean shutdown of MongoDB running as a service. An unclean shutdown of Windows or a crash of MongoDB will still leave the lock file in place resulting in this infinite loop on startup.&lt;/p&gt;

&lt;p&gt;The infinite loop can be broken either by running &quot;net stop MongoDB&quot; until it takes effect, or by changing the service properties for MongoDB in the Services control panel to not restart the service on failure.&lt;/p&gt;</comment>
                            <comment id="29663" author="xobb" created="Tue, 26 Apr 2011 18:28:33 +0000"  >&lt;p&gt;I&apos;m still fighting the issue. My Mongo version is 1.8.1&lt;br/&gt;
Git version: a429cd4f535b2499cc4130b06ff7c26f41c00f04&lt;/p&gt;</comment>
                            <comment id="26042" author="auto" created="Wed, 16 Mar 2011 21:47:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;}
&lt;p&gt;Message: Fixed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2719&quot; title=&quot;mongod running as a service on Windows does not restart correctly after a reboot&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2719&quot;&gt;&lt;del&gt;SERVER-2719&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1680&quot; title=&quot;Error during service startup causes server to start over and over and over&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1680&quot;&gt;&lt;del&gt;SERVER-1680&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1434&quot; title=&quot;&amp;quot;Net stop mondodb&amp;quot; returns an error on windows.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1434&quot;&gt;&lt;del&gt;SERVER-1434&lt;/del&gt;&lt;/a&gt; (all had the same underlying cause).&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e4df10c2e034e9cb25e0f8de13b5c5e9b00283a9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e4df10c2e034e9cb25e0f8de13b5c5e9b00283a9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="25913" author="auto" created="Tue, 15 Mar 2011 04:17:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;}
&lt;p&gt;Message: Fixed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2719&quot; title=&quot;mongod running as a service on Windows does not restart correctly after a reboot&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2719&quot;&gt;&lt;del&gt;SERVER-2719&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1680&quot; title=&quot;Error during service startup causes server to start over and over and over&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1680&quot;&gt;&lt;del&gt;SERVER-1680&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1434&quot; title=&quot;&amp;quot;Net stop mondodb&amp;quot; returns an error on windows.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1434&quot;&gt;&lt;del&gt;SERVER-1434&lt;/del&gt;&lt;/a&gt; (all had the same underlying cause).&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6ebf0c03153113927cf28dd5151bdd0cc9a2eead&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6ebf0c03153113927cf28dd5151bdd0cc9a2eead&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="25659" author="testn" created="Thu, 10 Mar 2011 00:00:56 +0000"  >&lt;p&gt;if you try the patch, it should work. It works for me after rebooting&lt;/p&gt;</comment>
                            <comment id="25638" author="eliot" created="Wed, 9 Mar 2011 20:16:47 +0000"  >&lt;p&gt;This does sound like its the root cause.&lt;br/&gt;
Not sure why its acting differently.&lt;/p&gt;

&lt;p&gt;Can you try to fix?&lt;/p&gt;</comment>
                            <comment id="25632" author="cwestin" created="Wed, 9 Mar 2011 19:34:08 +0000"  >&lt;p&gt;In between other things, I fooled with this a bit and looked at a bit of code.&lt;/p&gt;

&lt;p&gt;The service handler is calling db/instance.cpp/shutdownServer().  That function appears to do all the necessaries synchronously, and only after that does the service handler report success to its caller.&lt;/p&gt;

&lt;p&gt;However, there are some discrepancies in the apparent code paths that are taken during the shutdown process.  I tried shutting down in various ways, including explicitly (via net stop MongoDB), and rebooting (where the service manager should do the same thing).  I&apos;ve captured some log fragments (below) which show the results aren&apos;t always the same.  The worse offender is the log fragment from rebooting, which seems to indicate the system just got a ctrl-c and ignored it, rather than shutting down.  More puzzling is that this is what I see, even though I can&apos;t reproduce the problem.  I start up just fine.  But Robert (and these external cases) don&apos;t.  &lt;/p&gt;


&lt;p&gt;---- closing down foreground mongod process with ^C:&lt;br/&gt;
Tue Mar 08 13:25:13 Ctrl-C signal&lt;br/&gt;
Tue Mar 08 13:25:13 got kill or ctrl-c signal, will terminate after current cmd ends&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; now exiting&lt;br/&gt;
Tue Mar 08 13:25:13 dbexit: &lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; closing listening socket: 252&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; closing listening socket: 256&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; shutdown: lock for final commit...&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; shutdown: final commit...&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Tue Mar 08 13:25:13 closeAllFiles() finished&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; journalCleanup...&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; removeJournalFiles&lt;br/&gt;
Tue Mar 08 13:25:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;ctrlCTerminate&amp;#93;&lt;/span&gt; shutdown: removing fs lock...&lt;br/&gt;
Tue Mar 08 13:25:13 dbexit: really exiting now&lt;br/&gt;
Tue Mar 08 13:37:54 dbexit: &lt;br/&gt;
Tue Mar 08 13:37:54 shutdown: going to close listening sockets...&lt;br/&gt;
Tue Mar 08 13:37:54 shutdown: going to flush diaglog...&lt;br/&gt;
Tue Mar 08 13:37:54 shutdown: going to close sockets...&lt;br/&gt;
Tue Mar 08 13:37:54 shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue Mar 08 13:37:54 shutdown: lock for final commit...&lt;br/&gt;
Tue Mar 08 13:37:54 shutdown: final commit...&lt;br/&gt;
Tue Mar 08 13:37:54 shutdown: closing all files...&lt;br/&gt;
Tue Mar 08 13:37:54 closeAllFiles() finished&lt;br/&gt;
Tue Mar 08 13:37:54 dbexit: really exiting now&lt;/p&gt;

&lt;p&gt;---- net stop MongoDB&lt;br/&gt;
Tue Mar 08 13:40:48 shutdown: going to close listening sockets...&lt;br/&gt;
Tue Mar 08 13:40:48 closing listening socket: 304&lt;br/&gt;
Tue Mar 08 13:40:48 closing listening socket: 308&lt;br/&gt;
Tue Mar 08 13:40:48 shutdown: going to flush diaglog...&lt;br/&gt;
Tue Mar 08 13:40:48 shutdown: going to close sockets...&lt;br/&gt;
Tue Mar 08 13:40:48 shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Listener: accept() returns -1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Tue Mar 08 13:40:48 shutdown: lock for final commit...&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;websvr&amp;#93;&lt;/span&gt; Listener: accept() returns -1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; select() failure: ret=-1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; now exiting&lt;br/&gt;
Tue Mar 08 13:40:48 dbexit: &lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;websvr&amp;#93;&lt;/span&gt; select() failure: ret=-1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: lock for final commit...&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: final commit...&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Tue Mar 08 13:40:48 closeAllFiles() finished&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; journalCleanup...&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; removeJournalFiles&lt;br/&gt;
Tue Mar 08 13:40:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: removing fs lock...&lt;br/&gt;
Tue Mar 08 13:40:48 dbexit: really exiting now&lt;/p&gt;

&lt;p&gt;accompanied by&lt;/p&gt;

&lt;p&gt;C:\Windows\system32&amp;gt;net stop MongoDB&lt;br/&gt;
System error 109 has occurred.&lt;/p&gt;

&lt;p&gt;The pipe has been ended.&lt;/p&gt;


&lt;p&gt;C:\Windows\system32&amp;gt;&lt;/p&gt;

&lt;p&gt;---- rebooting machine the machine&lt;br/&gt;
....&lt;br/&gt;
Tue Mar 08 14:06:03 CTRL_SHUTDOWN_EVENT signal (ignored)&lt;br/&gt;
Tue Mar 08 14:06:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 1438310&lt;br/&gt;
Tue Mar 08 14:07:35 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=2008 port=27017 dbpath=c:/cygwin/home/cwestin/sandbox/dbfiles 64-bit &lt;br/&gt;
Tue Mar 08 14:07:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; _DEBUG build (which is slower)&lt;br/&gt;
Tue Mar 08 14:07:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v1.9.0-pre-, pdfile version 4.5&lt;br/&gt;
Tue Mar 08 14:07:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: 93572fc05b83f3635abd1dc2d55aa81&lt;br/&gt;
....&lt;/p&gt;

&lt;p&gt;---- mongod --remove&lt;br/&gt;
Tue Mar 08 16:28:10 shutdown: going to close listening sockets...&lt;br/&gt;
Tue Mar 08 16:28:10 closing listening socket: 300&lt;br/&gt;
Tue Mar 08 16:28:10 closing listening socket: 304&lt;br/&gt;
Tue Mar 08 16:28:10 shutdown: going to flush diaglog...&lt;br/&gt;
Tue Mar 08 16:28:10 shutdown: going to close sockets...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Listener: accept() returns -1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Tue Mar 08 16:28:10 shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue Mar 08 16:28:10 shutdown: lock for final commit...&lt;br/&gt;
Tue Mar 08 16:28:10 shutdown: final commit...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; select() failure: ret=-1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;websvr&amp;#93;&lt;/span&gt; Listener: accept() returns -1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;websvr&amp;#93;&lt;/span&gt; select() failure: ret=-1 errno:10038 An operation was attempted on something that is not a socket.&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;dur&amp;#93;&lt;/span&gt; lsn set 97920&lt;br/&gt;
Tue Mar 08 16:28:10 shutdown: closing all files...&lt;br/&gt;
Tue Mar 08 16:28:10 closeAllFiles() finished&lt;br/&gt;
Tue Mar 08 16:28:10 journalCleanup...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; now exiting&lt;br/&gt;
Tue Mar 08 16:28:10 dbexit: &lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: lock for final commit...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: final commit...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Tue Mar 08 16:28:10 closeAllFiles() finished&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; journalCleanup...&lt;br/&gt;
Tue Mar 08 16:28:10 removeJournalFiles&lt;br/&gt;
Tue Mar 08 16:28:10 shutdown: removing fs lock...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; removeJournalFiles&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: removing fs lock...&lt;br/&gt;
Tue Mar 08 16:28:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; couldn&apos;t remove fs lock 0&lt;br/&gt;
Tue Mar 08 16:28:10 dbexit: really exiting now&lt;/p&gt;

&lt;p&gt;and actually removes the lockfile, doesn&apos;t just truncate it as other things do&lt;/p&gt;
&lt;hr /&gt;</comment>
                            <comment id="25629" author="cwestin" created="Wed, 9 Mar 2011 19:23:50 +0000"  >&lt;p&gt;There&apos;s also this thread:  &lt;a href=&quot;http://thread.gmane.org/gmane.comp.db.mongodb.user/26312&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://thread.gmane.org/gmane.comp.db.mongodb.user/26312&lt;/a&gt; &lt;/p&gt;</comment>
                            <comment id="25596" author="zippy1981" created="Wed, 9 Mar 2011 15:16:04 +0000"  >&lt;p&gt;Sorry I see it&lt;/p&gt;</comment>
                            <comment id="25595" author="zippy1981" created="Wed, 9 Mar 2011 15:14:28 +0000"  >&lt;p&gt;Testo, did you mean to say you added a patch? If so where can I see it?&lt;/p&gt;</comment>
                            <comment id="25592" author="testn" created="Wed, 9 Mar 2011 15:04:14 +0000"  >&lt;p&gt;add patch&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="15280">SERVER-2833</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="11037" name="0001-SERVER-2719-clean-up-the-log-file-when-Windows-shuts.patch" size="1511" author="testn" created="Wed, 9 Mar 2011 15:04:14 +0000"/>
                            <attachment id="11036" name="logs.zip" size="1310" author="robert@mongodb.com" created="Wed, 9 Mar 2011 12:50:55 +0000"/>
                            <attachment id="11760" name="mongo.log" size="4060666" author="xobb" created="Tue, 26 Apr 2011 18:28:33 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 9 Mar 2011 14:22:03 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 12 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="10022"><![CDATA[Windows]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>cwestin</customfieldvalue>
            <customfieldvalue>donnyv@gmail.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>zippy1981</customfieldvalue>
            <customfieldvalue>xobb</customfieldvalue>
            <customfieldvalue>robert@mongodb.com</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
            <customfieldvalue>testn</customfieldvalue>
            <customfieldvalue>tjrobinson</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp45j:</customfieldvalue>

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

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

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