Command line interface adminstration/ Silent Installation
Hi All,
I need to configure the couchbase server on command line interface on standalone system. I have tried the web console configuration and is perfectly working fine. But with CLI, I am not able to set password/username.
I have tried this on a standalone system:
1.
/bin/couchbase-cli node-init -c 10.58.127.3:8091 --node-init-username=Administrator --node-init-password=couchbase --cluster-init-port=8080 --node-init-ramsize=5192
I get this - ERROR: option --node-init-username not recognized.
2.
couchbase-cli node-init -c 10.58.127.3:8091 -u Administrator -p couchbase
ERROR: command: node-init: 10.58.127.3:8091, (111, 'Connection refused')
Please help me out.
Thanks & regards
Bharath V
Thanks a lot mikew. Its working!
I thought for a standalone I have to use node-init.
@mikew, I am getting a new problem . After I install the rpm, I go to /opt/couchbase/bin and execute the couchbase-cli commands, but I am getting the couchbase-cli command not found. I have to execute as ./couchbase-cli COMMAND, then it works. I did not get it the first time I installed it on the very same system.Does it have dependencies?
Also please when I am trying to add a node to cluster using this command:
couchbase-cli server-add -c 10.58.127.3 --server-add=10.58.127.5:8091 -u Administrator -p password
I get this:
ERROR: unable to server-add 10.58.127.3:8091 (400) Bad Request
[u'Adding nodes to not provisioned nodes is not allowed.']
ERROR: command: server-add: 10.58.127.6:8091, 2
Please help!
Hi,
If my understanding is correct, you are doing the process as follows,
Shell# cd /opt/couchbase/bin
Shell# couchbase-cli COMMAND.... (after which it throws errors)
Instead using Shell# cd /opt/couchbase/bin
Shell# ./couchbase-cli COMMAND...., it works. Is that your question why adding ./ in front of Couchbase-cli.
If my understanding is wrong, please correct me.
Thanks,
Neo
Got it, thanks Neo!
Cheers, Happy New Year...
Thanks,
Neo
You need to use --cluster-init-username=Administrator –-cluster-init-password=password.