I am trying to do a
mongodump to a json that another dev can use to
mongorestore the database. However, when the second dev tries to use this data, it populates the database, but when it comes time to use the data, it doesn’t work (it’s a user-facing application, and the user cannot log in). When I (first dev)
restore from this dump, it works fine. Is there possibly some metadata stored in the bson file that is preventing us from sharing this dump across machines?
These are the commands we are using to dump and restore
mongodump -d test-db -o mock-data
mongorestore -d test-db mock-data/test-db
Does anyone know what may be happening here and/or how to mitigate? I’ve also tried using mongoexport/import with no success.