Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Problem in adding a server to a cluster

8 replies [Last post]
  • Login or register to post comments
Mon, 12/17/2012 - 02:11
kaprikorn07
Offline
Joined: 12/07/2012
Groups: None

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!

Top
  • Login or register to post comments
Mon, 12/17/2012 - 14:48
scalabl3
Offline
Joined: 07/18/2012
Groups:

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.
 

Top
  • Login or register to post comments
Tue, 12/18/2012 - 04:05
kaprikorn07
Offline
Joined: 12/07/2012
Groups: None

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!

Top
  • Login or register to post comments
Wed, 12/19/2012 - 07:29
Neo-matrix
Offline
Joined: 10/15/2012
Groups: None

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

Top
  • Login or register to post comments
Wed, 12/19/2012 - 12:48
scalabl3
Offline
Joined: 07/18/2012
Groups:

Glad you were able to solve it! I was going to ask if you had an incorrect password...

__________________

@scalabl3
Technical Evangelist
Couchbase Inc.
 

Top
  • Login or register to post comments
Wed, 12/19/2012 - 22:27
kaprikorn07
Offline
Joined: 12/07/2012
Groups: None

@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.

Top
  • Login or register to post comments
Wed, 12/19/2012 - 22:29
kaprikorn07
Offline
Joined: 12/07/2012
Groups: None

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!

Top
  • Login or register to post comments
Fri, 12/28/2012 - 03:38
Neo-matrix
Offline
Joined: 10/15/2012
Groups: None

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

Top
  • Login or register to post comments
Fri, 01/25/2013 - 04:08
imrituraj
Offline
Joined: 01/25/2013
Groups: None

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.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker