Hi ,
i have installed standalone couchbase server and sync gateway on same server
i have started the sync-gateway.json file with multiple channels .
when i start the syn-gateway with below config file i see an error.
{
“log”: [""],
“databases”: {
“db”: {
“server”: “http://localhost:8091”,
“bucket”: “Bucket1”,
“username”: “test”,
“password”: “syncgt”,
“enable_shared_bucket_access”: true,
“import_docs”: “continuous”,
“users”: { “GUEST”: { “disabled”: false, “admin_channels”: [""] } },
“sync”: function (doc, oldDoc) { if (doc.sdk) { channel(doc.sdk); } }
}
}
},
{
“log”: [""],
“databases”: {
“sales_db”: {
“server”: “http://localhost:8091”,
“bucket”: “Bucket1”,
“username”: “test”,
“password”: “syncgt”,
“enable_shared_bucket_access”: true,
“import_docs”: “continuous”,
“users”: { “GUEST”: { “disabled”: false, “admin_channels”: [""] } },
“sync”: function (doc, oldDoc) { if (doc.sdk) { channel(doc.sdk); } }
}
}
},
{
“log”: [""],
“story_db”: {
“db”: {
“server”: “http://localhost:8091”,
“bucket”: “Bucket1”,
“username”: “test”,
“password”: “syncgt”,
“enable_shared_bucket_access”: true,
“import_docs”: “continuous”,
“users”: { “GUEST”: { “disabled”: false, “admin_channels”: [""] } },
“sync”: function (doc, oldDoc) { if (doc.sdk) { channel(doc.sdk); } }
}
}
},
accesslog file 2018-09-07T00:21:14.826Z [INF] Auth: Attempting credential authentication http://localhost:8091?http_idle_conn_timeout=90000&http_max_idle_conns=64000&http_max_idle_conns_per_host=256
2018-09-07T00:21:14.830Z [INF] Successfully opened bucket
2018-09-07T00:21:14.833Z [INF] Initializing indexes with numReplicas: 1…
2018-09-07T00:21:14.847Z [INF] Query: Index sg_syncDocs_1 doesn’t exist, creating…
2018-09-07T00:21:14.850Z [ERR] Error opening database sales_db: Unable to install index syncDocs: Error installing Couchbase index: sg_syncDocs_1: Unable to create indexes with the specified number of replicas (1). Increase the number of index nodes, or modify ‘num_index_replicas’ in your Sync Gateway database config. – rest.RunServer() at config.go:902
2018-09-07T04:28:49.478Z [ERR] Error reading config file /home/sync_gateway/sync_gateway.json: invalid character ‘,’ after top-level value – rest.ParseCommandLine() at config.go:711
2018-09-07T04:28:49.828Z [ERR] Error reading config file /home/sync_gateway/sync_gateway.json: invalid character ‘,’ after top-level value – rest.ParseCommandLine() at config.go:711
2018-09-07T04:28:50.075Z [ERR] Error reading config file /home/sync_gateway/sync_gateway.json: invalid character ‘,’ after top-level value – rest.ParseCommandLine() at config.go:711
2018-09-07T04:28:50.327Z [ERR
can some correct me with my config file.