MongoDB Replica Set STARTUP2 error initial sync need a member to be primary or secondary to do our initial sync

Error: MongoDB replica set stuck in STARTUP2 status with no replica becoming PRIMARY

 error initial sync need a member to be primary or secondary to do our initial sync

Cause: You accidentally delete the local.* files in MongoDB DB path on one or multiple but not all replicas

Solution: Stop all replicas, delete local.* on all replicas, and then start them and redo the rs.initiate() and rs.add() command from any replica member.

MongoDB Replica Set STARTUP2 error initial sync need a member to be primary or secondary to do our initial sync