mongodb - mongo error when restoring database
漂亮男人
漂亮男人 2017-05-02 09:24:19
0
3
676

At first, the data suddenly disappeared. Then I checked the logs and found that there were only logs for that day. I want to ask what happened?
Then the error message appears when restoring the data:
ERROR: trying to write to non-master localhost:27017
isMaster info: { ismaster: false, secondary: false, info: "can't get local. system.replset config from self or any seed (EMPTYCONFIG)", isreplicaset: true, maxBsonObjectSize: 16777216, maxMessageSizeBytes: 48000000, localTime: new Date(1483324259039), ok: 1.0 }

Thank you!

漂亮男人
漂亮男人

reply all(3)
迷茫

The mongo you chose to restore is not the master?

Ty80

Please check the status of MongoDB Replication.

This error is related to the status of Replication.

Ty80

I commented the replSet parameter and it can be restored, but I don’t know how to check the specific cause of data loss

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template