# How can we setup 3 node master master cluster in one data center?

**URL:** <https://forum.yugabyte.com/t/how-can-we-setup-3-node-master-master-cluster-in-one-data-center/1147>\
**Category:** General\
**Created:** [August 12, 2021, 6:34am UTC](https://forum.yugabyte.com/t/how-can-we-setup-3-node-master-master-cluster-in-one-data-center/1147 "2021-08-12T06:34:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BijalShah01](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/bijalshah01/32/364_2.png) [@BijalShah01](https://forum.yugabyte.com/u/BijalShah01)\
**Post date:** [August 12, 2021, 6:34am UTC](https://forum.yugabyte.com/t/how-can-we-setup-3-node-master-master-cluster-in-one-data-center/1147/1 "2021-08-12T06:34:03Z")

</div>

Can Anyone help in this to resolve ?

## Starting Master

./bin/yb-master   
–master\_addresses 10.151.16.189:7100,10.151.16.199:7100,10.151.16.119:7100   
–rpc\_bind\_addresses 10.151.16.119   
–fs\_data\_dirs “/u01/yugabytedata/disk1,/u01/yugabytedata/disk2”   
–replication\_factor=3   
\>& /u01/yb-master3.out &

=======================================================  
Getting below errors From Yugabytedb - 1

======================================================

==\> yb-master.ERROR \<==  
E0804 11:54:04.914026 7730 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.16.119:7100], num\_attempts: 53) passed its deadline 384.874s (passed: 1.536s): Network error (yb/util/net/socket.cc:537): recvmsg error: Connection refused (system error 111)

==\> yb-master.INFO \<==  
I0804 11:54:04.409971 7728 tcp\_stream.cc:308] { local: 10.151.16.189:39030 remote: 10.151.16.199:7100 }: Recv failed: Network error (yb/util/net/socket.cc:537): recvmsg error: Connection refused (system error 111)  
E0804 11:54:04.914026 7730 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.16.119:7100], num\_attempts: 53) passed its deadline 384.874s (passed: 1.536s): Network error (yb/util/net/socket.cc:537): recvmsg error: Connection refused (system error 111)

---

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [August 12, 2021, 6:34am UTC](https://forum.yugabyte.com/t/how-can-we-setup-3-node-master-master-cluster-in-one-data-center/1147/2 "2021-08-12T06:34:50Z")

</div>

Can you follow this guide here: [Deploy | YugabyteDB Docs](https://docs.yugabyte.com/latest/deploy/manual-deployment/)

---

<div class="post-metadata">

**Author:** ![BijalShah01](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/bijalshah01/32/364_2.png) [@BijalShah01](https://forum.yugabyte.com/u/BijalShah01)\
**Post date:** [August 12, 2021, 7:11am UTC](https://forum.yugabyte.com/t/how-can-we-setup-3-node-master-master-cluster-in-one-data-center/1147/3 "2021-08-12T07:11:21Z")

</div>

Hi Already following yugabyte docs.

When I am starting yb-master we are getting below errors.

./bin/yb-master   
–master\_addresses 10.151.16.189:7100,10.151.16.199:7100,10.151.17.119:7100   
–rpc\_bind\_addresses 10.151.16.189   
–fs\_data\_dirs “/u01/yugabytedata/disk1,/u01/yugabytedata/disk2”   
–replication\_factor=3   
\>& /u01/yb-master1.out &

Error  
Node 1  
E0810 11:19:11.110110 14080 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 53) passed its deadline 516691.079s (passed: 1.526s): Network error (yb/util/net/socket.cc:537): recvmsg error: Connection refused (system error 111)  
E0810 11:19:13.654752 14080 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 53) passed its deadline 516693.606s (passed: 1.544s): Network error (yb/util/net/socket.cc:537): recvmsg error: Connection refused (system error 111)  
E0810 11:19:16.211920 14080 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 53) passed its deadline 516696.151s (passed: 1.556s): Not found (yb/master/master\_rpc.cc:286): no leader found: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 1)

Node 2  
LeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 1)  
E0810 11:19:59.449920 13805 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 51) passed its deadline 516676.299s (passed: 1.521s): Not found (yb/master/master\_rpc.cc:286): no leader found: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 1)  
E0810 11:20:01.957839 13805 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100, 10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 50) passed its deadline 516678.820s (passed: 1.507s): Not found (yb/master/master\_rpc.cc:286): no leader found: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100, 10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 1)  
E0810 11:20:04.465477 13805 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100, 10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 48) passed its deadline 516681.328s (passed: 1.507s): Not found (yb/master/master\_rpc.cc:286): no leader found: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100, 10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 1)

Node 3  
E0810 11:19:55.909801 13862 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 52) passed its deadline 516675.307s (passed: 1.535s): Not found (yb/master/master\_rpc.cc:286): no leader found: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 1)  
E0810 11:19:58.457140 13862 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100, 10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 52) passed its deadline 516677.844s (passed: 1.545s): Not found (yb/master/master\_rpc.cc:286): no leader found: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100, 10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 1)  
E0810 11:20:00.995076 13862 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100, 10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 41) passed its deadline 516680.390s (passed: 1.537s): Not found (yb/master/master\_rpc.cc:286): no leader found: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100, 10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 1)  
E0810 11:20:03.517774 13862 async\_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:211): Could not locate the leader master: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100, 10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 50) passed its deadline 516682.928s (passed: 1.522s): Not found (yb/master/master\_rpc.cc:286): no leader found: GetLeaderMasterRpc(addrs: [10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100, 10.151.16.189:7100, 10.151.16.199:7100, 10.151.17.119:7100], num\_attempts: 1)

---

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [August 12, 2021, 8:27am UTC](https://forum.yugabyte.com/t/how-can-we-setup-3-node-master-master-cluster-in-one-data-center/1147/4 "2021-08-12T08:27:22Z")

</div>

Hi @BijalShah01

Did you try stopping the yb-masters, emptying the data dirs, and starting them again like I wrote you on slack ?

---

<div class="post-metadata">

**Author:** ![BijalShah01](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/bijalshah01/32/364_2.png) [@BijalShah01](https://forum.yugabyte.com/u/BijalShah01)\
**Post date:** [August 12, 2021, 8:37am UTC](https://forum.yugabyte.com/t/how-can-we-setup-3-node-master-master-cluster-in-one-data-center/1147/5 "2021-08-12T08:37:08Z")

</div>

yes …i already did it.
