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

couchbase-cli cluster-init failed to accept --cluster-username and --cluster-password after first success run

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 4.6.4, 5.1.0
    • 4.6.3
    • tools
    • None
    • Centos 7.2 64-bit
    • Untriaged
    • Centos 64-bit
    • No

    Description

      Install Couchbase Server 4.6.3-4084 on one centos 7.x server.
      At bin directory, initialize cluster. It works as expected.

      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli cluster-init  --cluster=172.23.121.224:8091  --cluster-username Administrator --cluster-password password --cluster-ramsize 256
      SUCCESS: init/edit 172.23.121.224
      

      Then run to set up index storage mode, it does not work any more with long option flag of cluster username and password

      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli cluster-init  --cluster=172.23.121.224:8091  --cluster-username Administrator --cluster-password password --index-storage-setting=memopt
      ERROR: unable to access the REST API - please check your username(-u) and password (-p)
      

      Change to short form, it asked to use cluster edit

      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli cluster-init  --cluster=172.23.121.224:8091  -u Administrator -p password --index-storage-setting=memopt
      Error: cluster is already initialized, use cluster-edit to change settings
      

      Use cluster-edit with long option flag, failed to set index storage

      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli cluster-edit  --cluster=172.23.121.224:8091  --cluster-username Administrator --cluster-password password --index-storage-setting=memopt
      ERROR: Username cannot be empty. Please use -u or set environment variable CB_REST_USERNAME.
      

      Use short form of option flag, it threw out errror

      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli cluster-edit  --cluster=172.23.121.224:8091  -u Administrator -p password --index-storage-setting=memopt
      ERROR: command: cluster-edit: 172.23.121.224:8091, local variable 'output_result' referenced before assignment
      

      I will check which build works on this case.

      Attachments

        Issue Links

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

          Activity

            People

              thuan Thuan Nguyen
              thuan Thuan Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty