We have Couchbase with 3 data nodes, 1 query node and 2 index node.
we have created couchbase bucket and using following sync gateway configuration
{
“log”: [
“"
],
“databases”: {
“bucketname”: {
“server”: “data.couchbase-flex.l4lb.thisdcos.directory:8091”,
“bucket”: “bucketname”,
“username”: “bucketname”,
“password”: “123456”,
“enable_shared_bucket_access”: true,
“import_docs”: “continuous”,
“num_index_replicas”: 1,
“users”: {
“GUEST”: {
“disabled”: true,
“admin_channels”: [
"”
]
},
“flex”: {
“password”: “123456”,
“admin_channels”: [
“"
]
}
},
“sync”: function(doc, oldDoc) { if (doc.taskType!='Load' && doc.taskType!='Unload' ) { channel(doc.clientId+'-'+doc.terminalId); }else{ channel('Invalid'); } }
,
“rev_cache_size”: 0
}
},
“CORS”: {
“Origin”: ["”],
“LoginOrigin”: ["*"],
“Headers”: [“Content-Type”],
“MaxAge”: 17280000
}
}
but we are getting following error
2020-02-17T15:24:14.297Z [INF] Set query timeouts for bucket flexoffline to cluster:1m15s, bucket:1m15s
2020-02-17T15:24:14.297Z [INF] Initializing indexes with numReplicas: 1…
2020-02-17T15:24:16.896Z [INF] Verifying index availability for bucket flexoffline…
2020-02-17T15:25:31.896Z [INF] Timeout waiting for index “sg_channels_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:25:31.897Z [INF] Timeout waiting for index “sg_roleAccess_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:25:31.897Z [INF] Timeout waiting for index “sg_access_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:26:46.897Z [INF] Timeout waiting for index “sg_channels_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:26:46.897Z [INF] Timeout waiting for index “sg_access_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:26:46.898Z [INF] Timeout waiting for index “sg_roleAccess_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:28:01.897Z [INF] Timeout waiting for index “sg_channels_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:28:01.898Z [INF] Timeout waiting for index “sg_roleAccess_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:28:01.898Z [INF] Timeout waiting for index “sg_access_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:29:16.898Z [INF] Timeout waiting for index “sg_channels_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:29:16.898Z [INF] Timeout waiting for index “sg_access_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:29:16.898Z [INF] Timeout waiting for index “sg_roleAccess_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:30:31.898Z [INF] Timeout waiting for index “sg_channels_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:30:31.899Z [INF] Timeout waiting for index “sg_roleAccess_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:30:31.899Z [INF] Timeout waiting for index “sg_access_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:31:46.898Z [INF] Timeout waiting for index “sg_channels_x1” to be ready for bucket “flexoffline” - retrying…
2020-02-17T15:31:46.899Z [INF] Timeout waiting for index “sg_access_x1” to be ready for bucket “flexoffline” - retrying…