<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:36 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-1637] Mongodb will never starts listening</title>
                <link>https://jira.mongodb.org/browse/SERVER-1637</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;On a first run on a server, mongodb never starts listening on its TCP port. It&apos;s likely due to the something related to the initialisation tasks because at the second runs, it works ok.&lt;/p&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;16:58&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;testing&amp;#93;&lt;/span&gt; root@f01:/etc/sv#  chpst -u nobody /opt/mongodb/bin/mongod --shardsvr --replSet pink-alpha/f01:27103,w01:27103 --dbpath /md0/mongodb-shard-4-pink-alpha --port 27103 --nocursors&lt;br/&gt;
Wed Aug 18 16:59:33 MongoDB starting : pid=26069 port=27103 dbpath=/md0/mongodb-shard-4-pink-alpha 64-bit &lt;br/&gt;
Wed Aug 18 16:59:33 db version v1.6.1, pdfile version 4.5&lt;br/&gt;
Wed Aug 18 16:59:33 git version: nogitversion&lt;br/&gt;
Wed Aug 18 16:59:33 sys info: Linux f01 2.6.31-302-ec2 #7-Ubuntu SMP Tue Oct 13 19:55:22 UTC 2009 x86_64 BOOST_LIB_VERSION=1_38&lt;br/&gt;
Wed Aug 18 16:59:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; waiting for connections on port 27103&lt;br/&gt;
Wed Aug 18 16:59:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ******&lt;br/&gt;
Wed Aug 18 16:59:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; creating replication oplog of size: 1540MB... (use --oplogSize to change)&lt;br/&gt;
Wed Aug 18 16:59:33 allocating new datafile /md0/mongodb-shard-4-pink-alpha/local.ns, filling with zeroes...&lt;br/&gt;
Wed Aug 18 16:59:33 done allocating datafile /md0/mongodb-shard-4-pink-alpha/local.ns, size: 16MB,  took 0.038 secs&lt;br/&gt;
Wed Aug 18 16:59:33 allocating new datafile /md0/mongodb-shard-4-pink-alpha/local.0, filling with zeroes...&lt;br/&gt;
Wed Aug 18 16:59:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 16:59:33 done allocating datafile /md0/mongodb-shard-4-pink-alpha/local.0, size: 64MB,  took 0.193 secs&lt;br/&gt;
Wed Aug 18 16:59:33 allocating new datafile /md0/mongodb-shard-4-pink-alpha/local.1, filling with zeroes...&lt;br/&gt;
Wed Aug 18 16:59:34 done allocating datafile /md0/mongodb-shard-4-pink-alpha/local.1, size: 128MB,  took 0.393 secs&lt;br/&gt;
Wed Aug 18 16:59:34 allocating new datafile /md0/mongodb-shard-4-pink-alpha/local.2, filling with zeroes...&lt;br/&gt;
Wed Aug 18 16:59:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 16:59:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:00:03 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:00:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:00:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:00:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:00:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:00:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:01:03 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:01:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:01:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:01:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:01:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:01:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:02:03 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:02:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:02:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:02:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:02:39 done allocating datafile /md0/mongodb-shard-4-pink-alpha/local.2, size: 2047MB,  took 185.032 secs&lt;br/&gt;
Wed Aug 18 17:02:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:02:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:03:03 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;/p&gt;


&lt;p&gt;At the same time:&lt;/p&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;17:03&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;testing&amp;#93;&lt;/span&gt; root@f01:~# mongo --port 27103&lt;br/&gt;
MongoDB shell version: 1.6.1&lt;br/&gt;
connecting to: 127.0.0.1:27103/test&lt;br/&gt;
Wed Aug 18 17:04:32 Error: couldn&apos;t connect to server 127.0.0.1:27103} (anon):1139&lt;br/&gt;
exception: connect failed&lt;/p&gt;


&lt;p&gt;Also, when in this state, the daemon cannot be killed quickly and takes some time to shutdown:&lt;/p&gt;

&lt;p&gt;^CWed Aug 18 17:04:43 got kill or ctrl c or hup signal 2 (Interrupt), will terminate after current cmd ends&lt;br/&gt;
Wed Aug 18 17:04:44 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:04:54 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet can&apos;t get local.system.replset config from self or any seed (yet)&lt;br/&gt;
Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ******&lt;br/&gt;
Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;websvr&amp;#93;&lt;/span&gt; web admin interface listening on port 28103&lt;br/&gt;
Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; now exiting&lt;br/&gt;
Wed Aug 18 17:04:59  dbexit: &lt;/p&gt;

&lt;p&gt;Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; 	 shutdown: going to close listening sockets...&lt;br/&gt;
Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; 	 going to close listening socket: 10&lt;br/&gt;
Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; 	 going to close listening socket: 11&lt;br/&gt;
Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; 	 shutdown: going to flush oplog...&lt;br/&gt;
Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; 	 shutdown: going to close sockets...&lt;br/&gt;
Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; 	 shutdown: waiting for fs preallocator...&lt;br/&gt;
Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; 	 shutdown: closing all files...&lt;br/&gt;
Wed Aug 18 17:04:59      closeAllFiles() finished&lt;/p&gt;

&lt;p&gt;Wed Aug 18 17:04:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; 	 shutdown: removing fs lock...&lt;br/&gt;
Wed Aug 18 17:04:59  dbexit: really exiting now&lt;/p&gt;

&lt;p&gt;Finally, note that when the control-C happens while it&apos;s still filling with zeroes, mongo might never stops, unless a KILL -9 is sent.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="12824">SERVER-1637</key>
            <summary>Mongodb will never starts listening</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="-1">Unassigned</assignee>
                                    <reporter username="octplane">Pierre Baillet</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Aug 2010 17:09:58 +0000</created>
                <updated>Fri, 30 Mar 2012 14:26:58 +0000</updated>
                            <resolved>Wed, 18 Aug 2010 17:20:19 +0000</resolved>
                                    <version>1.6.1</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="26212" author="octplane" created="Fri, 18 Mar 2011 11:59:03 +0000"  >&lt;p&gt;Indeed using XFS fixes the issue and mongo starts up much much faster.&lt;/p&gt;</comment>
                            <comment id="17009" author="eliot" created="Wed, 18 Aug 2010 17:20:19 +0000"  >&lt;p&gt;please comment if you still see the problem&lt;/p&gt;</comment>
                            <comment id="17008" author="eliot" created="Wed, 18 Aug 2010 17:20:02 +0000"  >&lt;p&gt;I just don&apos;t think you waited long enough...&lt;br/&gt;
It takes a few minutes to allocate the oplog&lt;br/&gt;
You can set the oplog smaller, or use a better filesystem (ext4 or xfs)&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 18 Aug 2010 17:20:02 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 48 weeks, 5 days 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>eliot</customfieldvalue>
            <customfieldvalue>octplane</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrph33:</customfieldvalue>

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

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

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