mongodb
cluster_error
ai_generated
true
MongoServerSelectionError: no primary available
ID: mongodb/replicaset-no-primary
78%Fix Rate
83%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 7 | active | — | — | — |
Root Cause
Replica set has no elected primary.
genericWorkarounds
-
88% success Check rs.status() and ensure majority of members are reachable
-
85% success Verify network connectivity between replica set members
Dead Ends
Common approaches that don't work:
-
Force step-down on all members
85% fail
Worsens election, no primary
-
Convert to standalone
80% fail
Loses replication benefits