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

couchbase-cli reset-admin-password help shows incorrect instruction

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 5.5.0
    • 5.5.0
    • tools
    • Centos 7.4 64-bit
    • Untriaged
    • Centos 64-bit
    • No

    Description

      Install Couchbase server 5.5.0-2938 on a centos server.

      Run command to reset admin password on local host

       /opt/couchbase/bin/couchbase-cli reset-admin-password -c localhost:8091 -u Administrator -p password --new-password aaa

      Fail to reset admin password
      ERROR: unrecognized arguments: -c localhost:8091 -u Administrator -p password

      Go to help menu to find the correct command syntax.  It still show -c flag for cluster.

       

       

      COUCHBASE-CLI-RESE(1)                                                                                           Couchbase CLI Manual                                                                                          COUCHBASE-CLI-RESE(1)
       
      NAME
             couchbase-cli-reset-admin-password - Resets the Couchbase Server administrator password
       
      SYNOPSIS
             couchbase-cli reset-admin-password [--regenerate] [--new-password <password>]
                       [--port <port>]
       
      DESCRIPTION
             This command is used to reset the built-in Couchbase Server Administrator password. There is only one built-in Administrator account, which is managed separately from the internal and external Administrator users. External and internal
             Administrator accounts can be managed using the couchbase-cli-user-manage(1) command.
       
             The reset-admin-password command must be run locally on a node that is part of the cluster (i.e. must connect to the host the command is run on). This is required, as reset-admin-password relies on a local authentication token, which is
             used to authenticate with the server and change the password. As a result, the command does not require credentials to be passed.
       
      OPTIONS
             -c, --cluster
                 Specifies the hostname of a node in the cluster. See the HOST FORMATS section for more information on specifying a hostname.
       
             --new-password <password>
                 Sets the password for the Couchbase Server administrator user to the value specified by the argument. If no password is specified, the command prompts the user for the new password through non-echoed stdin.
       
             --regenerate
                 Sets the password for the Couchbase Server administrator user to a randomly generated value. The new password is printed to the command line after the password is changed.
       
             --port
                 Specify the REST API port of the locally running Couchbase Server. If no port is specified the default port 8091 is used.
       
      HOST FORMATS
             When specifying a host for the couchbase-cli command the following formats are expected:
       
             ·   couchbase://<addr>
       
             ·   <addr>:<port>
       
             ·   http://<addr>:<port>
       
             It is recommended to use the couchbase://<addr> format for standard installations. The other two formats allow an option to take a port number which is needed for non-default installations where the admin port has been set up on a port
             other that 8091.
       
      EXAMPLES
             To change the administrator password to new_pwd, run the following command:
       
                 $ couchbase-cli reset-admin-password --new-password new_pwd
       
             To change the administrator password to a randomly generated value, run the following command. The new password will be printed to stdout if the password is successfully changed:
       
                 $ couchbase-cli reset-admin-password --regenerate
                   jXjNW6LG
       
      ENVIRONMENT AND CONFIGURATION VARIABLES
             CB_REST_USERNAME Specifies the username to use when executing the command. This environment variable allows you to specify a default argument for the -u/--username argument on the command line.
       
             CB_REST_PASSWORD Specifies the password of the user executing the command. This environment variable allows you to specify a default argument for the -p/--password argument on the command line. It also allows the user to ensure that
             their password are not cached in their command line history.
       
      SEE ALSO
             couchbase-cli-setting-ldap(1). couchbase-cli-user-manage(1).
       
      COUCHBASE-CLI
             Part of the couchbase-cli(1) suite
       
      AUTHORS
             Couchbase
       Manual page couchbase-cli-reset-admin-password.1 line 1 (press h for help or q to quit)
      

      Do without -c flag, it works as expected.  So the help menu needs to update the instruction to current behavior.

       

       

      Attachments

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

        Activity

          Build couchbase-server-6.5.0-1035 contains couchbase-cli commit d2c73c3 with commit message:
          MB-30320 Remove -c flags for reset-admin-password from doc

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1035 contains couchbase-cli commit d2c73c3 with commit message: MB-30320 Remove -c flags for reset-admin-password from doc

          Code is in, will need to bump the SHAs in the manifest if we want it in Vulcan, which will need approval.

          pvarley Patrick Varley added a comment - Code is in, will need to bump the SHAs in the manifest if we want it in Vulcan, which will need approval.

          Approved to be included in Vulcan. 

          raju Raju Suravarjjala added a comment - Approved to be included in Vulcan. 

          Thuan Nguyen please verify this once a vulcan build with this fix is ready

          arunkumar Arunkumar Senthilnathan added a comment - Thuan Nguyen please verify this once a vulcan build with this fix is ready
          wayne Wayne Siu added a comment -

          Patrick Varley Mike Wiederhold [X]

          Can you also push the change to Vulcan?  Thanks.

          wayne Wayne Siu added a comment - Patrick Varley Mike Wiederhold [X] Can you also push the change to Vulcan?  Thanks.
          thuan Thuan Nguyen added a comment -

          The fix does not go into vulcan yet.  When it is merged and build in vulcan, I will verify it.

          thuan Thuan Nguyen added a comment - The fix does not go into vulcan yet.  When it is merged and build in vulcan, I will verify it.

          Build couchbase-server-5.5.0-2950 contains couchbase-cli commit d2c73c3 with commit message:
          MB-30320 Remove -c flags for reset-admin-password from doc

          build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.0-2950 contains couchbase-cli commit d2c73c3 with commit message: MB-30320 Remove -c flags for reset-admin-password from doc

          Build couchbase-server-6.0.0-1339 contains couchbase-cli commit d2c73c3 with commit message:
          MB-30320 Remove -c flags for reset-admin-password from doc

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.0-1339 contains couchbase-cli commit d2c73c3 with commit message: MB-30320 Remove -c flags for reset-admin-password from doc

          People

            pvarley Patrick Varley
            thuan Thuan Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty