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

[CBM] Error message for failing to parse connection string shouldn't be wrapped

    XMLWordPrintable

Details

    • 0

    Description

      What's the issue?

      cbbackupmgr backup -c couchbases://$connection_string -u $api -p $secret -a $archive -r $repo                                                                                                                     
      Error backing up cluster: bad scheme
      

      2023-04-04T12:44:57.197+01:00 (Cmd) backup -c couchbases://couchbases://cb.matty-test-withsample-byxbxr.sdk.dev.nonprod-project-avengers.com -u <ud>wETEQHHp12pUVoEIbZJFaTJCAuEqc14m</ud> -p ***** -a /Users/mattymaclean/Documents/archive -r repo
      2023-04-04T12:44:57.197+01:00 (Cmd) mounted archive with id: 17cd6bba-b7b4-4b94-b66f-fa1140decd62
      2023-04-04T12:44:57.199+01:00 (Cmd) Error backing up cluster: failed to parse connection string: bad scheme
      

      The error for parsing the connection string is wrapped meaning it's stripped at the top-level, causing a context-less error message.

      What's the fix?
      We shouldn't wrap the "failed to parse connection string" error.

      Attachments

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

        Activity

          People

            james.lee James Lee
            james.lee James Lee
            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