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

Using couchbase-cli to setup couchbase(cluster-init) on non default port returns error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • bug-backlog
    • 2.0
    • tools
    • Security Level: Public
    • build#1965
    • Untriaged

    Description

      Using couchbase-cli to setup couchbase on non default port returns error. Though the cluster gets initialized, the cluster-init-ramsize is not used.

      Steps to reproduce:

      1. Install build 1965 on linux.

      2. Use couchbase-cli to init cluster - Returns error. Seems its still trying to connect to 8091 after init.
      root@ubuntu1104-64:/opt/couchbase/bin# ./couchbase-cli cluster-init -c 10.3.3.96:8091 --cluster-init-username=Administrator --cluster-init-password=password --cluster-init-port=8080 --cluster-init-ramsize=1024

      SUCCESS: init 10.3.3.96
      ERROR: command: cluster-init: 10.3.3.96:8091, [Errno 111] Connection refused

      3. Verify the ram quota. Incorrect Ram quota has been set.

      root@ubuntu1104-64:/opt/couchbase/bin# ./couchbase-cli server-info -c 10.3.3.96:8080 -u Administrator -p password

      "ram":

      { "quotaTotal": 3865051136, "quotaUsed": 0, "total": 6442450944, "used": 1599672320, "usedByData": 0 }

      Expected behavior when default port is used:

      1. Install build 1965 on linux.

      2. Use couchbase-cli to init cluster.

      root@ubuntu1104-64:/opt/couchbase/bin# ./couchbase-cli cluster-init -c 10.3.3.104:8091 --cluster-init-username=Administrator --cluster-init-password=password --cluster-init-port=8091 --cluster-init-ramsize=1024

      SUCCESS: init 10.3.3.104
      SUCCESS: init 10.3.3.104

      3. Verify the ram quota.

      root@ubuntu1104-64:/opt/couchbase/bin# ./couchbase-cli server-info -c 10.3.3.104:8091 -u Administrator -p password

      "ram":

      { "quotaTotal": 1073741824, "quotaUsed": 0, "total": 6442450944, "used": 1491410944, "usedByData": 0 }

      Attachments

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

        Activity

          People

            steve Steve Yen
            deepkaran.salooja Deepkaran Salooja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty