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

couchbase-cli - not able to add server

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Linux 64-bit

      Description

      I am trying to add a server using couchbase-cli. Command :

      ./couchbase-cli server-add -c caper-002.hq.northscale.net:8091 --server-add=caper-004.hq.northscale.net:8091 -u Administrator -p password

      and getting the following error :

      ERROR: unable to server-add caper-004.hq.northscale.net:8091 (400) Bad Request
      [u'Prepare join failed. Authentication failed. Verify username and password. Got HTTP status 401 from REST call post to http://caper-004.hq.northscale.net:8091/engageCluster2. Body was: []']
      ERROR: command: server-add: caper-002.hq.northscale.net:8091, 2

      Tried using IP address instead of hostname :

      ./couchbase-cli server-add -c caper-002.hq.northscale.net:8091 --server-add=10.3.3.96:8091 -u Administrator -p password

      but getting the same error:

      ERROR: unable to server-add 10.3.3.96: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.3.3.96:8091/engageCluster2. Body was: []']
      ERROR: command: server-add: 10.3.3.100:8091, 2

      Build used : 2.0.2-769-rel

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

        Activity

        Hide
        maria Maria McDuff (Inactive) added a comment -

        just synced with Bin. He is working on this at the moment....

        Show
        maria Maria McDuff (Inactive) added a comment - just synced with Bin. He is working on this at the moment....
        Hide
        maria Maria McDuff (Inactive) added a comment -

        per bug scrub, moving to 2.1.

        Show
        maria Maria McDuff (Inactive) added a comment - per bug scrub, moving to 2.1.
        Hide
        bcui Bin Cui (Inactive) added a comment -

        When adding a node to a cluster, not only u need to give cluster user/password, but also user/password for that node.

        Example:
        ./couchbase-cli server-add -c node1:8091 --server-add=node2:8091 -u Administrator -p password --server-add-user=Administrator --server-add-password=password

        Show
        bcui Bin Cui (Inactive) added a comment - When adding a node to a cluster, not only u need to give cluster user/password, but also user/password for that node. Example: ./couchbase-cli server-add -c node1:8091 --server-add=node2:8091 -u Administrator -p password --server-add-user=Administrator --server-add-password=password
        Hide
        maria Maria McDuff (Inactive) added a comment -

        pls verify per example above.

        Show
        maria Maria McDuff (Inactive) added a comment - pls verify per example above.
        Hide
        shashank Shashank Gupta added a comment -

        Verified. Closing.

        Show
        shashank Shashank Gupta added a comment - Verified. Closing.

          People

          • Assignee:
            shashank Shashank Gupta
            Reporter:
            shashank Shashank Gupta
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes