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

[Import/Export] Query cluster/bucket level backup operations are not disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.2
    • 7.0.2, 7.0.3, 7.1.0, 7.1.1
    • tools
    • Untriaged
    • 1
    • Yes

    Description

      What's the issue?
      Users may be faced with the given error when using 'cbexport'.

      % cbexport json --cluster couchbases://cb.s4wvrhxwbjxw5ati.cloud.couchbase.com --bucket testbucket1 --format lines -u testuser1 -p 'Abc!1234'  --no-ssl-verify  -o testbucket1.json  
      JSON export failed: internal server error executing 'GET' request to '/api/v1/backup': {"caller":"auth:386","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."}
      

      This is because the Query cluster/bucket level backup operations are not disabled for 'cbexport', and should be.

      What's the fix?
      Both 'cbimport' and 'cbexport' should disable these operations.

      Attachments

        For Gerrit Dashboard: MB-53000
        # Subject Branch Project Status CR V

        Activity

          People

            gilad.kalchheim Gilad Kalchheim
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty