Error occured during BUILD INDEX ON my Bucket

Before i face this error an index was created using below command:
CREATE INDEX ixAccountGroup ON master_erp(serial ASC, status, cid, META().id) WHERE (type=“account_group”) WITH {“defer_build”:true};

After that i execute the following command on query:
BUILD INDEX ON master_erp(ixAccountGroup) USING GSI;

since i click on execute on Query section i am getting out of connection/site can’t be reach:

Manually i collect the below logs from: /opt/couchbase/var/lib/couchbase/logs/indexer.log

2020-10-20T01:18:54.742+00:00 [Info] Error occured during cluster info update (CBAuth database is stale: last reason: dial tcp 127.0.0.1:8091: getsockopt: connection refused) … Retrying(55)

2020-10-20T01:18:54.754+00:00 [Info] ServiceMgr::listenMoveIndex metakv err Get http://127.0.0.1:8091/_metakv/indexing/rebalance/?feed=continuous: CBAuth database is stale: last reason: dial tcp 127.0.0.1:8091: getsockopt: connection refused. Retrying…

2020-10-20T01:18:54.779+00:00 [Info] Indexer::ReadMemstats Time Taken 354.842µs

2020-10-20T01:18:54.812+00:00 [Error] Unable to connect with bucket “master_erp”

2020-10-20T01:18:53.033+00:00 [Error] ClusterInfoClient ClusterAuthUrl(): CBAuth database is stale: last reason: dial tcp 127.0.0.1:8091: getsockopt: connection refused
2020-10-20T01:18:54.871+00:00 [Error] Indexer::monitorKVNodes, error observed while retrieving ClusterAuthUrl, err : CBAuth database is stale: last reason: dial tcp 127.0.0.1:8091: getsockopt: connection refused
2020-10-20T01:18:54.871+00:00 [Warn] Indexer::getCurrentKVTs error=CBAuth database is stale: last reason: dial tcp 127.0.0.1:8091: getsockopt: connection refused Retrying (1)
2020-10-20T01:18:54.871+00:00 [Error] Unable to connect with bucket “master_erp”

what should i do now? why this happen?

It automatically resolved after 50 minutes and i got the following log: ( /opt/couchbase/var/lib/couchbase/logs/indexer.log)

2020-10-20T01:40:26.041+00:00 [Info] janitor: running cleanup.
2020-10-20T01:40:34.180+00:00 [Info] Indexer::ReadMemstats Time Taken 443.742µs
2020-10-20T01:40:42.077+00:00 [Info] memstats {“Alloc”:165397960, “TotalAlloc”:2133873328, “Sys”:198887584, “Lookups”:20364, “Mallocs”:45778655,“Frees”:44447342, “HeapAlloc”:165397960, “HeapSys”:186089472, “HeapIdle”:19128320, “HeapInuse”:166961152,“HeapReleased”:8224768, “HeapObjects”:1331313,“GCSys”:7657472, “LastGC”:1603158009273184600,“PauseTotalNs”:3255806696, “PauseNs”:[266855, 367831], “NumGC”:34}
2020-10-20T01:40:42.137+00:00 [Info] ServiceMgr::rebalanceJanitor Running Periodic Cleanup

@mostain,

Can you please let us know the couchbase-server version and the operating system on which it is running. Also, it would be great if you can share the debug.log and error.log for further inspection to figure out the root of this issue. These files can be found in the path /opt/couchbase/var/lib/couchbase/logs

Thanks,
Varun

@varun.velamuri Thank you for your query. I am using
Community Edition 6.5.1 build 6299

Please download from the below link.

http://master.com.bd/log/debug.log
http://master.com.bd/log/error.log