# MongoNot primary exception

**URL:** <https://forums.percona.com/t/mongonot-primary-exception/15430>\
**Category:** Percona Server for MongoDB\
**Tags:** mongodb, closed-no-reply\
**Created:** [April 27, 2022, 10:51am UTC](https://forums.percona.com/t/mongonot-primary-exception/15430 "2022-04-27T10:51:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Murali\_Kumpatla](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/murali_kumpatla/32/2696_2.png) [@Murali\_Kumpatla](https://forums.percona.com/u/Murali_Kumpatla)\
**Post date:** [April 27, 2022, 10:51am UTC](https://forums.percona.com/t/mongonot-primary-exception/15430/1 "2022-04-27T10:51:24Z")

</div>

Hi Team,

We are using the percona mongo 4.4.12-12 version.  
Daily once or thrice we are getting the MongoNotPrimary Exception  
following are the exceptions.

com.mongodb.MongoNotPrimaryException: Command failed with error 10107 (NotWritablePrimary): ‘not master’ on server xxxxxx:27017. The full response is {“topologyVersion”: {“processId”: {“$oid”: “624eb740544a06e59a667f66”}, “counter”: {“$numberLong”: “164”}}, “operationTime”: {“$timestamp”: {“t”: 1651004256, “i”: 5542}}, “ok”: 0.0, “errmsg”: “not master”, “code”: 10107, “codeName”: “NotWritablePrimary”, “$clusterTime”: {“clusterTime”: {“$timestamp”: {“t”: 1651004266, “i”: 1}}, “signature”: {“hash”: {“$binary”: “vJlGAZNB9ZCDd8Eb/vhFWq1XvJk=”, “$type”: “00”}, “keyId”: {“$numberLong”: “7070404437172289541”}}}} Show context

Help us to fix the issue
