<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:55 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-4418]  rs.initiate(); failed </title>
                <link>https://jira.mongodb.org/browse/SERVER-4418</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;init step failed to run. &lt;/p&gt;

&lt;p&gt;cat /etc/mongod.conf &lt;br/&gt;
~~ &lt;br/&gt;
...&lt;br/&gt;
replSet = PRODrs&lt;br/&gt;
~~ &lt;br/&gt;
~~ &lt;br/&gt;
&amp;gt; rs.status();&lt;br/&gt;
{&lt;br/&gt;
        &quot;startupStatus&quot; : 3,&lt;br/&gt;
        &quot;info&quot; : &quot;run rs.initiate(...) if not yet done for the set&quot;,&lt;br/&gt;
        &quot;errmsg&quot; : &quot;can&apos;t get local.system.replset config from self or any seed (EMPTYCONFIG)&quot;,&lt;br/&gt;
        &quot;ok&quot; : 0&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; rs.initiate();&lt;br/&gt;
{&lt;br/&gt;
        &quot;info2&quot; : &quot;no configuration explicitly specified &amp;#8211; making one&quot;,&lt;br/&gt;
        &quot;me&quot; : &quot;sd1pxx06lx.sakdirect.com:27017&quot;,&lt;br/&gt;
        &quot;errmsg&quot; : &quot;couldn&apos;t initiate : can&apos;t find self in the replset config&quot;,&lt;br/&gt;
        &quot;ok&quot; : 0&lt;br/&gt;
}&lt;br/&gt;
~~ &lt;/p&gt;</description>
                <environment>Linux 2.6.18-274.3.1.el5 RH5 x86_64</environment>
        <key id="25897">SERVER-4418</key>
            <summary> rs.initiate(); failed </summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="kristina">Kristina Chodorow</assignee>
                                    <reporter username="lmikityanskiy">Leonid Mikityanskiy</reporter>
                        <labels>
                            <label>replicaset</label>
                    </labels>
                <created>Fri, 2 Dec 2011 14:55:39 +0000</created>
                <updated>Mon, 12 May 2014 23:02:04 +0000</updated>
                            <resolved>Fri, 2 Dec 2011 17:34:09 +0000</resolved>
                                    <version>2.0.1</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="70470" author="kristina" created="Fri, 2 Dec 2011 17:34:10 +0000"  >&lt;p&gt;No problem!&lt;/p&gt;</comment>
                            <comment id="70460" author="lmikityanskiy" created="Fri, 2 Dec 2011 17:14:54 +0000"  >&lt;p&gt;Kristina,&lt;br/&gt;
it works.&lt;br/&gt;
~~~  &lt;br/&gt;
PRIMARY&amp;gt; &amp;gt; rs.status();&lt;br/&gt;
{&lt;br/&gt;
        &quot;set&quot; : &quot;PRODrs&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2011-12-02T17:06:52Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 1,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 0,&lt;br/&gt;
                        &quot;name&quot; : &quot;sd1pxx06lx:27017&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 1,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;PRIMARY&quot;,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1322845524000,
                                &quot;i&quot; : 1
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2011-12-02T17:05:24Z&quot;),&lt;br/&gt;
                        &quot;self&quot; : true&lt;br/&gt;
                },&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 1,&lt;br/&gt;
                        &quot;name&quot; : &quot;sd1pxx05lx:27017&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 3,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;RECOVERING&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 66,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 0,
                                &quot;i&quot; : 0
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;1970-01-01T00:00:00Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2011-12-02T17:06:52Z&quot;),&lt;br/&gt;
                        &quot;pingMs&quot; : 0&lt;br/&gt;
                },&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 2,&lt;br/&gt;
                        &quot;name&quot; : &quot;sd1pxx04lx:27017&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 3,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;RECOVERING&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 78,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 0,
                                &quot;i&quot; : 0
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;1970-01-01T00:00:00Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2011-12-02T17:06:52Z&quot;),&lt;br/&gt;
                        &quot;pingMs&quot; : 0&lt;br/&gt;
                }&lt;br/&gt;
        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
PRIMARY&amp;gt; db.isMaster();&lt;br/&gt;
{&lt;br/&gt;
        &quot;setName&quot; : &quot;PRODrs&quot;,&lt;br/&gt;
        &quot;ismaster&quot; : true,&lt;br/&gt;
        &quot;secondary&quot; : false,&lt;br/&gt;
        &quot;hosts&quot; : [&lt;br/&gt;
                &quot;sd1pxx06lx:27017&quot;,&lt;br/&gt;
                &quot;sd1pxx04lx:27017&quot;,&lt;br/&gt;
                &quot;sd1pxx05lx:27017&quot;&lt;br/&gt;
        ],&lt;br/&gt;
        &quot;primary&quot; : &quot;sd1pxx06lx:27017&quot;,&lt;br/&gt;
        &quot;me&quot; : &quot;sd1pxx06lx:27017&quot;,&lt;br/&gt;
        &quot;maxBsonObjectSize&quot; : 16777216,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
PRIMARY&amp;gt;&lt;br/&gt;
~~~   &lt;br/&gt;
               Thanks for you help.&lt;br/&gt;
                           Leonid M.&lt;/p&gt;</comment>
                            <comment id="70454" author="kristina" created="Fri, 2 Dec 2011 16:55:03 +0000"  >&lt;p&gt;Put each one in the list:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; rs.initiate({_id: &quot;PRODrs&quot;, members: [{_id: 0, host: &quot;sd1pxx05lx:27017&quot; }, {_id: 1, host: &quot;sd1pxx04lx:27017&quot;}]})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="70453" author="lmikityanskiy" created="Fri, 2 Dec 2011 16:50:48 +0000"  >&lt;p&gt;Kristina,&lt;br/&gt;
If I have more then one server to be a port of the replica set &lt;br/&gt;
(sd1pxx05lx ,sd1pxx04lx) &lt;br/&gt;
How rs.initiate(....) sould look like? &lt;br/&gt;
               Thanks for you help.&lt;br/&gt;
                           Leonid M.&lt;/p&gt;</comment>
                            <comment id="70447" author="kristina" created="Fri, 2 Dec 2011 16:35:00 +0000"  >&lt;p&gt;Running &lt;tt&gt;rs.initiate()&lt;/tt&gt; with no parameters attempts to auto-detect the hostname.  It detected that your hostname was sd1pxx06lx.sakdirect.com, which it could not resolve (from the log: &lt;tt&gt;getaddrinfo(&quot;sd1pxx06lx.sakdirect.com&quot;) failed: Name or service not known&lt;/tt&gt;).  I&apos;d suggest passing &lt;tt&gt;rs.initiate()&lt;/tt&gt; a config with the hostname you want to use, e.g.,&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; rs.initiate({ _id: &quot;PRODrs&quot;, members: [ { _id: 0, host: &quot;something.resolvable:27017&quot; } ] })&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="135259">SERVER-13858</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="14008" name="init_failed.txt" size="796" author="lmikityanskiy" created="Fri, 2 Dec 2011 14:55:39 +0000"/>
                            <attachment id="14007" name="mongod.conf" size="1765" author="lmikityanskiy" created="Fri, 2 Dec 2011 14:55:39 +0000"/>
                            <attachment id="14006" name="mongod.log" size="813427" author="lmikityanskiy" created="Fri, 2 Dec 2011 14:55:39 +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>Fri, 2 Dec 2011 16:35:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 11 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, 11 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>lmikityanskiy</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrok2n:</customfieldvalue>

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

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

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