<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:59:26 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-42059] Mongo replication sync halfway SocketException: remote: 192.168.168.122:27017 error: 9001 socket exception [RECV_ERROR] server [192.168.168.122:27017]</title>
                <link>https://jira.mongodb.org/browse/SERVER-42059</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I got one mongo v2.4.10 server with 1.7TB data, I am trying to migrate and upgrade the mongo to mongo v.3.0.15 server&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I&apos;ve setup a new mongo v.3.0.15 and configured replication for v3.0.15 to be secondary to sync with v.2.4.10 primary mongo.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The secondary was in STARTUP2 and the sync was almost finish as I can check with the growth of my storage device for the new machine which running mongo v.3.0.15&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;However there were some socket exceptions which caused both of my machine to resyn again from the start, just to ask anything I can configure or setup to prevent the error to happen again because I don&apos;t want to waste another 7 days to fail to sync up 1.7TB again.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Below are some logs from my mongo:&lt;/p&gt;

&lt;p&gt;Primary mongo (v2.4.10):&lt;/p&gt;

&lt;p&gt;```&lt;br/&gt;
Wed Jul 3 10:03:59.196 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn21&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;SEND_ERROR&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;101.0.0.182:32829&amp;#93;&lt;/span&gt;&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Secondary mongo (v.3.0.15)&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;...&lt;br/&gt;
2019-07-03T09:54:29.169+0800 I NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplExecNetThread-0&amp;#93;&lt;/span&gt; Socket recv() timeout 192.168.168.122:27017&lt;br/&gt;
2019-07-03T09:54:29.169+0800 I NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplExecNetThread-0&amp;#93;&lt;/span&gt; SocketException: remote: 192.168.168.122:27017 error: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;RECV_TIMEOUT&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;192.168.168.122:27017&amp;#93;&lt;/span&gt;&lt;br/&gt;
2019-07-03T09:54:29.169+0800 I NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplExecNetThread-0&amp;#93;&lt;/span&gt; DBClientCursor::init call() failed&lt;br/&gt;
2019-07-03T09:54:29.169+0800 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Error in heartbeat request to 192.168.168.122:27017; Location10276 DBClientBase::findN: transport error: 192.168.168.122:27017 ns: admin.$cmd query: { replSetHeartbeat: &quot;ArchiverReplica&quot;, pv: 1, v: 1, from: &quot;x.x.x.x:27017&quot;, fromId: 1, checkEmpty: false }&lt;/p&gt;

&lt;p&gt;2019-07-03T09:54:29.170+0800 W NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplExecNetThread-0&amp;#93;&lt;/span&gt; Failed to connect to 192.168.168.122:27017 after 1 milliseconds, giving up.&lt;br/&gt;
2019-07-03T09:54:29.170+0800 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Error in heartbeat request to 192.168.168.122:27017; Location18915 Failed attempt to connect to 192.168.168.122:27017; couldn&apos;t connect to server 192.168.168.122:27017 (192.168.168.122), connection attempt failed&lt;br/&gt;
...&lt;br/&gt;
2019-07-03T10:07:41.452+0800 W NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplExecNetThread-0&amp;#93;&lt;/span&gt; Failed to connect to 192.168.168.122:27017 after 4995 milliseconds, giving up.&lt;br/&gt;
2019-07-03T10:07:41.452+0800 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Error in heartbeat request to 192.168.168.122:27017; Location18915 Failed attempt to connect to 192.168.168.122:27017; couldn&apos;t connect to server 192.168.168.122:27017 (192.168.168.122), connection attempt failed&lt;br/&gt;
2019-07-03T10:07:43.602+0800 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; Member 192.168.168.122:27017 is now in state PRIMARY&lt;br/&gt;
...&lt;br/&gt;
2019-07-03T10:08:03.845+0800 I NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; Socket recv() errno:104 Connection reset by peer 192.168.168.122:27017&lt;br/&gt;
2019-07-03T10:08:03.845+0800 I NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; SocketException: remote: 192.168.168.122:27017 error: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;RECV_ERROR&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;192.168.168.122:27017&amp;#93;&lt;/span&gt;&lt;br/&gt;
2019-07-03T10:08:03.853+0800 I NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; trying reconnect to 192.168.168.122:27017 (192.168.168.122) failed&lt;br/&gt;
2019-07-03T10:08:03.928+0800 I NETWORK &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; reconnect 192.168.168.122:27017 (192.168.168.122) ok&lt;br/&gt;
2019-07-03T10:08:03.939+0800 E REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; 16465 recv failed while exhausting cursor&lt;br/&gt;
2019-07-03T10:08:03.939+0800 E REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; initial sync attempt failed, 9 attempts remaining&lt;br/&gt;
2019-07-03T10:08:08.939+0800 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; initial sync pending&lt;br/&gt;
2019-07-03T10:08:08.958+0800 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; syncing from: 192.168.168.122:27017&lt;br/&gt;
2019-07-03T10:08:09.204+0800 I REPL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; initial sync drop all databases&lt;br/&gt;
2019-07-03T10:08:09.205+0800 I STORAGE &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; dropAllDatabasesExceptLocal 3&lt;br/&gt;
2019-07-03T10:08:09.221+0800 I JOURNAL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; journalCleanup...&lt;br/&gt;
2019-07-03T10:08:09.221+0800 I JOURNAL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; removeJournalFiles&lt;br/&gt;
2019-07-03T10:08:09.895+0800 I JOURNAL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; journalCleanup...&lt;br/&gt;
2019-07-03T10:08:09.895+0800 I JOURNAL &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; removeJournalFiles&lt;br/&gt;
...&lt;br/&gt;
resyn from the begining .......&lt;/p&gt;

&lt;p&gt;```&lt;/p&gt;</description>
                <environment></environment>
        <key id="833843">SERVER-42059</key>
            <summary>Mongo replication sync halfway SocketException: remote: 192.168.168.122:27017 error: 9001 socket exception [RECV_ERROR] server [192.168.168.122:27017]</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="backlog-server-triage">Backlog - Triage Team</assignee>
                                    <reporter username="aaron.tai">Aaron Tai Wei Han</reporter>
                        <labels>
                    </labels>
                <created>Wed, 3 Jul 2019 06:35:58 +0000</created>
                <updated>Tue, 6 Dec 2022 02:54:57 +0000</updated>
                            <resolved>Wed, 3 Jul 2019 18:10:42 +0000</resolved>
                                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2311523" author="eric.sedor" created="Wed, 3 Jul 2019 18:10:26 +0000"  >&lt;p&gt;Unfortunately we aren&apos;t able to assist with this process here.&lt;/p&gt;

&lt;p&gt;The SERVER project is for bugs and feature suggestions for active versions of the MongoDB server, and our support for MongoDB 3.0 ended in &lt;a href=&quot;https://www.mongodb.com/support-policy&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;February 2018&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For assistance troubleshooting in this case, I encourage you to ask our community by posting on the &lt;a href=&quot;https://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt; or on &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;.&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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25137"><![CDATA[Server Triage]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 3 Jul 2019 18:10:26 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 32 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron.tai</customfieldvalue>
            <customfieldvalue>backlog-server-triage</customfieldvalue>
            <customfieldvalue>eric.sedor@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hvag5b:</customfieldvalue>

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

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

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