Warning
Error Code:
319
MongoDB Error 319: Replica Set Primary Election
Description
This error indicates that your MongoDB replica set is currently undergoing a primary election or a primary stepdown operation. It typically occurs during planned maintenance, automatic failovers, or when the `rs.stepDown()` command is executed, signifying a temporary state of the replica set.
Error Message
Move Primary In Progress
Known Causes
4 known causesManual Primary Stepdown
An administrator explicitly executed the `rs.stepDown()` command on the current primary to initiate a controlled primary election.
Automatic Primary Failover
The current primary became unreachable or unresponsive, triggering an automatic election to select a new primary from the remaining members.
Replica Set Reconfiguration
Changes to the replica set configuration, such as adding or removing members, often necessitate a primary election.
Network Partition
A network issue isolated the primary from the majority of the replica set, leading to its stepdown and a new election.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service