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

Unable to create index when enforce TLS is enabled

    XMLWordPrintable

Details

    Description

      Build: 7.0.2-6611

      • Create 4 node cluster (2-KV , 1-index:n1ql, 1-eventing )
      • Enable N2N=strict 

      ./couchbase-cli node-to-node-encryption -c 127.0.0.1:8091 --username Administrator --password password --enable
       
      ./couchbase-cli setting-security --cluster-encryption-level  strict --set -c 127.0.0.1:8091 --username Administrator --password password 

      • Create a index 

      curl --location --request POST 'https://172.23.109.175:19102/createIndex' \--header 'Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==' \--header 'Content-Type: application/json' \--data-raw '{"index": {"bucket": "bucket-1","collection": "collection-1","deferred": false,"exprType": "N1QL","isPrimary": false,"name": "index0","partitionKey": "","partitionScheme": "SINGLE","scope": "scope-1","secExprs": ["`alt_email`"],"using": "memdb","where": ""},"type": "create","version": 1}'
       
       
      response : 500
      {    "code": "error",    "error": "Storage Mode Mismatch memdb"}
      

      error logs

      [ns_server:error,2021-09-01T08:05:44.571-07:00,ns_1@172.23.109.175:service_status_keeper_worker<0.22808.312>:rest_utils:get_json:57]Request to (indexer) getIndexStatus with headers [] failed: {error,
                                                                   {econnrefused,
                                                                    [{lhttpc_client,
                                                                      send_request,
                                                                      1,
                                                                      [{file,
                                                                        "/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/lhttpc/lhttpc_client.erl"},
                                                                       {line,220}]},
                                                                     {lhttpc_client,
                                                                      execute,9,
                                                                      [{file,
                                                                        "/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/lhttpc/lhttpc_client.erl"},
                                                                       {line,169}]},
                                                                     {lhttpc_client,
                                                                      request,9,
                                                                      [{file,
                                                                        "/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/lhttpc/lhttpc_client.erl"},
                                                                       {line,
                                                                        93}]}]}}
      [ns_server:error,2021-09-01T08:05:44.572-07:00,ns_1@172.23.109.175:service_status_keeper-index<0.22459.312>:service_status_keeper:handle_cast:103]Service service_index returned incorrect status 

      Tried creating index via UI, query worked fine but no index is showing up

       

      Attachments

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

        Activity

          People

            jeelan.poola Jeelan Poola
            vikas.chaudhary Vikas Chaudhary
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty