2019-07-23T16:08:08.372+05:30 ==== Couchbase Sync Gateway/2.5.0(271;bf3ddf6) EE ====
2019-07-23T16:08:08.372+05:30 [INF] Logging: Console to stderr
2019-07-23T16:08:08.372+05:30 [INF] Logging: Files disabled
2019-07-23T16:08:08.372+05:30 [ERR] No log_file_path property specified in config, and --defaultLogFilePath command line flag was not set. Log files required for product support are not being generated.
2019-07-23T16:08:08.372+05:30 [WRN] Using deprecated config option: “log”. Use “logging.console.log_keys” instead. – rest.(*ServerConfig).deprecatedConfigLoggingFallback.func5() at config.go:674
2019-07-23T16:08:08.372+05:30 [WRN] Deprecated log key: “CRUD+” found. Changing to: “CRUD”. – base.ToLogKey.func1() at log_keys.go:177
2019-07-23T16:08:08.372+05:30 [WRN] Deprecated log key: “REST+” found. Changing to: “REST”. – base.ToLogKey.func1() at log_keys.go:177
2019-07-23T16:08:08.372+05:30 [WRN] Invalid log key: REST+ – base.ToLogKey.func2() at log_keys.go:187
2019-07-23T16:08:08.372+05:30 [WRN] Deprecated log key: “Changes+” found. Changing to: “Changes”. – base.ToLogKey.func1() at log_keys.go:177
2019-07-23T16:08:08.372+05:30 [WRN] Deprecated log key: “Attach+” found. Changing to: “Attach”. – base.ToLogKey.func1() at log_keys.go:177
2019-07-23T16:08:08.372+05:30 [WRN] Invalid log key: Attach+ – base.ToLogKey.func2() at log_keys.go:187
2019-07-23T16:08:08.372+05:30 [INF] Logging: Console level: info
2019-07-23T16:08:08.372+05:30 [INF] Logging: Console keys: [Changes CRUD HTTP]
2019-07-23T16:08:08.372+05:30 [INF] Logging: Redaction level: none
2019-07-23T16:08:08.372+05:30 [INF] requestedSoftFDLimit >= currentHardFdLimit (5000 >= 4096) capping at 4096
2019-07-23T16:08:08.372+05:30 [INF] Configured process to allow 4096 open file descriptors
2019-07-23T16:08:08.372+05:30 [INF] Logging stats with frequency: 1m0s
2019-07-23T16:08:08.372+05:30 [INF] Opening db /hello as bucket “visitor_management”, pool “default”, server http://13.234.203.187:8091
2019-07-23T16:08:08.372+05:30 [INF] GoCBCustomSGTranscoder Opening Couchbase database visitor_management on http://13.234.203.187:8091 as user “Shubham”
2019-07-23T16:08:08.664+05:30 [INF] Successfully opened bucket visitor_management
2019-07-23T16:08:08.664+05:30 [INF] Set query timeouts for bucket visitor_management to cluster:1m15s, bucket:1m15s
2019-07-23T16:08:09.172+05:30 [INF] Initializing indexes with numReplicas: 1…
2019-07-23T16:08:09.336+05:30 [ERR] Error opening database hello: Unable to install index syncDocs: Error installing Couchbase index: sg_syncDocs_x1: 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:965
i had also increase ‘num_index_replicas’ in config file but after that same problem occur. please resolve it
It looks like you only have a single indexer node on Couchbase Server, so you’ll have to set "num_index_replicas": 0, or add an additional indexer node on Couchbase Server in order to meet your required number of replicas.
In that particular error, your client is disconnecting from Sync Gateway part-way through replication. It would be worth looking at the logs from the client side to determine why that is happening.
Are you running Sync Gateway behind any load balancers, or proxies, or connecting directly from the Couchbase Lite device to Sync Gateway?
The changes request being sent is a “normal” feed type by default, also known as a one-shot, where the request ends when the changes response has ‘caught up’ with the latest documents to replicate.
You can try changing the feed option on the request to continuous (documented in the REST API link I provided earlier), to run a continous replication that doesn’t stop when caught up.
You never got back to me with what client you’re using to connect to Sync Gateway, but it sounds like you don’t want to use Couchbase Lite, which does all of this for you in a device-native library.
There’s a lot of information in the documentation which I suggest you read through if you’re writing your own integration with Sync Gateway.