Home > database >  Please copy mongo collection node status is "stateStr" : "STARTUP" what reason b
Please copy mongo collection node status is "stateStr" : "STARTUP" what reason b

Time:11-02

Three machines do copy set

Initialization code:
 
Rs. Initiate (
{
_id: "rs_configsvr,"
Members: [
{_id: 0, host: 192.168.182.132: "10021"},
{_id: 1, host: 192.168.182.133: "10022"},
{_id: 2, host: 192.168.182.134: "10023"}
]
}
);


Rs. The status ()
 "members" : [
{
"_id" : 0,
"Name" : "192.168.182.132:10021,"
"The health" : 1,
"State" : 2,
"StateStr", "SECONDARY",
"Uptime" : 68,
"Optime" : {
"Ts" : the Timestamp (1604165374, 1),
"T" : NumberLong (1)
},
"OptimeDate" : ISODate (" the 2020-10-31 T17: "Z"),
"SyncSourceHost" : ", "
"SyncSourceId" : 1,
"InfoMessage" : ", "
"ConfigVersion" : 1,
"ConfigTerm" : 0,
"Self" : true,
"LastHeartbeatMessage" : "","
},
{
"_id" : 1,
"Name" : "192.168.182.133:10022,"
"The health" : 1,
"State" : 0,
"StateStr" : "STARTUP",//status to STARTUP,
how to solve?"Uptime" : 6,
"Optime" : {
"Ts" : the Timestamp (0, 0),
"T" : NumberLong (1)
},
"OptimeDurable" : {
"Ts" : the Timestamp (0, 0),
"T" : NumberLong (1)
},
"OptimeDate" : ISODate (" the 1970-01-01 T00:00:00 Z "),
"OptimeDurableDate" : ISODate (" the 1970-01-01 T00:00:00 Z "),
"LastHeartbeat" : ISODate (" the 2020-10-31 T17:29:41. 027 z "),
"LastHeartbeatRecv" : ISODate (" the 1970-01-01 T00:00:00 Z "),
"PingMs" : NumberLong (0),
"LastHeartbeatMessage" : ", "
"SyncSourceHost" : ", "
"SyncSourceId" : 1,
"InfoMessage" : ", "
"ConfigVersion" : 2,
"ConfigTerm" : 1
},
{
"_id" : 2,
"Name" : "192.168.182.134:10023,"
"The health" : 1,
"State" : 0,
"StateStr" : "STARTUP",
"Uptime" : 6,
"Optime" : {
"Ts" : the Timestamp (0, 0),
"T" : NumberLong (1)
},
"OptimeDurable" : {
"Ts" : the Timestamp (0, 0),
"T" : NumberLong (1)
},
"OptimeDate" : ISODate (" the 1970-01-01 T00:00:00 Z "),
"OptimeDurableDate" : ISODate (" the 1970-01-01 T00:00:00 Z "),
"LastHeartbeat" : ISODate (" the 2020-10-31 T17:29:41. 027 z "),
"LastHeartbeatRecv" : ISODate (" the 1970-01-01 T00:00:00 Z "),
"PingMs" : NumberLong (0),
"LastHeartbeatMessage" : ", "
"SyncSourceHost" : ", "
"SyncSourceId" : 1,
"InfoMessage" : ", "
"ConfigVersion" : 2,
"ConfigTerm" : 1
}
]


How to solve?
  • Related