<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:22:39 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-10239]  copydb mongod fails</title>
                <link>https://jira.mongodb.org/browse/SERVER-10239</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;copydatabase command is not working. I am trying to copy database from one server to another.&lt;/p&gt;

&lt;p&gt;Want to copy database from server : ny-vmmongo-d01 where authentication is not enabled to another mongod instance.&lt;/p&gt;

&lt;p&gt;Destination server:-mongo-dev01 authentication is enabled in this server)&lt;/p&gt;

&lt;p&gt;---------------------------------------&lt;br/&gt;
Here is the sequence of command in Mongo server using mongo shell. I am running this on mongo-dev1 server where i want to create this new database.&lt;br/&gt;
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;rsharma@mongo-dev01 data&amp;#93;&lt;/span&gt;$ mongod -version&lt;br/&gt;
db version v2.2.1-rc1, pdfile version 4.5&lt;br/&gt;
Wed Jul 17 11:02:17 git version: 9495696aa169fb34a85eafcb58b64d2ca5e74f25&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;rsharma@mongo-dev01 data&amp;#93;&lt;/span&gt;$ mongo -u monadmin -p  XXXXXXXX admin&lt;br/&gt;
MongoDB shell version: 2.2.1-rc1&lt;br/&gt;
connecting to: admin&lt;br/&gt;
replicadev01:PRIMARY&amp;gt; use admin&lt;br/&gt;
switched to db admin&lt;br/&gt;
replicadev01:PRIMARY&amp;gt; db.auth(&apos;monadmin&apos;,&apos;XXXXXXXXXX&apos;)&lt;br/&gt;
1&lt;br/&gt;
replicadev01:PRIMARY&amp;gt; db.copyDatabase( &quot;mongo-dev&quot;, &quot;fdr-dev&quot;, &quot;ny-vmmongo-d01&quot; )&lt;/p&gt;
{ &quot;errmsg&quot; : &quot;&quot;, &quot;ok&quot; : 0 }
&lt;p&gt;replicadev01:PRIMARY&amp;gt;&lt;/p&gt;


&lt;p&gt;The database is running with following options and I am executing the command on primary(master). The source database on &quot;ny-vmmongo-d01&quot; doesn&apos;t have authentication enabled.&lt;br/&gt;
----------------------------------------------------------------------------&lt;br/&gt;
logpath=/var/log/mongo/mongod.log&lt;br/&gt;
logappend=true&lt;br/&gt;
fork = true&lt;br/&gt;
cpu = true&lt;br/&gt;
directoryperdb=true&lt;br/&gt;
dbpath=/data/mongodb&lt;br/&gt;
oplogSize = 31440&lt;br/&gt;
replSet = replicadev01&lt;br/&gt;
journal = true&lt;br/&gt;
auth = true&lt;br/&gt;
keyFile = /var/lib/mongo/key&lt;/p&gt;

&lt;p&gt;Copy database command is not working. In log file the following error is showing up.&lt;/p&gt;

&lt;p&gt; replauthenticate: can&apos;t authenticate to master server, user:__system&lt;/p&gt;

&lt;p&gt;As you can see in the command list, I have already authenticated myself with admin database super user which has write access.&lt;/p&gt;


&lt;p&gt;Here is few useful output from mongo shells.&lt;br/&gt;
------------------------------------------------------------------------&lt;br/&gt;
replicadev01:PRIMARY&amp;gt; rs.status()&lt;br/&gt;
{&lt;br/&gt;
        &quot;set&quot; : &quot;replicadev01&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2013-07-17T15:12:59Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 1,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 0,
                        &quot;name&quot; : &quot;mongo-dev01:27017&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 1,
                        &quot;stateStr&quot; : &quot;PRIMARY&quot;,
                        &quot;uptime&quot; : 775690,
                        &quot;optime&quot; : Timestamp(1374073846000, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2013-07-17T15:10:46Z&quot;),
                        &quot;self&quot; : true
                }
&lt;p&gt;,&lt;/p&gt;
                {
                        &quot;_id&quot; : 1,
                        &quot;name&quot; : &quot;mongo-dqh01:27017&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 2,
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,
                        &quot;uptime&quot; : 775559,
                        &quot;optime&quot; : Timestamp(1374070109000, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2013-07-17T14:08:29Z&quot;),
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2013-07-17T15:12:59Z&quot;),
                        &quot;pingMs&quot; : 0
                }
&lt;p&gt;        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;replicadev01:PRIMARY&amp;gt; db.system.users.find().pretty()&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;50047ae6933b4c13dbcf5da3&quot;),&lt;br/&gt;
        &quot;user&quot; : &quot;monadmin&quot;,&lt;br/&gt;
        &quot;readOnly&quot; : false,&lt;br/&gt;
        &quot;pwd&quot; : &quot;714ab78bfee64a37df05f0d0885a83c3&quot;&lt;br/&gt;
}&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;517688344b63850b58594aa4&quot;),&lt;br/&gt;
        &quot;user&quot; : &quot;dtsai&quot;,&lt;br/&gt;
        &quot;readOnly&quot; : false,&lt;br/&gt;
        &quot;pwd&quot; : &quot;82863cecc9aee8f5789ec31171aec0e6&quot;&lt;br/&gt;
}&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;51c3552e8672a51ea8e53867&quot;),&lt;br/&gt;
        &quot;user&quot; : &quot;reporter&quot;,&lt;br/&gt;
        &quot;readOnly&quot; : true,&lt;br/&gt;
        &quot;pwd&quot; : &quot;ab018b5a20f2387f4bf4fbab440d0d5d&quot;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;replauthenticate: can&apos;t authenticate to master server, user:__system&lt;/p&gt;</description>
                <environment>LSB Version:    :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch&lt;br/&gt;
Distributor ID: CentOS&lt;br/&gt;
Description:    CentOS release 5.8 (Final)&lt;br/&gt;
Release:        5.8&lt;br/&gt;
Codename:       Final&lt;br/&gt;
</environment>
        <key id="82623">SERVER-10239</key>
            <summary> copydb mongod fails</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="-1">Unassigned</assignee>
                                    <reporter username="rajeshks117">Rajesh Sharma</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Jul 2013 15:32:21 +0000</created>
                <updated>Wed, 10 Dec 2014 23:05:34 +0000</updated>
                            <resolved>Wed, 17 Jul 2013 15:46:05 +0000</resolved>
                                    <version>2.2.1</version>
                                                    <component>Admin</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="383215" author="spencer" created="Wed, 17 Jul 2013 15:45:56 +0000"  >&lt;p&gt;This is a known issue, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8280&quot; title=&quot;copydb command always requires credentials if the destination mongod is running with authentication, even if the source is running without it&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8280&quot;&gt;&lt;del&gt;SERVER-8280&lt;/del&gt;&lt;/a&gt;, which will be fixed in 2.6.&lt;/p&gt;

&lt;p&gt;As a workaround you can use mongodump/mongorestore to move data from one server to another.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="62923">SERVER-8280</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 17 Jul 2013 15:45:56 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 31 weeks 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>rajeshks117</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmms7:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>75512</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Here is the sequence of command in Mongo database using mogo shell. I am running this on mongo-dev1 server&lt;br/&gt;
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;rsharma@mongo-dev01 data&amp;#93;&lt;/span&gt;$ mongod -version&lt;br/&gt;
db version v2.2.1-rc1, pdfile version 4.5&lt;br/&gt;
Wed Jul 17 11:02:17 git version: 9495696aa169fb34a85eafcb58b64d2ca5e74f25&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;rsharma@mongo-dev01 data&amp;#93;&lt;/span&gt;$ mongo -u monadmin -p  XXXXXXXX admin&lt;br/&gt;
MongoDB shell version: 2.2.1-rc1&lt;br/&gt;
connecting to: admin&lt;br/&gt;
replicadev01:PRIMARY&amp;gt; use admin&lt;br/&gt;
switched to db admin&lt;br/&gt;
replicadev01:PRIMARY&amp;gt; db.auth(&apos;monadmin&apos;,&apos;XXXXXXXXXX&apos;)&lt;br/&gt;
1&lt;br/&gt;
replicadev01:PRIMARY&amp;gt; db.copyDatabase( &quot;mongo-dev&quot;, &quot;fdr-dev&quot;, &quot;ny-vmmongo-d01&quot; )&lt;/p&gt;
{ &quot;errmsg&quot; : &quot;&quot;, &quot;ok&quot; : 0 }
&lt;p&gt;replicadev01:PRIMARY&amp;gt;&lt;/p&gt;


&lt;p&gt;The database is running with following options and I am executing the command on primary(master). The source database on &quot;ny-vmmongo-d01&quot; doesn&apos;t have authentication enabled.&lt;br/&gt;
----------------------------------------------------------------------------&lt;br/&gt;
logpath=/var/log/mongo/mongod.log&lt;br/&gt;
logappend=true&lt;br/&gt;
fork = true&lt;br/&gt;
cpu = true&lt;br/&gt;
directoryperdb=true&lt;br/&gt;
dbpath=/data/mongodb&lt;br/&gt;
oplogSize = 31440&lt;br/&gt;
replSet = replicadev01&lt;br/&gt;
journal = true&lt;br/&gt;
auth = true&lt;br/&gt;
keyFile = /var/lib/mongo/key&lt;/p&gt;

&lt;p&gt;Copy database command is not working. In log file the following error is showing up.&lt;/p&gt;

&lt;p&gt; replauthenticate: can&apos;t authenticate to master server, user:__system&lt;/p&gt;

&lt;p&gt;As you can see in the command list, I have already authenticated myself with admin database super user which has write access.&lt;/p&gt;


&lt;p&gt;Here is few useful output from mongo shells.&lt;br/&gt;
------------------------------------------------------------------------&lt;br/&gt;
replicadev01:PRIMARY&amp;gt; rs.status()&lt;br/&gt;
{&lt;br/&gt;
        &quot;set&quot; : &quot;replicadev01&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2013-07-17T15:12:59Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 1,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 0,
                        &quot;name&quot; : &quot;mongo-dev01:27017&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 1,
                        &quot;stateStr&quot; : &quot;PRIMARY&quot;,
                        &quot;uptime&quot; : 775690,
                        &quot;optime&quot; : Timestamp(1374073846000, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2013-07-17T15:10:46Z&quot;),
                        &quot;self&quot; : true
                }
&lt;p&gt;,&lt;/p&gt;
                {
                        &quot;_id&quot; : 1,
                        &quot;name&quot; : &quot;mongo-dqh01:27017&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 2,
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,
                        &quot;uptime&quot; : 775559,
                        &quot;optime&quot; : Timestamp(1374070109000, 1),
                        &quot;optimeDate&quot; : ISODate(&quot;2013-07-17T14:08:29Z&quot;),
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2013-07-17T15:12:59Z&quot;),
                        &quot;pingMs&quot; : 0
                }
&lt;p&gt;        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;replicadev01:PRIMARY&amp;gt; db.system.users.find().pretty()&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;50047ae6933b4c13dbcf5da3&quot;),&lt;br/&gt;
        &quot;user&quot; : &quot;monadmin&quot;,&lt;br/&gt;
        &quot;readOnly&quot; : false,&lt;br/&gt;
        &quot;pwd&quot; : &quot;714ab78bfee64a37df05f0d0885a83c3&quot;&lt;br/&gt;
}&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;517688344b63850b58594aa4&quot;),&lt;br/&gt;
        &quot;user&quot; : &quot;dtsai&quot;,&lt;br/&gt;
        &quot;readOnly&quot; : false,&lt;br/&gt;
        &quot;pwd&quot; : &quot;82863cecc9aee8f5789ec31171aec0e6&quot;&lt;br/&gt;
}&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;51c3552e8672a51ea8e53867&quot;),&lt;br/&gt;
        &quot;user&quot; : &quot;reporter&quot;,&lt;br/&gt;
        &quot;readOnly&quot; : true,&lt;br/&gt;
        &quot;pwd&quot; : &quot;ab018b5a20f2387f4bf4fbab440d0d5d&quot;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;replauthenticate: can&apos;t authenticate to master server, user:__system&lt;/p&gt;</customfieldvalue>

                        </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|hspenj:</customfieldvalue>

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