Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-1654

Backup directory corrupted after backup and/or log retention duration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.1.0
    • None
    • operator
    • None
    • couchbase/operator-backup:6.5.0
    • 35: Metering, Bugs, Etc., 37: Hibernation, Backup, Prom., 39: Bk Vol. Bugs. Ptwx.
    • 1

    Description

      After a CouchbaseBackup's backupRetention and/or logRetention duration, the backup script fails with the following error...

      2020-08-25 15:30:38,605 - root - INFO - raising backup fail event
      2020-08-25 15:30:38,638 - root - ERROR - Exiting Script. Failed with output: cbbackupmgr error during backup action: b'Error backing up cluster: Error opening archive at /data/backups due to `Not an archive directory`\n'

      The contents of the backup directory are as follows...

      /data/backups # ls -alh
      {{total 48K }}
      drwxrwsr-x 11 1000 root 4.0K Aug 25 15:30 .
      drwxrwsr-x 5 root root 4.0K Aug 17 20:50 ..
      drwxrws--- 13 1000 root 4.0K Aug 24 21:06 couchbase-2020-08-17T20_50_44
      drwxrws--- 26 1000 root 4.0K Aug 19 07:04 couchbase-2020-08-18T08_00_16
      drwxrws--- 27 1000 root 4.0K Aug 20 07:03 couchbase-2020-08-19T08_05_00
      drwxrws--- 26 1000 root 4.0K Aug 21 07:07 couchbase-2020-08-20T08_07_01
      drwxrws--- 26 1000 root 4.0K Aug 22 07:05 couchbase-2020-08-21T08_07_06
      drwxrws--- 26 1000 root 4.0K Aug 23 07:08 couchbase-2020-08-22T08_06_57
      drwxrws--- 26 1000 root 4.0K Aug 24 07:03 couchbase-2020-08-23T08_05_17
      drwxrws--- 16 1000 root 4.0K Aug 24 21:05 couchbase-2020-08-24T08_05_51
      rw------ 1 1000 root 3 Aug 25 15:30 lock.lk
      drwxrws--- 2 1000 root 4.0K Aug 17 20:50 logs

      Currently, the only solution is to delete the backup directory and start from a clean slate.

      Attachments

        Issue Links

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

          Activity

            People

              simon.murray Simon Murray
              jonasrmichel Jonas Michel
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty