Details
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
- relates to
-
MB-26287 CLONE - couchbase-cli cluster-init failed to accept --cluster-username and --cluster-password after first success run
- Closed