Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-33504

Index service responding with HTTP on the HTTPS port

    XMLWordPrintable

Details

    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            r.kalyanasundaram Ramalingam Kalyanasundaram [X] (Inactive)
            thuan Thuan Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty