Unable to add nodes in mongodb replica set
Unable to add nodes in mongodb replica set
I'm trying to add new node in primary, but I'm unable to add secondary node to the primary node.
mongorep:PRIMARY> rs.add("hostname")
"operationTime" : Timestamp(1537000835, 1),
"ok" : 0,
"errmsg" : "Either all host names in a replica set configuration must be localhost references, or none must be; found 1 out of 2",
"code" : 103,
"codeName" : "NewReplicaSetConfigurationIncompatible",
"$clusterTime" :
"clusterTime" : Timestamp(1537000835, 1),
"signature" :
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
"keyId" : NumberLong(0)
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy
Unable to add secondary node to the primary node
– Saikumar
Sep 15 '18 at 8:54