mongodb-replica-set

Stop replica set on mongo and primary goes into recovery status

Stop replica set on mongo and primary goes into recovery status
When I stop nodes of my replica set and start them up again, the primary node goes into status "recovering".I have a replica set created, running without authorization. In order to use authorization I have added users "db.createUser(...)&qu

MongoError: no valid replicaset members found

MongoError: no valid replicaset members found
Can anyone explain in what scenario the below error occurs?database error { [MongoError: no valid replicaset members found] name: 'MongoError', message: 'no valid replicaset members found' }This is how I connect to the replica set:var url = format("m

Mongo replication issue in system.user database

Mongo replication issue in system.user database
I am able to add a user to systems.users collection when I register from primary node, But when I add a user from secondary node, value is not getting updated in the primary and so the replication fails, primary is in US and secondary is in Europe.va
What Others Are Reading