<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:17 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-2524] mongod crashes when rs.initiate() called without arguments</title>
                <link>https://jira.mongodb.org/browse/SERVER-2524</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;monogd dies when issuing &apos;rs.initiate()&apos; from shell. Would have expected an error message but not death.&lt;/p&gt;

&lt;p&gt;./bin/mongod --replSet sample --port 23001 --dbpath /data --auth --keyFile /data/replicaPassphrase.txt --oplogSize=200 --smallfiles --rest --fork --logpath /data/log/sample.log&lt;/p&gt;

&lt;p&gt;./bin/mongo --port 23001&lt;br/&gt;
MongoDB shell version: 1.7.5&lt;br/&gt;
connecting to: 127.0.0.1:23001/test&lt;br/&gt;
&amp;gt; rs.initiate();&lt;br/&gt;
Thu Feb 10 10:15:53 DBClientCursor::init call() failed&lt;br/&gt;
Thu Feb 10 10:15:53 query failed : admin.$cmd &lt;/p&gt;
{ replSetInitiate: undefined }
&lt;p&gt; to: 127.0.0.1:23001&lt;br/&gt;
Thu Feb 10 10:15:53 Error: error doing query: failed shell/collection.js:150&lt;br/&gt;
Thu Feb 10 10:15:53 trying reconnect to 127.0.0.1:23001&lt;br/&gt;
Thu Feb 10 10:15:53 reconnect 127.0.0.1:23001 failed couldn&apos;t connect to server 127.0.0.1:23001&lt;/p&gt;

&lt;p&gt;From the log file:&lt;/p&gt;

&lt;p&gt;Thu Feb 10 10:15:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=30903 port=23001 dbpath=/data/nz1-e 32-bit &lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;NOTE: This is a development version (1.7.5) of MongoDB.&lt;/li&gt;
		&lt;li&gt;Not recommended for production.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data&lt;/li&gt;
		&lt;li&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;/li&gt;
		&lt;li&gt;with --dur, the limit is lower&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thu Feb 10 10:15:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v1.7.5, pdfile version 4.5&lt;br/&gt;
Thu Feb 10 10:15:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: 7ccac7109dccc0384b761f6b02b9788342c5eabb&lt;br/&gt;
Thu Feb 10 10:15:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; sys info: Darwin broadway.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_40&lt;br/&gt;
Thu Feb 10 10:15:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; waiting for connections on port 23001&lt;br/&gt;
Thu Feb 10 10:15:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;websvr&amp;#93;&lt;/span&gt; web admin interface listening on port 24001&lt;br/&gt;
Thu Feb 10 10:15:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 127.0.0.1:50457 #1&lt;br/&gt;
Thu Feb 10 10:15:47 &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 (EMPTYCONFIG)&lt;br/&gt;
Thu Feb 10 10:15:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;startReplSets&amp;#93;&lt;/span&gt; replSet info you may need to run replSetInitiate &amp;#8211; rs.initiate() in the shell &amp;#8211; if that is not already done&lt;br/&gt;
Thu Feb 10 10:15:50 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 127.0.0.1:50458 #2&lt;br/&gt;
Thu Feb 10 10:15:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; replSet replSetInitiate admin command received from client&lt;br/&gt;
Thu Feb 10 10:15:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; note: no users configured in admin.system.users, allowing localhost access&lt;br/&gt;
Thu Feb 10 10:15:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; replSet info initiate : no configuration specified.  Using a default configuration for the set&lt;br/&gt;
Thu Feb 10 10:15:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; replSet created this configuration for initiation : { _id: &quot;sample&quot;, members: [ &lt;/p&gt;
{ _id: 0, host: &quot;blah.local:23001&quot; }
&lt;p&gt; ] }&lt;br/&gt;
Thu Feb 10 10:15:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; replSet replSetInitiate config object parses ok, 1 members specified&lt;br/&gt;
Thu Feb 10 10:15:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 10.211.55.2:50459 #3&lt;br/&gt;
Thu Feb 10 10:15:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; replSet replSetInitiate all members seem up&lt;br/&gt;
Thu Feb 10 10:15:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; ******&lt;br/&gt;
Thu Feb 10 10:15:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; creating replication oplog of size: 200MB...&lt;br/&gt;
Thu Feb 10 10:15:53 Got signal: 6 (Abort trap).&lt;/p&gt;

&lt;p&gt;Thu Feb 10 10:15:53 Backtrace:&lt;br/&gt;
0x47008c 0x9700e46b 0xffffffff 0x46a43b 0x47108b 0x47187a 0x47350b 0x2176 &lt;br/&gt;
 0   mongod                              0x0047008c _ZN5mongo10abruptQuitEi + 396&lt;br/&gt;
 1   libSystem.B.dylib                   0x9700e46b _sigtramp + 43&lt;br/&gt;
 2   ???                                 0xffffffff 0x0 + 4294967295&lt;br/&gt;
 3   mongod                              0x0046a43b _ZN5mongo6listenEi + 219&lt;br/&gt;
 4   mongod                              0x0047108b _ZN5mongo14_initAndListenEiPKc + 2171&lt;br/&gt;
 5   mongod                              0x0047187a _ZN5mongo13initAndListenEiPKc + 42&lt;br/&gt;
 6   mongod                              0x0047350b main + 4939&lt;br/&gt;
 7   mongod                              0x00002176 start + 54&lt;/p&gt;

&lt;p&gt;Thu Feb 10 10:15:53 dbexit: &lt;br/&gt;
Thu Feb 10 10:15:53 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;/p&gt;

&lt;p&gt;This is on OS X 10.6.6, 32bit binary. Haven&apos;t tried on other environments.&lt;/p&gt;</description>
                <environment>OS X 10.6.6, 32bit prebuilt server from website</environment>
        <key id="14633">SERVER-2524</key>
            <summary>mongod crashes when rs.initiate() called without arguments</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="kristina">Kristina Chodorow</assignee>
                                    <reporter username="mikec">Mike Copley</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Feb 2011 10:20:50 +0000</created>
                <updated>Fri, 30 Mar 2012 14:24:26 +0000</updated>
                            <resolved>Wed, 16 Feb 2011 22:22:16 +0000</resolved>
                                    <version>1.7.5</version>
                                                    <component>Replication</component>
                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="24059" author="eliot" created="Wed, 16 Feb 2011 22:22:16 +0000"  >&lt;p&gt;See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2514&quot; title=&quot;MongoD started with --fork crashes when initiating a replica set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2514&quot;&gt;&lt;del&gt;SERVER-2514&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="24058" author="mikec" created="Wed, 16 Feb 2011 22:20:01 +0000"  >&lt;p&gt;You can close this as being a dupe of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2514&quot; title=&quot;MongoD started with --fork crashes when initiating a replica set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2514&quot;&gt;&lt;del&gt;SERVER-2514&lt;/del&gt;&lt;/a&gt; which was fixed in 1.7.6&lt;/p&gt;</comment>
                            <comment id="23563" author="mikec" created="Thu, 10 Feb 2011 11:59:18 +0000"  >&lt;p&gt;Tested on 1.7.5 for Linux i686, could not reproduce. Replica came up fine.&lt;br/&gt;
Tested on nightly (mongodb-osx-i386-2011-02-03) on OS X 10.6.6, still crashes. So looks like just OS X problem.&lt;/p&gt;</comment>
                            <comment id="23560" author="mikec" created="Thu, 10 Feb 2011 10:50:30 +0000"  >&lt;p&gt;runBug creates 3 mongod instances, assumes data directories are in /tmp/mongod-test/sample-&lt;span class=&quot;error&quot;&gt;&amp;#91;a,b,c&amp;#93;&lt;/span&gt;/&lt;br/&gt;
Run from the root level of the mongod installation directory (needs ./bin/mongod)&lt;/p&gt;</comment>
                            <comment id="23559" author="mikec" created="Thu, 10 Feb 2011 10:48:50 +0000"  >&lt;p&gt;I&apos;m attaching a script that can reproduce this - it doesn&apos;t matter what is passed to rs.initiate(), it always crashes.&lt;/p&gt;

&lt;p&gt;The script creates 3 instances (ports 23001, 23002, 23003) and tries to establish a replica set between then. The rs.initiate(cfg) crashes.&lt;/p&gt;

&lt;p&gt;Usage:&lt;br/&gt;
./runBug.sh&lt;/p&gt;

&lt;p&gt;After running it will only have 2 instances running (23002, 23003) as 23001 (sample-a) has crashed. To re-run test, first kill the left over mongod instances.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10804" name="runBug.sh" size="649" author="mikec" created="Thu, 10 Feb 2011 10:50:30 +0000"/>
                            <attachment id="10805" name="test.js" size="301" author="mikec" created="Thu, 10 Feb 2011 10:50:30 +0000"/>
                    </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>Wed, 16 Feb 2011 22:22:16 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 1 week 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>
                            13 years, 1 week 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="10021"><![CDATA[OS X]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>mikec</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp6jb:</customfieldvalue>

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

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

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