title: Mongo replica "NotPrimaryNoSecondaryOk"
body: <p>I have spent this week to make Mongo 4.4 PSA replica created by a freelancer to work. I gave up, deleted the complete mongod from all three servers and install from scratch following the <a href="https://docs.mongodb.com/v4.4/tutorial/deploy-replica-set/" rel="nofollow noreferrer">Mongo doc</a>. The only change was to create new db and import data before the replica initialization.</p>
  <p>It failed for the first time (connection timeout) and I revisited my firewalls rules. Then it connected immediately and mongo shell refreshed on all nodes:</p>
  <pre><code>rs_bud:SECONDARY&gt; show collections
  rs_bud:PRIMARY&gt; use bud
  </code></pre>
  <p>But when I perfom any operation on secondaries, they fail with <code>NotPrimaryNoSecondaryOk</code> error.</p>
  <pre><code>rs_bud:SECONDARY&gt; use bud
  rs_bud:SECONDARY&gt; show collections
  uncaught exception: Error: listCollections failed: {
          &quot;topologyVersion&quot; : {
                  &quot;processId&quot; : ObjectId(&quot;612bbc4940995c508859973a&quot;),
                  &quot;counter&quot; : NumberLong(4)
          },
          &quot;operationTime&quot; : Timestamp(1630258863, 1),
          &quot;ok&quot; : 0,
          &quot;errmsg&quot; : &quot;not master and slaveOk=false&quot;,
          &quot;code&quot; : 13435,
          &quot;codeName&quot; : &quot;NotPrimaryNoSecondaryOk&quot;,
          &quot;$clusterTime&quot; : {
                  &quot;clusterTime&quot; : Timestamp(1630258863, 1),
                  &quot;signature&quot; : {
                          &quot;hash&quot; : BinData(0,&quot;AAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;),
                          &quot;keyId&quot; : NumberLong(0)
                  }
          }
  } :
  </code></pre>
  <p>I cannot find any logs useful to me:</p>
  <pre><code>{&quot;t&quot;:{&quot;$date&quot;:&quot;2021-08-29T19:41:41.550+02:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;NETWORK&quot;,  &quot;id&quot;:23729,   &quot;ctx&quot;:&quot;ReplicaSetMonitor-TaskExecutor&quot;,&quot;msg&quot;:&quot;ServerPingMonitor is now monitoring host&quot;,&quot;attr&quot;:{&quot;host&quot;:&quot;10.0.0.4:27017&quot;,&quot;replicaSet&quot;:&quot;rs_bud&quot;}}
  {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-08-29T19:41:41.550+02:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;NETWORK&quot;,  &quot;id&quot;:4333213, &quot;ctx&quot;:&quot;ReplicaSetMonitor-TaskExecutor&quot;,&quot;msg&quot;:&quot;RSM Topology Change&quot;,&quot;attr&quot;:{&quot;replicaSet&quot;:&quot;rs_bud&quot;,&quot;newTopologyDescription&quot;:&quot;{ id: \&quot;ad6bc985-50f4-4b01-9310-1457f8861f1f\&quot;, topologyType: \&quot;ReplicaSetWithPrimary\&quot;, servers: { 10.0.0.2:27017: { address: \&quot;10.0.0.2:27017\&quot;, topologyVersion: { processId: ObjectId('612bbc4940995c508859973a'), counter: 4 }, roundTripTime: 504, lastWriteDate: new Date(1630258890000), opTime: { ts: Timestamp(1630258890, 1), t: 1 }, type: \&quot;RSSecondary\&quot;, minWireVersion: 9, maxWireVersion: 9, me: \&quot;10.0.0.2:27017\&quot;, setName: \&quot;rs_bud\&quot;, setVersion: 1, primary: \&quot;10.0.0.4:27017\&quot;, lastUpdateTime: new Date(1630258901549), logicalSessionTimeoutMinutes: 30, hosts: { 0: \&quot;10.0.0.2:27017\&quot;, 1: \&quot;10.0.0.4:27017\&quot;, 2: \&quot;10.0.0.5:27017\&quot; }, arbiters: {}, passives: {} }, 10.0.0.4:27017: { address: \&quot;10.0.0.4:27017\&quot;, topologyVersion: { processId: ObjectId('612bba160d5e82841e5c8fc2'), counter: 6 }, roundTripTime: 1153, lastWriteDate: new Date(1630258890000), opTime: { ts: Timestamp(1630258890, 1), t: 1 }, type: \&quot;RSPrimary\&quot;, minWireVersion: 9, maxWireVersion: 9, me: \&quot;10.0.0.4:27017\&quot;, setName: \&quot;rs_bud\&quot;, setVersion: 1, electionId: ObjectId('7fffffff0000000000000001'), primary: \&quot;10.0.0.4:27017\&quot;, lastUpdateTime: new Date(1630258901550), logicalSessionTimeoutMinutes: 30, hosts: { 0: \&quot;10.0.0.2:27017\&quot;, 1: \&quot;10.0.0.4:27017\&quot;, 2: \&quot;10.0.0.5:27017\&quot; }, arbiters: {}, passives: {} }, 10.0.0.5:27017: { address: \&quot;10.0.0.5:27017\&quot;, type: \&quot;Unknown\&quot;, minWireVersion: 0, maxWireVersion: 0, lastUpdateTime: new Date(-9223372036854775808), hosts: {}, arbiters: {}, passives: {} } }, logicalSessionTimeoutMinutes: 30, setName: \&quot;rs_bud\&quot;, compatible: true, maxSetVersion: 1, maxElectionId: ObjectId('7fffffff0000000000000001') }&quot;,&quot;previousTopologyDescription&quot;:&quot;{ id: \&quot;ad6bc985-50f4-4b01-9310-1457f8861f1f\&quot;, topologyType: \&quot;ReplicaSetNoPrimary\&quot;, servers: { 10.0.0.2:27017: { address: \&quot;10.0.0.2:27017\&quot;, topologyVersion: { processId: ObjectId('612bbc4940995c508859973a'), counter: 4 }, roundTripTime: 504, lastWriteDate: new Date(1630258890000), opTime: { ts: Timestamp(1630258890, 1), t: 1 }, type: \&quot;RSSecondary\&quot;, minWireVersion: 9, maxWireVersion: 9, me: \&quot;10.0.0.2:27017\&quot;, setName: \&quot;rs_bud\&quot;, setVersion: 1, primary: \&quot;10.0.0.4:27017\&quot;, lastUpdateTime: new Date(1630258901549), logicalSessionTimeoutMinutes: 30, hosts: { 0: \&quot;10.0.0.2:27017\&quot;, 1: \&quot;10.0.0.4:27017\&quot;, 2: \&quot;10.0.0.5:27017\&quot; }, arbiters: {}, passives: {} }, 10.0.0.4:27017: { address: \&quot;10.0.0.4:27017\&quot;, type: \&quot;Unknown\&quot;, minWireVersion: 0, maxWireVersion: 0, lastUpdateTime: new Date(-9223372036854775808), hosts: {}, arbiters: {}, passives: {} }, 10.0.0.5:27017: { address: \&quot;10.0.0.5:27017\&quot;, type: \&quot;Unknown\&quot;, minWireVersion: 0, maxWireVersion: 0, lastUpdateTime: new Date(-9223372036854775808), hosts: {}, arbiters: {}, passives: {} } }, logicalSessionTimeoutMinutes: 30, setName: \&quot;rs_bud\&quot;, compatible: true }&quot;}}
  {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-08-29T19:41:41.550+02:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;NETWORK&quot;,  &quot;id&quot;:23729,   &quot;ctx&quot;:&quot;ReplicaSetMonitor-TaskExecutor&quot;,&quot;msg&quot;:&quot;ServerPingMonitor is now monitoring host&quot;,&quot;attr&quot;:{&quot;host&quot;:&quot;10.0.0.5:27017&quot;,&quot;replicaSet&quot;:&quot;rs_bud&quot;}}
  {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-08-29T19:41:41.551+02:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;NETWORK&quot;,  &quot;id&quot;:4333213, &quot;ctx&quot;:&quot;ReplicaSetMonitor-TaskExecutor&quot;,&quot;msg&quot;:&quot;RSM Topology Change&quot;,&quot;attr&quot;:{&quot;replicaSet&quot;:&quot;rs_bud&quot;,&quot;newTopologyDescription&quot;:&quot;{ id: \&quot;ad6bc985-50f4-4b01-9310-1457f8861f1f\&quot;, topologyType: \&quot;ReplicaSetWithPrimary\&quot;, servers: { 10.0.0.2:27017: { address: \&quot;10.0.0.2:27017\&quot;, topologyVersion: { processId: ObjectId('612bbc4940995c508859973a'), counter: 4 }, roundTripTime: 504, lastWriteDate: new Date(1630258890000), opTime: { ts: Timestamp(1630258890, 1), t: 1 }, type: \&quot;RSSecondary\&quot;, minWireVersion: 9, maxWireVersion: 9, me: \&quot;10.0.0.2:27017\&quot;, setName: \&quot;rs_bud\&quot;, setVersion: 1, primary: \&quot;10.0.0.4:27017\&quot;, lastUpdateTime: new Date(1630258901549), logicalSessionTimeoutMinutes: 30, hosts: { 0: \&quot;10.0.0.2:27017\&quot;, 1: \&quot;10.0.0.4:27017\&quot;, 2: \&quot;10.0.0.5:27017\&quot; }, arbiters: {}, passives: {} }, 10.0.0.4:27017: { address: \&quot;10.0.0.4:27017\&quot;, topologyVersion: { processId: ObjectId('612bba160d5e82841e5c8fc2'), counter: 6 }, roundTripTime: 1153, lastWriteDate: new Date(1630258890000), opTime: { ts: Timestamp(1630258890, 1), t: 1 }, type: \&quot;RSPrimary\&quot;, minWireVersion: 9, maxWireVersion: 9, me: \&quot;10.0.0.4:27017\&quot;, setName: \&quot;rs_bud\&quot;, setVersion: 1, electionId: ObjectId('7fffffff0000000000000001'), primary: \&quot;10.0.0.4:27017\&quot;, lastUpdateTime: new Date(1630258901550), logicalSessionTimeoutMinutes: 30, hosts: { 0: \&quot;10.0.0.2:27017\&quot;, 1: \&quot;10.0.0.4:27017\&quot;, 2: \&quot;10.0.0.5:27017\&quot; }, arbiters: {}, passives: {} }, 10.0.0.5:27017: { address: \&quot;10.0.0.5:27017\&quot;, topologyVersion: { processId: ObjectId('612bbc3d5c7d3123b83eedf8'), counter: 4 }, roundTripTime: 1468, lastWriteDate: new Date(1630258890000), opTime: { ts: Timestamp(1630258890, 1), t: 1 }, type: \&quot;RSSecondary\&quot;, minWireVersion: 9, maxWireVersion: 9, me: \&quot;10.0.0.5:27017\&quot;, setName: \&quot;rs_bud\&quot;, setVersion: 1, primary: \&quot;10.0.0.4:27017\&quot;, lastUpdateTime: new Date(1630258901550), logicalSessionTimeoutMinutes: 30, hosts: { 0: \&quot;10.0.0.2:27017\&quot;, 1: \&quot;10.0.0.4:27017\&quot;, 2: \&quot;10.0.0.5:27017\&quot; }, arbiters: {}, passives: {} } }, logicalSessionTimeoutMinutes: 30, setName: \&quot;rs_bud\&quot;, compatible: true, maxSetVersion: 1, maxElectionId: ObjectId('7fffffff0000000000000001') }&quot;,&quot;previousTopologyDescription&quot;:&quot;{ id: \&quot;ad6bc985-50f4-4b01-9310-1457f8861f1f\&quot;, topologyType: \&quot;ReplicaSetWithPrimary\&quot;, servers: { 10.0.0.2:27017: { address: \&quot;10.0.0.2:27017\&quot;, topologyVersion: { processId: ObjectId('612bbc4940995c508859973a'), counter: 4 }, roundTripTime: 504, lastWriteDate: new Date(1630258890000), opTime: { ts: Timestamp(1630258890, 1), t: 1 }, type: \&quot;RSSecondary\&quot;, minWireVersion: 9, maxWireVersion: 9, me: \&quot;10.0.0.2:27017\&quot;, setName: \&quot;rs_bud\&quot;, setVersion: 1, primary: \&quot;10.0.0.4:27017\&quot;, lastUpdateTime: new Date(1630258901549), logicalSessionTimeoutMinutes: 30, hosts: { 0: \&quot;10.0.0.2:27017\&quot;, 1: \&quot;10.0.0.4:27017\&quot;, 2: \&quot;10.0.0.5:27017\&quot; }, arbiters: {}, passives: {} }, 10.0.0.4:27017: { address: \&quot;10.0.0.4:27017\&quot;, topologyVersion: { processId: ObjectId('612bba160d5e82841e5c8fc2'), counter: 6 }, roundTripTime: 1153, lastWriteDate: new Date(1630258890000), opTime: { ts: Timestamp(1630258890, 1), t: 1 }, type: \&quot;RSPrimary\&quot;, minWireVersion: 9, maxWireVersion: 9, me: \&quot;10.0.0.4:27017\&quot;, setName: \&quot;rs_bud\&quot;, setVersion: 1, electionId: ObjectId('7fffffff0000000000000001'), primary: \&quot;10.0.0.4:27017\&quot;, lastUpdateTime: new Date(1630258901550), logicalSessionTimeoutMinutes: 30, hosts: { 0: \&quot;10.0.0.2:27017\&quot;, 1: \&quot;10.0.0.4:27017\&quot;, 2: \&quot;10.0.0.5:27017\&quot; }, arbiters: {}, passives: {} }, 10.0.0.5:27017: { address: \&quot;10.0.0.5:27017\&quot;, type: \&quot;Unknown\&quot;, minWireVersion: 0, maxWireVersion: 0, lastUpdateTime: new Date(-9223372036854775808), hosts: {}, arbiters: {}, passives: {} } }, logicalSessionTimeoutMinutes: 30, setName: \&quot;rs_bud\&quot;, compatible: true, maxSetVersion: 1, maxElectionId: ObjectId('7fffffff0000000000000001') }&quot;}}
  {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-08-29T19:41:41.552+02:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;NETWORK&quot;,  &quot;id&quot;:20113,   &quot;ctx&quot;:&quot;LogicalSessionCacheReap&quot;,&quot;msg&quot;:&quot;Successfully connected to host&quot;,&quot;attr&quot;:{&quot;connString&quot;:&quot;10.0.0.4:27017&quot;,&quot;numOpenConns&quot;:1,&quot;socketTimeoutSecs&quot;:0.0}}
  {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-08-29T19:41:41.552+02:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;NETWORK&quot;,  &quot;id&quot;:20113,   &quot;ctx&quot;:&quot;LogicalSessionCacheRefresh&quot;,&quot;msg&quot;:&quot;Successfully connected to host&quot;,&quot;attr&quot;:{&quot;connString&quot;:&quot;10.0.0.4:27017&quot;,&quot;numOpenConns&quot;:2,&quot;socketTimeoutSecs&quot;:0.0}}
  {&quot;t&quot;:{&quot;$date&quot;:&quot;2021-08-29T19:41:54.623+02:00&quot;},&quot;s&quot;:&quot;I&quot;,  &quot;c&quot;:&quot;STORAGE&quot;,  &quot;id&quot;:22430,   &quot;ctx&quot;:&quot;WTCheckpointThread&quot;,&quot;msg&quot;:&quot;WiredTiger message&quot;,&quot;attr&quot;:{&quot;message&quot;:&quot;[1630258914:623411][1811:0x7f64db1aa700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 1607, snapshot max: 1607 snapshot count: 0, oldest timestamp: (1630258896, 1) , meta checkpoint timestamp: (1630258901, 1) base write gen: 325&quot;}}
  </code></pre>
  <p>and this looks OK too:</p>
  <pre><code>rs_bud:SECONDARY&gt; rs.printReplicationInfo()
  configured oplog size:   1483.0916013717651MB
  log length start to end: 981secs (0.27hrs)
  oplog first event time:  Sun Aug 29 2021 19:39:42 GMT+0200 (CEST)
  oplog last event time:   Sun Aug 29 2021 19:56:03 GMT+0200 (CEST)
  now:                     Sun Aug 29 2021 19:56:04 GMT+0200 (CEST)
  </code></pre>
  <p>and</p>
  <pre><code>rs_bud:SECONDARY&gt; rs.status()
  {
          &quot;set&quot; : &quot;rs_bud&quot;,
          &quot;date&quot; : ISODate(&quot;2021-08-29T17:56:58.119Z&quot;),
          &quot;myState&quot; : 2,
          &quot;term&quot; : NumberLong(1),
          &quot;syncSourceHost&quot; : &quot;10.0.0.4:27017&quot;,
          &quot;syncSourceId&quot; : 0,
          &quot;heartbeatIntervalMillis&quot; : NumberLong(2000),
          &quot;majorityVoteCount&quot; : 2,
          &quot;writeMajorityCount&quot; : 2,
          &quot;votingMembersCount&quot; : 3,
          &quot;writableVotingMembersCount&quot; : 3,
          &quot;optimes&quot; : {
                  &quot;lastCommittedOpTime&quot; : {
                          &quot;ts&quot; : Timestamp(1630259813, 1),
                          &quot;t&quot; : NumberLong(1)
                  },
                  &quot;lastCommittedWallTime&quot; : ISODate(&quot;2021-08-29T17:56:53.431Z&quot;),
                  &quot;readConcernMajorityOpTime&quot; : {
                          &quot;ts&quot; : Timestamp(1630259813, 1),
                          &quot;t&quot; : NumberLong(1)
                  },
                  &quot;readConcernMajorityWallTime&quot; : ISODate(&quot;2021-08-29T17:56:53.431Z&quot;),
                  &quot;appliedOpTime&quot; : {
                          &quot;ts&quot; : Timestamp(1630259813, 1),
                          &quot;t&quot; : NumberLong(1)
                  },
                  &quot;durableOpTime&quot; : {
                          &quot;ts&quot; : Timestamp(1630259813, 1),
                          &quot;t&quot; : NumberLong(1)
                  },
                  &quot;lastAppliedWallTime&quot; : ISODate(&quot;2021-08-29T17:56:53.431Z&quot;),
                  &quot;lastDurableWallTime&quot; : ISODate(&quot;2021-08-29T17:56:53.431Z&quot;)
          },
          &quot;lastStableRecoveryTimestamp&quot; : Timestamp(1630259801, 2),
          &quot;electionParticipantMetrics&quot; : {
                  &quot;votedForCandidate&quot; : true,
                  &quot;electionTerm&quot; : NumberLong(1),
                  &quot;lastVoteDate&quot; : ISODate(&quot;2021-08-29T17:39:53.358Z&quot;),
                  &quot;electionCandidateMemberId&quot; : 0,
                  &quot;voteReason&quot; : &quot;&quot;,
                  &quot;lastAppliedOpTimeAtElection&quot; : {
                          &quot;ts&quot; : Timestamp(1630258782, 1),
                          &quot;t&quot; : NumberLong(-1)
                  },
                  &quot;maxAppliedOpTimeInSet&quot; : {
                          &quot;ts&quot; : Timestamp(1630258782, 1),
                          &quot;t&quot; : NumberLong(-1)
                  },
                  &quot;priorityAtElection&quot; : 1,
                  &quot;newTermStartDate&quot; : ISODate(&quot;2021-08-29T17:39:53.386Z&quot;),
                  &quot;newTermAppliedDate&quot; : ISODate(&quot;2021-08-29T17:39:54.485Z&quot;)
          },
          &quot;members&quot; : [
                  {
                          &quot;_id&quot; : 0,
                          &quot;name&quot; : &quot;10.0.0.4:27017&quot;,
                          &quot;health&quot; : 1,
                          &quot;state&quot; : 1,
                          &quot;stateStr&quot; : &quot;PRIMARY&quot;,
                          &quot;uptime&quot; : 1035,
                          &quot;optime&quot; : {
                                  &quot;ts&quot; : Timestamp(1630259813, 1),
                                  &quot;t&quot; : NumberLong(1)
                          },
                          &quot;optimeDurable&quot; : {
                                  &quot;ts&quot; : Timestamp(1630259813, 1),
                                  &quot;t&quot; : NumberLong(1)
                          },
                          &quot;optimeDate&quot; : ISODate(&quot;2021-08-29T17:56:53Z&quot;),
                          &quot;optimeDurableDate&quot; : ISODate(&quot;2021-08-29T17:56:53Z&quot;),
                          &quot;lastHeartbeat&quot; : ISODate(&quot;2021-08-29T17:56:57.415Z&quot;),
                          &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2021-08-29T17:56:57.901Z&quot;),
                          &quot;pingMs&quot; : NumberLong(0),
                          &quot;lastHeartbeatMessage&quot; : &quot;&quot;,
                          &quot;syncSourceHost&quot; : &quot;&quot;,
                          &quot;syncSourceId&quot; : -1,
                          &quot;infoMessage&quot; : &quot;&quot;,
                          &quot;electionTime&quot; : Timestamp(1630258793, 1),
                          &quot;electionDate&quot; : ISODate(&quot;2021-08-29T17:39:53Z&quot;),
                          &quot;configVersion&quot; : 1,
                          &quot;configTerm&quot; : 1
                  },
                  {
                          &quot;_id&quot; : 1,
                          &quot;name&quot; : &quot;10.0.0.5:27017&quot;,
                          &quot;health&quot; : 1,
                          &quot;state&quot; : 2,
                          &quot;stateStr&quot; : &quot;SECONDARY&quot;,
                          &quot;uptime&quot; : 1035,
                          &quot;optime&quot; : {
                                  &quot;ts&quot; : Timestamp(1630259813, 1),
                                  &quot;t&quot; : NumberLong(1)
                          },
                          &quot;optimeDurable&quot; : {
                                  &quot;ts&quot; : Timestamp(1630259813, 1),
                                  &quot;t&quot; : NumberLong(1)
                          },
                          &quot;optimeDate&quot; : ISODate(&quot;2021-08-29T17:56:53Z&quot;),
                          &quot;optimeDurableDate&quot; : ISODate(&quot;2021-08-29T17:56:53Z&quot;),
                          &quot;lastHeartbeat&quot; : ISODate(&quot;2021-08-29T17:56:57.417Z&quot;),
                          &quot;lastHeartbeatRecv&quot; : ISODate(&quot;2021-08-29T17:56:57.431Z&quot;),
                          &quot;pingMs&quot; : NumberLong(0),
                          &quot;lastHeartbeatMessage&quot; : &quot;&quot;,
                          &quot;syncSourceHost&quot; : &quot;10.0.0.4:27017&quot;,
                          &quot;syncSourceId&quot; : 0,
                          &quot;infoMessage&quot; : &quot;&quot;,
                          &quot;configVersion&quot; : 1,
                          &quot;configTerm&quot; : 1
                  },
                  {
                          &quot;_id&quot; : 2,
                          &quot;name&quot; : &quot;10.0.0.2:27017&quot;,
                          &quot;health&quot; : 1,
                          &quot;state&quot; : 2,
                          &quot;stateStr&quot; : &quot;SECONDARY&quot;,
                          &quot;uptime&quot; : 3617,
                          &quot;optime&quot; : {
                                  &quot;ts&quot; : Timestamp(1630259813, 1),
                                  &quot;t&quot; : NumberLong(1)
                          },
                          &quot;optimeDate&quot; : ISODate(&quot;2021-08-29T17:56:53Z&quot;),
                          &quot;syncSourceHost&quot; : &quot;10.0.0.4:27017&quot;,
                          &quot;syncSourceId&quot; : 0,
                          &quot;infoMessage&quot; : &quot;&quot;,
                          &quot;configVersion&quot; : 1,
                          &quot;configTerm&quot; : 1,
                          &quot;self&quot; : true,
                          &quot;lastHeartbeatMessage&quot; : &quot;&quot;
                  }
          ],
          &quot;ok&quot; : 1,
          &quot;$clusterTime&quot; : {
                  &quot;clusterTime&quot; : Timestamp(1630259813, 1),
                  &quot;signature&quot; : {
                          &quot;hash&quot; : BinData(0,&quot;AAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;),
                          &quot;keyId&quot; : NumberLong(0)
                  }
          },
          &quot;operationTime&quot; : Timestamp(1630259813, 1)
  }
  </code></pre>
  <p>What is wrong and how to fix it?</p>