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

User with role backup and restore could not run backup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Critical
    • None
    • 7.1.0
    • query
    • Untriaged
    • 1
    • Yes

    Description

      Install Couchbase server 7.1.0-2534 on a centos server.
      Create travel sample bucket.
      Create a user backup with role backup and restore on any bucket in UI
      Open terminal to run backup with cbbackupmgr
      Run backup with user backup. Failed to run backup.
      Error: " Add role backup_admin to allow the query to run"

      2022-03-29T11:17:40.624-07:00 (Cmd) backup -c localhost -u <ud>backup</ud> -p ***** -a /tmp/bk/ -r bk
      2022-03-29T11:17:40.624-07:00 (Cmd) mounted archive with id: 3cef33ca-2174-43df-a7d1-e3a12ed8c8d5
      2022-03-29T11:17:40.635-07:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://localhost:8091/pools'
      2022-03-29T11:17:40.636-07:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://localhost:8091/pools'
      2022-03-29T11:17:40.637-07:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://localhost:8091/pools/default'
      2022-03-29T11:17:40.643-07:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://localhost:8091/pools/default'
      2022-03-29T11:17:40.644-07:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://localhost:8091/pools/default/buckets'
      2022-03-29T11:17:40.651-07:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://localhost:8091/pools/default/buckets'
      2022-03-29T11:17:40.653-07:00 (REST) Successfully connected to cluster | {"enterprise":true,"uuid":"d1fd989a74b8fd72f3df38bc3b0af156","developer_preview":false,"version":{"min_version":"7.1.0","is_mixed_cluster":false},"max_vbuckets":1024,"uniform_vbuckets":true}
      2022-03-29T11:17:40.653-07:00 (Transferable) Backing up cluster d1fd989a74b8fd72f3df38bc3b0af156
      2022-03-29T11:17:40.653-07:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://localhost:8091/pools/default/buckets'
      2022-03-29T11:17:40.659-07:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://localhost:8091/pools/default/buckets'
      2022-03-29T11:17:40.661-07:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://localhost:8091/pools/default/buckets/travel-sample'
      2022-03-29T11:17:40.666-07:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://localhost:8091/pools/default/buckets/travel-sample'
      2022-03-29T11:17:40.666-07:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://localhost:8091/pools/default/buckets/travel-sample/scopes'
      2022-03-29T11:17:40.667-07:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://localhost:8091/pools/default/buckets/travel-sample/scopes'
      2022-03-29T11:17:40.668-07:00 (REST) (Attempt 1) (POST) Dispatching request to 'http://localhost:8091/pools/default/buckets/travel-sample/scopes/@ensureManifest/1'
      2022-03-29T11:17:40.672-07:00 (REST) (Attempt 1) (POST) (200) Received response from 'http://localhost:8091/pools/default/buckets/travel-sample/scopes/@ensureManifest/1'
      2022-03-29T11:17:40.672-07:00 (Archive) (Repo) Creating new backup '2022-03-29T11_17_40.672828073-07_00'
      2022-03-29T11:17:40.711-07:00 (Stats) Starting stat gathering - stat timestamp: 1648577860
      2022-03-29T11:17:40.712-07:00 (Plan) (Cluster) Transferring cluster configuration
      2022-03-29T11:17:40.714-07:00 (Plan) (Cluster) Successfully transferred cluster configuration | {"number":1,"duration":"1.926398ms"}
      2022-03-29T11:17:40.722-07:00 (Plan) (Analytics) Transferring Analytics metadata
      2022-03-29T11:17:40.722-07:00 WARN: (REST) (Attempt 1) (GET) Request to endpoint '/api/v1/backup' failed due to error: failed to prepare request: failed to get host for service 'Analytics': failed to get host for service 'Analytics': Analytics Service is not available -- logging.(*ToolsCommonLogger).Log() at tools_common.go:28
      2022-03-29T11:17:40.722-07:00 (Couchbase) (Source) Will not be transferring Analytics Cluster Metadata because Analytics Service is not available
      2022-03-29T11:17:40.722-07:00 (Plan) (Analytics) Successfully transferred Analytics metadata | {"number":2,"duration":"398.97µs"}
      2022-03-29T11:17:40.726-07:00 (Plan) (Eventing) Transferring Eventing metadata
      2022-03-29T11:17:40.726-07:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://localhost:8096/api/v1/backup'
      2022-03-29T11:17:40.731-07:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://localhost:8096/api/v1/backup'
      2022-03-29T11:17:40.732-07:00 (Plan) (Eventing) Successfully transferred Eventing metadata | {"number":3,"duration":"5.399863ms"}
      2022-03-29T11:17:40.737-07:00 (Plan) (Search) Transferring full text index aliases
      2022-03-29T11:17:40.737-07:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://localhost:8094/api/v1/backup'
      2022-03-29T11:17:40.965-07:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://localhost:8094/api/v1/backup'
      2022-03-29T11:17:40.966-07:00 (Plan) (Search) Successfully transferred full text index aliases | {"number":4,"duration":"228.899936ms"}
      2022-03-29T11:17:41.155-07:00 (Plan) (Query) Transferring Query metadata
      2022-03-29T11:17:41.155-07:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://localhost:8093/api/v1/backup'
      2022-03-29T11:17:41.161-07:00 (REST) (Attempt 1) (GET) (500) Received response from 'http://localhost:8093/api/v1/backup'
      2022-03-29T11:17:41.161-07:00 WARN: (REST) (Attempt 1) (GET) Request to endpoint '/api/v1/backup' failed with status code 500 -- logging.(*ToolsCommonLogger).Log() at tools_common.go:28
      2022-03-29T11:17:41.212-07:00 WARN: (REST) (Attempt 1) (GET) Retrying request to endpoint '/api/v1/backup': which failed with status code 500 -- logging.(*ToolsCommonLogger).Log() at tools_common.go:28
      2022-03-29T11:17:41.212-07:00 (REST) (Attempt 2) (GET) Dispatching request to 'http://localhost:8093/api/v1/backup'
      2022-03-29T11:17:41.213-07:00 (REST) (Attempt 2) (GET) (500) Received response from 'http://localhost:8093/api/v1/backup'
      2022-03-29T11:17:41.213-07:00 WARN: (REST) (Attempt 2) (GET) Request to endpoint '/api/v1/backup' failed with status code 500 -- logging.(*ToolsCommonLogger).Log() at tools_common.go:28
      2022-03-29T11:17:41.264-07:00 WARN: (REST) (Attempt 2) (GET) Retrying request to endpoint '/api/v1/backup': which failed with status code 500 -- logging.(*ToolsCommonLogger).Log() at tools_common.go:28
      2022-03-29T11:17:41.264-07:00 (REST) (Attempt 3) (GET) Dispatching request to 'http://localhost:8093/api/v1/backup'
      2022-03-29T11:17:41.265-07:00 (REST) (Attempt 3) (GET) (500) Received response from 'http://localhost:8093/api/v1/backup'
      2022-03-29T11:17:41.265-07:00 WARN: (REST) (Attempt 3) (GET) Request to endpoint '/api/v1/backup' failed with status code 500 -- logging.(*ToolsCommonLogger).Log() at tools_common.go:28
      2022-03-29T11:17:41.366-07:00 (Cmd) Error backing up cluster: failed to execute cluster operations: failed to transfer Query metadata: failed to get Query metadata: failed to get Query metadata: failed to execute request: failed to execute request: exhausted retry count after 3 retries, last error: internal server error executing 'GET' request to '/api/v1/backup': {"caller":"auth:392","code":13014,"key":"datastore.couchbase.insufficient_credentials","message":"User does not have credentials to run backup cluster metadata. Add role backup_admin to allow the query to run."}
      
      

      I will find last stable version

      Attachments

        Issue Links

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

          Activity

            People

              thuan Thuan Nguyen
              thuan Thuan Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty