Could not locate the leader master: GetLeaderMasterRpc

Hi
I am trying to do manual start of yugabyte master using a conf flle. getting error as

E0117 18:50:11.352945 306437 async_initializer.cc:95] Failed to initialize client: Timed out (yb/rpc/rpc.cc:220): Could not locate the leader master: GetLeaderMasterRpc(addrs: [:7100, :7100, :7100], num_attempts: 53) passed its deadline 707714.021s (passed: 1.544s): Not found (yb/master/master_rpc.cc:286): no leader found: GetLeaderMasterRpc(addrs: [:7100, :7100, :7100], num_attempts: 1

–master_addresses=ip1:7100,ip2:7100,ip3:7100
–rpc_bind_addresses=ip1:7100
–enable_ysql
–fs_data_dirs=/data1/ybmdata1
–fs_wal_dirs=/data2/mstrwaldir
–log_dir=/applog/ybmlog
–replication_factor=3
–webserver_interface=ip1
–webserver_port=7020
–metric_node_name=yb-master-1
–placement_cloud=region
–placement_region=region
–placement_zone=region1
–enable_automatic_tablet_splitting=true
–ysql_num_shards_per_tserver=1

i am using
./bin/yb-master --flagfile conf/tmaster.conf >& /applog/yb-master-2.out &

to start tmaster server.

However when i am starting yb-master manually like
/bin/yb-master
–master_addresses=ip1:7100,ip2:7100,ip3:7100
–rpc_bind_addresses=ip1
–enable_ysql
–fs_data_dirs=/data1/ybmdata1
–fs_wal_dirs=/data2/mstrwaldir
–log_dir=/applog/ybmlog
–replication_factor=3
–webserver_interface=ip1
–webserver_port=7020
–metric_node_name=yb-master-1
–placement_cloud=region
–placement_region=region
–placement_zone=region1
–enable_automatic_tablet_splitting=true
–ysql_num_shards_per_tserver=1 > log.out &

It starting fine.

It would be great help if you could let me know what i am doing wrong when trying to start using a conf file.

Hi @subh14

Are you still having issues here?

Hi Dorian
Leader master is started, however I am seeing that error in the logs whenever i am trying to add/start a master node. Also I found below error in logs quite frequently. Not sure if this is expected.

I0129 14:05:04.265509 31474 poller.cc:66] Poll stopped: Service unavailable (yb/rpc/scheduler.cc:80): Scheduler is shutting down (system error 108)

regular DB at: /data/ybtdata3/yb-data/tserver/data/rocksdb/table-00004001000030008000000000004533/tablet-ff373ea085b54e46957377fdc9fa1502: IO error (yb/rocksdb/util/env_posix.cc:320): /data/ybtdata3/yb-data/tserver/data/rocksdb/table-00004001000030008000000000004533/tablet-ff373ea085b54e46957377fdc9fa1502/LOCK: No such file or directory