[SERVER-10239] copydb mongod fails Created: 17/Jul/13 Updated: 10/Dec/14 Resolved: 17/Jul/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 2.2.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Rajesh Sharma | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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 |
||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Steps To Reproduce: | Here is the sequence of command in Mongo database using mogo shell. I am running this on mongo-dev1 server [rsharma@mongo-dev01 data]$ mongod -version replicadev01:PRIMARY> The database is running with following options and I am executing the command on primary(master). The source database on "ny-vmmongo-d01" doesn't have authentication enabled. Copy database command is not working. In log file the following error is showing up. replauthenticate: can't authenticate to master server, user:__system As you can see in the command list, I have already authenticated myself with admin database super user which has write access. Here is few useful output from mongo shells. , { "_id" : 1, "name" : "mongo-dqh01:27017", "health" : 1, "state" : 2, "stateStr" : "SECONDARY", "uptime" : 775559, "optime" : Timestamp(1374070109000, 1), "optimeDate" : ISODate("2013-07-17T14:08:29Z"), "lastHeartbeat" : ISODate("2013-07-17T15:12:59Z"), "pingMs" : 0 } ], replicadev01:PRIMARY> db.system.users.find().pretty() replauthenticate: can't authenticate to master server, user:__system |
||||||||||||
| Participants: | |||||||||||||
| Description |
|
copydatabase command is not working. I am trying to copy database from one server to another. Want to copy database from server : ny-vmmongo-d01 where authentication is not enabled to another mongod instance. Destination server:-mongo-dev01 authentication is enabled in this server) --------------------------------------- [rsharma@mongo-dev01 data]$ mongod -version replicadev01:PRIMARY> The database is running with following options and I am executing the command on primary(master). The source database on "ny-vmmongo-d01" doesn't have authentication enabled. Copy database command is not working. In log file the following error is showing up. replauthenticate: can't authenticate to master server, user:__system As you can see in the command list, I have already authenticated myself with admin database super user which has write access. Here is few useful output from mongo shells. , { "_id" : 1, "name" : "mongo-dqh01:27017", "health" : 1, "state" : 2, "stateStr" : "SECONDARY", "uptime" : 775559, "optime" : Timestamp(1374070109000, 1), "optimeDate" : ISODate("2013-07-17T14:08:29Z"), "lastHeartbeat" : ISODate("2013-07-17T15:12:59Z"), "pingMs" : 0 } ], replicadev01:PRIMARY> db.system.users.find().pretty() replauthenticate: can't authenticate to master server, user:__system |
| Comments |
| Comment by Spencer Brody (Inactive) [ 17/Jul/13 ] |
|
This is a known issue, As a workaround you can use mongodump/mongorestore to move data from one server to another. |