'Mongorestore terminates unexpectedly
I have mongo in docker with a replica set. I have dumped the mongo 3.4.1 base, I want to restore the base dump to mongo 4.0.3. When restoring the dump, the process is interrupted unexpectedly, the docker container is restarted. I dumped the database with the command:
mongodump --host="test_rs1/test1:27160,test2:27160,test3:27160" --username siteRootAdmin --password 123456 --authenticationDatabase admin -o /dump
I restore the database dump with the command:
mongorestore --host="test_rs1/testt1:27160,test2:27160,test3:27160" --username siteRootAdmin --password 123456 --sslCAFile "here is my path to the certificate" --authenticationDatabase admin /dump
Recovery ends at:
reading metadata for local.me from /dump/local/me.metadata.json
Added --drop:
Failed: local.oplog.rs: error dropping collection: can't drop live oplog while replicating
I tried to pause the replica set in many ways, but nothing worked, what am I doing wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
