[SERVER-10675] Mongodump Restore Created: 04/Sep/13 Updated: 10/Dec/14 Resolved: 09/Sep/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Siva Balasubramaniam | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
A database dump was taken using version 2.4.5, can it be restored to different version say 2.4.6 using mongorestore? |
| Comments |
| Comment by Siva Balasubramaniam [ 09/Sep/13 ] |
|
HI Dan, We had authentication enabled. I took a mongodump from 2.4.5 and tried to restored on 2.4.6. In 2.4.6 we had to grant admin user with the following roles. "dbAdminAnyDatabase","clusterAdmin","userAdminAnyDatabase", "userAdmin". Role "readWriteAnyDatabase" was missing, which I added after seeing user response. Thanks Siva |
| Comment by Daniel Pasette (Inactive) [ 09/Sep/13 ] |
|
If you know the cause of the error, it would be great if you could leave a note explaining it here so that other users may benefit. |
| Comment by Siva Balasubramaniam [ 09/Sep/13 ] |
|
Hi Dan, |
| Comment by Daniel Pasette (Inactive) [ 09/Sep/13 ] |
|
Can you supply the complete command line arguments you use to start your mongod and mongorestore processes as well as attach the entire log output of mongorestore? |
| Comment by Siva Balasubramaniam [ 04/Sep/13 ] |
|
Hi, Assertion: 13111:field not found, expected type 2 Thanks |
| Comment by Eliot Horowitz (Inactive) [ 04/Sep/13 ] |
|
Yes. mongodump/restore works off raw bson so works will all versions |