I am trying to dump a database from another server (this works fine) and then restore it to the new server (this does not work fine).
First I run:
mongodump --host -d
This creates a dump/db
folder that contains all the bson documents.
Then in the dump folder, I run:
mongorestore -d dbname db
This works and repeats through the files, but I get this error on dbname.system.users
Wed May 23 02:08:05 { key: { _id: 1 }, ns: "dbname.system.users", name: "_id_" } Error creating index dbname.system.usersassertion: 13111 field not found, expected type 16
Any ideas how to solve this problem?
source share