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

cbbackupmgr failing to backup with an EOF error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.0.0
    • Cheshire-Cat
    • tools
    • Untriaged
    • 1
    • No

    Description

      What's the issue?
      'cbbackupmgr' is failing to create a backup of 7.0.0 clusters due to an EOF error; this should only affect builds from 7.0.0-3344.

      $ cbbackupmgr backup -a ~/Projects/couchbase-archive -r repo -c localhost:9000 -u Administrator -p asdasd --threads 8
      Backing up to '2020-10-08T17_02_32.176087315+01_00'
      Transferring full text index aliases                                                                                                               0 items / 0B
      [                                                                                                                                                       ] 0.19%
      Error backing up cluster: EOF
      

      Looking at the logs, this is because we're failing to execute requests to the collection aware FTS endpoint.

      2020-10-08T17:19:54.264+01:00 ERRO: (REST) (Attempt 1) (GET) Failed to dispatch request to 'http://localhost:9206/api/v1/backup': Get "http://localhost:9206/api/v1/backup": EOF -- rest.(*Request).execute() at request.go:201
      

      Manually looking at what's returned by the endpoint tells us what the issue is; we're receiving an empty body.

      $ curl -u Administrator:asdasd "localhost:9206/api/v1/bucket/default/backup?include=default"
      curl: (52) Empty reply from server
      

      Is there a workaround?
      Yes, once we've created/edited/deleted some FTS indexes/aliases, we will receive a non empty body from FTS.

      $ curl -s -u Administrator:asdasd "localhost:9206/api/v1/bucket/default/backup?include=default" | jq
      {
        "status": "ok",
        "indexDefs": {
          "uuid": "1ea52db434ea0c5d",
          "indexDefs": {},
          "implVersion": "5.5.0"
        }
      }
      

      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
              james.lee James Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty