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

CLONE [5.1.0] - couchbase-cli fails to initialize all services in CE due to storage mode point to plasma

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 5.0.0
    • 5.5.0
    • tools
    • Triaged
    • Yes

    Description

      Install Couchbase Server Community Edition (CE) 5.0.0 on centos 7.3 server
      Initialize this node using couchbase cli

      /opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1 --cluster-username Administrator --cluster-password password --cluster-ramsize 2000 --cluster-index-ramsize 256 --cluster-fts-ramsize=256 --services=data,index,query,fts --index-storage-setting default
       
      ERROR: storageMode - Storage mode can be set to 'plasma' only if the cluster is Spock enterprise edition.
       
       /opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1 --cluster-username Administrator --cluster-password password --cluster-ramsize 2000 --cluster-index-ramsize 256 --cluster-fts-ramsize=256 --services=data,index,query,fts --index-storage-setting memopt
       
      ERROR: storageMode - Memory optimized indexes are restricted to enterprise edition and are not available in the community edition.
       

      There is a workaround of this issue is using Rest API or UI to initialize node with all services
      Rest API commands. It may be executed in order as below.

      curl -X POST http://127.0.0.1:8091/pools/default -d memoryQuota=2000  -d indexMemoryQuota=256 -d ftsMemoryQuota=256
      curl -X POST http://127.0.0.1:8091/node/controller/setupServices -d "services=kv,index,n1ql,fts"
      curl -X POST http://127.0.0.1:8091/settings/indexes -d "storageMode=forestdb"
      curl -X POST http://127.0.0.1:8091/settings/web -d "username=Administrator&password=password&port=8091&"
      

      Attachments

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

        Activity

          Install Couchbase Server 5.1.0-1552 community edition
          couchbase-cli set storage memory correctly to default value

          [root@s44015 ~]# more /opt/couchbase/etc/runtime.ini
          ; Configuration Settings at install-time and runtime. Couchbase may
          ; modify this file, for example, at runtime when the server is secured
          ; and taken out of Admin Party mode.

          [product]
          title = Couchbase Server
          version = 5.1.0-1552
          license = community

          [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1 --cluster-username Administrator --cluster-password password --cluster-ramsize 2000 --services data --index-storage-setting default
          SUCCESS: Cluster initialized
          [root@s44015 ~]#

          thuan Thuan Nguyen added a comment - Install Couchbase Server 5.1.0-1552 community edition couchbase-cli set storage memory correctly to default value [root@s44015 ~] # more /opt/couchbase/etc/runtime.ini ; Configuration Settings at install-time and runtime. Couchbase may ; modify this file, for example, at runtime when the server is secured ; and taken out of Admin Party mode. [product] title = Couchbase Server version = 5.1.0-1552 license = community [root@s44015 ~] # /opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1 --cluster-username Administrator --cluster-password password --cluster-ramsize 2000 --services data --index-storage-setting default SUCCESS: Cluster initialized [root@s44015 ~] #

          Build couchbase-server-6.5.0-1845 contains query commit 4151373 with commit message:
          MB-27271 pool values

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1845 contains query commit 4151373 with commit message: MB-27271 pool values

          People

            thuan Thuan Nguyen
            mihir.kamdar Mihir Kamdar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty