Details
-
Bug
-
Resolution: Fixed
-
Critical
-
6.5.0
-
Untriaged
-
Centos 64-bit
-
Unknown
Description
When trying to provision a cluster for 1 SG and 1 CBS with GSI indexing with x509 cert auth, I'm seeing below error.
2019-10-04T05:54:53.214Z ==== Couchbase Sync Gateway/2.7.0(46;0f9e4cd) EE ==== |
2019-10-04T05:54:53.264Z [ERR] Error opening database db: Unable to install index channels: Post https://172.16.1.50:18093/query/service: write tcp 172.16.1.110:47368->172.16.1.50:18093: write: broken pipe -- rest.RunServer() at config.go:1008 |
However, just changing to use "views" in SG config file I'm able to successfully provision the cluster
Working with below config:
{
|
"interface":":4984", |
"adminInterface": "0.0.0.0:4985", |
"maxIncomingConnections": 0, |
"maxCouchbaseConnections": 16, |
"maxFileDescriptors": 90000, |
"compressResponses": false, |
"logging": {"debug": {"enabled": true} }, |
|
|
|
|
"databases":{ |
"db":{ |
"import_docs": "continuous", |
"enable_shared_bucket_access": true, |
"allow_conflicts": false, |
"use_views": true, |
|
|
|
|
|
|
"cacertpath": "/home/sync_gateway/certs/ca.pem", |
"certpath": "/home/sync_gateway/certs/chain.pem", |
"keypath": "/home/sync_gateway/certs/pkey.key", |
|
|
"server":"couchbases://172.16.1.50:", |
"bucket":"travel-sample" |
}
|
}
|
}
|
Throwing error with below SG config:
{
|
"interface":":4984", |
"adminInterface": "0.0.0.0:4985", |
"maxIncomingConnections": 0, |
"maxCouchbaseConnections": 16, |
"maxFileDescriptors": 90000, |
"compressResponses": false, |
"logging": {"debug": {"enabled": true} }, |
|
|
|
|
"databases":{ |
"db":{ |
"import_docs": "continuous", |
"enable_shared_bucket_access": true, |
"allow_conflicts": false, |
"num_index_replicas": 0, |
|
|
|
|
"cacertpath": "/home/sync_gateway/certs/ca.pem", |
"certpath": "/home/sync_gateway/certs/chain.pem", |
"keypath": "/home/sync_gateway/certs/pkey.key", |
|
|
"server":"couchbases://172.16.1.50:", |
"bucket":"travel-sample" |
}
|
}
|
}
|
I tested the same provision code with 6.0.3-2893 and it's working fine without any issue.
Attaching cbcolllect_info and sgcollect_info logs.