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

cbbackup fails when CB_REST_USERNAME environmental variable is set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.0.2
    • 3.0
    • tools
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      see CBSE-1492.
      From customer
      "cbbackup fails when CB_REST_USERNAME and CB_REST_PASSWORD are set. I have to unset them for cbbackup to run. Also cbbackup requires me to pass the credentials on the command line vs using the environment variables."

      I have reproduced this issue, I had the same problem.. backups won't run unless the env vars are unset.
      Also, there's no way to securely run backups, the username and password must be on the CLI.

      ./cbbackup couchbase://192.168.37.101:8091 ../backups/ -m full -u Administrator -p Foo -b default
      error: SASL auth failed: 192.168.37.101:11210, user: default
      vagrant@localhost:/opt/couchbase/bin$ env | grep CB_
      CB_REST_USERNAME=Administrator
      CB_REST_PASSWORD=Foo

      $ unset CB_REST_USERNAME
      $ unset CB_REST_PASSWORD
      $ env | grep CB_
      $ ./cbbackup couchbase://192.168.37.101:8091 ../backups/ -m full -u Administrator -p Foo -b default
      ################### 100.0% (1/estimated 1 msgs)
      bucket: default, msgs transferred...
      : total | last | per sec
      byte : 68 | 68 | 116.1
      done

      Attachments

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

        Activity

          People

            bcui Bin Cui (Inactive)
            bcui Bin Cui (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty