添加副本的新成员后,设置以下错误:“ lastHeartbeatMessage”出现:“无法接受逻辑时间:{ts:Timestamp(1550560064,22)}。
我尝试在新服务器上安装相同的mongodb版本(4.0.5)。删除本地数据库。
"_id" : 1,
"name" : "ip:27017",
"health" : 0,
"state" : 8,
"stateStr" : "(not reachable/healthy)",
"uptime" : 0,
"optime" : {
"ts" : Timestamp(0, 0),
"t" : NumberLong(-1)
},
"optimeDurable" : {
"ts" : Timestamp(0, 0),
"t" : NumberLong(-1)
},
"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
"optimeDurableDate" : ISODate("1970-01-01T00:00:00Z"),
"lastHeartbeat" : ISODate("2019-02-19T08:28:36.229Z"),
"lastHeartbeatRecv" : ISODate("1970-01-01T00:00:00Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "Cannot accept logicalTime: { ts:
Timestamp(1550564916, 224) }. May not be a part of a sharded cluster",
"syncingTo" : "",
"syncSourceHost" : "",
"syncSourceId" : -1,
"infoMessage" : "",
"configVersion" : -1
目前,只有一台服务器用作副本集。我想添加第二台服务器