Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-9932

cluster REST API reference has the wrong info for the backup service

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 7.0.0, Neo
    • rest
    • None
    • DOC-2022-S7, DOC-2022-S8
    • 1

    Description

      This was found from a forum question – 
      https://forums.couchbase.com/t/how-to-specify-backup-service-when-creating-a-single-node-cluster-with-the-rest-api/33263

      There are two issues:

      1) The cluster REST API for creating a new cluster does not give the option for adding a backup service.

      From https://docs.couchbase.com/server/7.0/rest-api/rest-node-provisioning.html
      The below does not have "backup" as one of the options for services.

      // Setup Services
      curl -u Administrator:password -v -X POST http://[localhost]:8091/node/controller/setupServices
        -d services=[kv | index | n1ql | fts | cbas | eventing]
      

      2) The reference on "Adding Nodes to Clusters" say to use "cbbs" to specify the Backup Service, but that is incorrect. If you use "cbbs", you get an error. Need to use "backup".
      From https://docs.couchbase.com/server/7.0/rest-api/rest-cluster-addnodes.html

      curl -u [admin]:[password]
        http://[localhost]:8091/controller/addNode
        -d hostname=[IPaddress]
        -d user=[username]
        -d password=[password]
        -d services=[kv|index|n1ql|fts|cbas|eventing|cbbs] <--- Not "cbbs", should be "backup".
      

      Attachments

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

        Activity

          People

            tony.hillman Tony Hillman (Inactive)
            hyun-ju.vega Hyun-Ju Vega
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty