Problem in adding a server to a cluster
Hi All,
I am trying to add a server to a one more node to form a cluster using this command:
1. bin/couchbase-cli server-add -c 10.58.127.3 -u Administrator -p password --server-add=10.58.127.6:8091 --server- add-username=Administrator --server-add-password=password
and also tried with this:
2. bin/couchbase-cli server-add -c 10.58.127.3 --server-add=10.58.127.6:8091 -u Administrator -p password
But I get this error
ERROR: unable to server-add 10.58.127.6:8091 (400) Bad Request
[u'Adding nodes to not provisioned nodes is not allowed.']
ERROR: command: server-add: 10.58.127.3:8091, 2
Please help!
Hi scalabl3,
Thanks a lot for the reply. But still it's not working. Also for the server list command, it throws error i.e.,
bin/couchbase-cli server-list -c 10.58.127.3:8091 -u Administrator -p password
ERROR: command: server-list: 10.58.127.3:8091, 'error_msg'
But UI setup is totally working fine. Could you please let me know how I can track these steps on command line when I setup or execute a command on UI i.e., localhost:8091/
Please help!
Hi,
I am able to add the server just fine using the following command
shell> bin/couchbase-cli server-add -c --server-add=:8091 -u Administrator -p ******
Iam able to get the error 'command: server-add: 10.171.90.62:8091, 2" only in case of password incorrect
Error for not mentioning the port number is "ERROR: unable to server-add 10.170.147.142:8091 (400) Bad Request
[u'Prepare join failed. Authentication failed. Verify username and password. Got HTTP status 401 from REST call post to http://10.170.147.142:8091/engageCluster2. Body was: []']
ERROR: command: server-add: 10.171.90.62:8091, 2"
Error for Incorrect IP for the adding Host is "
ERROR: unable to server-add 10.170.147.1455:8091 (400) Bad Request
[u'Failed to reach erlang port mapper. Failed to resolve address for "10.170.147.1455". The hostname may be incorrect or not resolvable.']
ERROR: command: server-add: 10.171.90.62:8091, 2".
Please let me know if you have any questions.
Thanks,
Neo
Glad you were able to solve it! I was going to ask if you had an incorrect password...
@Neo-Matrix .. Thanks for the reply.
The thing is after I setup the cluster on UI, I am able to remove and add servers from CLI. So is it not possible to do it right away from CLI. Or am I doing anything wrong? Should there be any pre-configurations required in the servers before executing these commands?
Please let me know from the beginning how to do it on CLI from step 1. It would be really helpful.
Hi scalabl3,
My problem is still not solved . Please let me know the steps to follow right from scratch in CLI for cluster setup. Would really appreciate it. Please help!
Hi,
What i really did was, installed couchbase in a Linux VM and then added it to the existing couchbase cluster with the CLI. So there is no per-defined settings required. I would suggest you to reinstall the couchbase and then try it. If you are using the CB version 1.8.1, please install the hotfix as recommended.
Hi Scalabl3, I reproduced the issue using a incorrect password(intentional). :)
Thanks,
Neo
Hi
I have got the following error:
./membase server-add -c 192.168.1.12:8091 -u Administrator -p password --server-add=192.168.1.13:8091
ERROR: unable to server-add 192.168.89.53:8091 (400) Bad Request
[u'Join completion call failed. Failed to start ns_server cluster processes back. Logs might have more details.']
After run this membase is stopped automatically and can not be restarted untill removing config.dat.
Thanks in advance.
In the bin/couchbase-cli server-add -c 10.58.127.3 -u Administrator -p password --server-add=10.58.127.6:8091 --server- add-username=Administrator --server-add-password=password
You forgot the port for the 10.58.127.3, which might be the cause, other than that it seems like it's formatted correctly, reply to thread if that didn't work.
So it should be:
bin/couchbase-cli server-add -c 10.58.127.3:8091 -u Administrator -p password --server-add=10.58.127.6:8091 --server- add-username=Administrator --server-add-password=password
@scalabl3
Technical Evangelist
Couchbase Inc.