Mongodb: could not find a participant to synchronize with

I'm new to mongodb

I have a set of replicas 3 nodes 1 primary (A) 1 secondary (B) 1 arbiter (C)

Replica set was created using MMS 3 node located in 3 different cities

I keep getting the next error on the second, which lasts longer than a second each time

  • this is normal
  • If you do not know how to fix it

    { "_id" : 1, "name" : "B:27017", "health" : 1, "state" : 2, "stateStr" : "SECONDARY", "uptime" : 1213371, "optime" : Timestamp(1434051221, 1), "optimeDate" : ISODate("2015-06-11T19:33:41Z"), "infoMessage" : **"could not find member to sync from"**, "configVersion" : 4, "self" : true }, 

thanks

Hi

Philippe Courtois

+7
mongodb replicaset
source share
2 answers

You need to make sure that A, B, C resolves on each of the nodes.

Add them to / etc / hosts

a xxxx b xxxx c xxxx

and do it on each node and then restart mongod, this should fix it

0
source share

Let your oplog be full. You can increase the size of oplog.

Try to do it

  • Turn off the main
  • Back up oplog using direct access to data files.
  • Restart mongod offline
  • Copy the current shutter to a temporary collection
  • Delete current oplog
  • Again create an oplog with the desired size
  • Copy back oplog entries from temporary collection to shiny new oplog
  • Restart mongod as part of the replica set

You can find more on: Resize Oplog

0
source share

All Articles