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

[CBM] Collect log ouput directory not valid error is vague

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 7.0.0
    • 6.6.0, Cheshire-Cat
    • tools
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Problem
      If one gives an invalid output directory to collect logs the returned error is very vage and looks as follows:

      % cbbackupmgr collect-logs -a s3://cloud-bucket/archive --obj-staging-dir ~/backup/staging --obj-endpoint http://localhost:4566 --obj-region region --obj-access-key-id key_id --obj-secret-access-key key --s3-force-path-style -o ~/backup/collects
      Collecting logs from s3://cloud-bucket/archive failed: no such file or directory
      

      The error message makes it look like the archive does not exist when instead is the output directory which is wrong.

      Expectation
      A more infomrative error of the form "output directory /x/y/z does not exist"

      Attachments

        Issue Links

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

          Activity

            People

              james.lee James Lee
              carlos.gonzalez Carlos Gonzalez Betancort (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