<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:56 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-3749] Replication set failed</title>
                <link>https://jira.mongodb.org/browse/SERVER-3749</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I try to setup Mongodb replication&lt;br/&gt;
For this I did &lt;br/&gt;
On master(sd2qvq10vl.saksdirect.com) :&lt;br/&gt;
~~&lt;br/&gt;
master = true&lt;br/&gt;
source = sd2qvq09vl.saksdirect.com  &lt;br/&gt;
~~ &lt;br/&gt;
On slave (sd2qvq09vl.saksdirect.com) :&lt;br/&gt;
~~ &lt;br/&gt;
slave = true&lt;br/&gt;
source = sd2qvq10vl.saksdirect.com&lt;br/&gt;
~~&lt;br/&gt;
After that start of all dbs failed with:&lt;br/&gt;
~~  &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;mongodb@SD2QVQ09VL ~&amp;#93;&lt;/span&gt;$ sudo /etc/init.d/mongod start&lt;br/&gt;
Starting mongod: all output going to: /var/log/mongo/mongod.log&lt;br/&gt;
forked process: 29626&lt;br/&gt;
[  OK  ]&lt;br/&gt;
~~  &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;mongodb@SD2QVQ10VL ~&amp;#93;&lt;/span&gt;$ sudo /etc/init.d/mongod start&lt;br/&gt;
Starting mongod: all output going to: /var/log/mongo/mongod.log&lt;br/&gt;
forked process: 31616&lt;br/&gt;
[  OK  ]&lt;br/&gt;
~~ &lt;br/&gt;
I  commented out all changes in config file  deleted &apos;mongod.lock&apos; file and ran &lt;br/&gt;
~~~ &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;mongodb@SD2QVQ09VL ~&amp;#93;&lt;/span&gt;$ mongod --repair&lt;br/&gt;
Thu Sep  1 14:22:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=29441 port=27017 dbpath=/data/db/ 64-bit &lt;br/&gt;
Thu Sep  1 14:22:11 &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 Sep  1 14:22:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: c206d77e94bc3b65c76681df5a6b605f68a2de05&lt;br/&gt;
Thu Sep  1 14:22:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build sys info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41&lt;br/&gt;
Thu Sep  1 14:22:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; exception in initAndListen std::exception: dbpath (/data/db/) does not exist, terminating&lt;br/&gt;
Thu Sep  1 14:22:11 dbexit: &lt;br/&gt;
Thu Sep  1 14:22:11 &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 Sep  1 14:22:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to flush diaglog...&lt;br/&gt;
Thu Sep  1 14:22:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Thu Sep  1 14:22:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Thu Sep  1 14:22:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Thu Sep  1 14:22:11 closeAllFiles() finished&lt;br/&gt;
Thu Sep  1 14:22:11 dbexit: really exiting now&lt;br/&gt;
~~~  &lt;br/&gt;
And I startup database failed again in log file I found error&lt;br/&gt;
~~~ &lt;br/&gt;
Thu Sep  1 14:22:02 &lt;span class=&quot;error&quot;&gt;&amp;#91;replslave&amp;#93;&lt;/span&gt; repl: AssertionException trying to slave off of a non-master&lt;br/&gt;
repl: sleep 2sec before next pass&lt;br/&gt;
Thu Sep  1 14:22:04 &lt;span class=&quot;error&quot;&gt;&amp;#91;replslave&amp;#93;&lt;/span&gt; repl: from host:sd2qvq10vl.saksdirect.com&lt;br/&gt;
Thu Sep  1 14:22:04 &lt;span class=&quot;error&quot;&gt;&amp;#91;replslave&amp;#93;&lt;/span&gt;   trying to slave off of a non-master&lt;br/&gt;
Assertion: 13344:trying to slave off of a non-master&lt;br/&gt;
0x55f39a 0x6adde7 0x6ae2cd 0x6ae58f 0x6aea4e 0x6af2e5 0x8c1020 0x2b8c2355d73d 0x2b8c23fd84bd &lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x12a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x55f39a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo10ReplSource14sync_pullOpLogERi+0x4087) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6adde7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo10ReplSource4syncERi+0x4cd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6ae2cd&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo9_replMainERSt6vectorIN5boost10shared_ptrINS_10ReplSourceEEESaIS4_EERi+0x1ff) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6ae58f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo8replMainEv+0xce) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6aea4e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo15replSlaveThreadEv+0x275) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6af2e5&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(thread_proxy+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8c1020&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b8c2355d73d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b8c23fd84bd&amp;#93;&lt;/span&gt;&lt;br/&gt;
~~~ &lt;br/&gt;
Can you help me to fix DBs?&lt;br/&gt;
                         Thanks.&lt;/p&gt;</description>
                <environment>Linux 2.6.18-238.12.1.el5 x86_64</environment>
        <key id="21794">SERVER-3749</key>
            <summary>Replication set failed</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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>replication</label>
                    </labels>
                <created>Thu, 1 Sep 2011 19:12:01 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:26 +0000</updated>
                            <resolved>Fri, 2 Sep 2011 14:25:07 +0000</resolved>
                                    <version>1.8.2</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="52233" author="kristina" created="Fri, 2 Sep 2011 14:24:58 +0000"  >&lt;p&gt;Yes, that would do it.  Replication preallocates 5% of your disk space for the replication log.  You can adjust this using &lt;tt&gt;&amp;#45;-oplogSize&lt;/tt&gt;, but it&apos;s generally a good idea to stick with the default. &lt;/p&gt;</comment>
                            <comment id="52220" author="lmikityanskiy" created="Fri, 2 Sep 2011 13:44:24 +0000"  >&lt;p&gt;Kristina,&lt;br/&gt;
I had 400 mb free in /var fs. &lt;br/&gt;
And I did not expected that it is not enough for MongoDB.&lt;br/&gt;
Now I have 1.8gb free and both dbs started successfully.&lt;br/&gt;
                      Leonid M.&lt;/p&gt;</comment>
                            <comment id="52082" author="kristina" created="Thu, 1 Sep 2011 20:06:34 +0000"  >&lt;p&gt;Thanks!  It looks like your out of disk space on the master.  If you look at the logs near the beginning, it tried to allocate the oplog on the master and errors out with:&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;   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;Thu Sep  1 09:57:55 [FileAllocator] FileAllocator: posix_fallocate failed: errno:28 No space left on device falling back&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;Thu Sep  1 09:57:55 [FileAllocator] error failed to allocate new file: /var/lib/mongo/local.2 size: 1073741824 errno:28 No space left on device&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;Thu Sep  1 09:57:55 [initandlisten] Assertion: 12520:new file allocation failure&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;Thu Sep  1 09:57:55 [initandlisten] exception in initAndListen std::exception: new file allocation failure, terminating&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="52077" author="lmikityanskiy" created="Thu, 1 Sep 2011 20:01:14 +0000"  >&lt;p&gt;Kristina,&lt;br/&gt;
I attached log and config files for your &lt;br/&gt;
review. &lt;br/&gt;
         Thnaks.&lt;br/&gt;
           Leonid M. &lt;/p&gt;</comment>
                            <comment id="52064" author="kristina" created="Thu, 1 Sep 2011 19:29:27 +0000"  >&lt;p&gt;Can you send the log from the master?  It looks like it does not think it&apos;s master, are you sure it&apos;s looking at the right config file?&lt;/p&gt;

&lt;p&gt;A couple of other things:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;It looks like the repair did not happen because you did not specify the correct data path for it to repair.&lt;/li&gt;
	&lt;li&gt;You should not use the &quot;source&quot; option on the master.  &quot;source&quot; is for slaves only.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                    <attachments>
                            <attachment id="12943" name="etc_master_mongod.conf.txt" size="1669" author="lmikityanskiy" created="Thu, 1 Sep 2011 19:58:14 +0000"/>
                            <attachment id="12944" name="etc_slave_mongod.conf.txt" size="1668" author="lmikityanskiy" created="Thu, 1 Sep 2011 19:58:34 +0000"/>
                            <attachment id="12945" name="master_mongod.log.gz" size="49507" author="lmikityanskiy" created="Thu, 1 Sep 2011 19:58:51 +0000"/>
                            <attachment id="12946" name="slave_mongod.log.gz" size="75794" author="lmikityanskiy" created="Thu, 1 Sep 2011 20:01:14 +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>Thu, 1 Sep 2011 19:22:12 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 24 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|hroryn:</customfieldvalue>

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

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

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