mongodb - mongo恢复数据库时报错
漂亮男人
漂亮男人 2017-05-02 09:24:19
0
3
640

一开始是数据突然间不见了,然后查日志,发现只有当天的日志,想问怎么回事?
然后恢复数据就出现报错信息:
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 }

谢谢了!

漂亮男人
漂亮男人

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