Details
-
Bug
-
Resolution: Fixed
-
Critical
-
6.5.0
-
Centos 7.6
-
Untriaged
-
Centos 64-bit
-
Yes
-
Critical
Description
The issue was found when doing backups using https and it can be reproduce as follows:
Install Couchbase server 6.5.0-2715 on 2 centos 7.6 server.
Create a cluster
Create default bucket.
Load 1000 docs to default bucket.
Generate certificate from cluster.
Run backup with secure connection. Backup failed to run with error
2019-03-25T13:33:47.638-07:00 (Cmd) backup --archive /tmp/entbackup --repo backup --cluster https://12.11.10.129:18091 --username <ud>Administrator</ud> --password ******** --cacert /root/cert.pem --no-progress-bar -
|
-shards 200 --resume
|
2019-03-25T13:33:47.659-07:00 (Rest) GET https://12.11.10.129:18091/pools 200
|
2019-03-25T13:33:47.661-07:00 (Rest) GET https://12.11.10.129:18091/pools 200
|
2019-03-25T13:33:47.662-07:00 (Cmd) Backing up cluster 5a7086a395ad6df348ac543f8ef293e6
|
2019-03-25T13:33:47.662-07:00 (Plan) Executing transfer plan
|
2019-03-25T13:33:47.662-07:00 (Plan) Transferring GSI index definitions for default to default
|
2019-03-25T13:33:47.672-07:00 (Rest) GET https://12.11.10.129:18091/pools/default/nodeServices 200
|
2019-03-25T13:33:47.674-07:00 ERRO: Indexer error: http: server gave HTTP response to HTTPS client -- plan.(*gsi).execute() at gsi.go:58
|
2019-03-25T13:33:47.674-07:00 (Plan) Transfer plan failed due to error Indexer error: http: server gave HTTP response to HTTPS client
|
2019-03-25T13:33:47.674-07:00 (Cmd) Error backing up cluster: Indexer error: http: server gave HTTP response to HTTPS client
|
panic: runtime error: invalid memory address or nil pointer dereference
|
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x856451]
|
When investigating further it looks like responses on port 19102 are returning HTTP responses instead of https