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

cbbackupmgr output shows backup successful but no data in backup repo

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 6.5.0
    • 6.5.0
    • tools
    • Centos 7.6 64-bit
    • Untriaged
    • Centos 64-bit
    • Yes

    Description

      Install Couchbase server 6.5.0-2452 on a centos 7.6 server.
      Set with services kv, index, n1ql and fts
      Create default bucket
      Load 1000 docs to default bucket.
      Backup cluster using cbbackupmrg

      [root@localhost ~]# rm -rf /tmp/entbackup/*
      [root@localhost ~]# /opt/couchbase/bin/cbbackupmgr config -a /tmp/entbackup/ -r backup
      Backup repository `backup` created successfully in archive `/tmp/entbackup/`
      [root@localhost ~]#  /opt/couchbase/bin//cbbackupmgr backup --archive /tmp/entbackup --repo backup --cluster http://12.11.10.129:8091 --username Administrator  --password password  
       
      Backing up to 2019-02-26T14_59_35.31413586-08_00
      Copied all data in 4.02s (Avg. 154.83KB/Sec)                                                                                                                                                          1000 items / 619.31KB
      default                 [=========================================================================================================================================================================================] 100.00%
       
      Backup successfully completed
      Backed up bucket "default" succeeded
      Mutations backedup; 1000, Mutations failed to backup: 0
      Deletions backedup: 0, Deletions failed to backup: 0
      [root@localhost ~]# 
      

      Check data in repo, show no docs in its.

      [root@localhost ~]#  /opt/couchbase/bin//cbbackupmgr list --archive /tmp/entbackup
      Could not get data for shard 0 of backup '/tmp/entbackup/backup/2019-02-26T14_59_35.31413586-08_00/default-2a51ee445af2557fcc50210492172b8e/data'
      Could not get data for shard 1 of backup '/tmp/entbackup/backup/2019-02-26T14_59_35.31413586-08_00/default-2a51ee445af2557fcc50210492172b8e/data'
      Could not get data for shard 2 of backup '/tmp/entbackup/backup/2019-02-26T14_59_35.31413586-08_00/default-2a51ee445af2557fcc50210492172b8e/data'
      Could not get data for shard 3 of backup '/tmp/entbackup/backup/2019-02-26T14_59_35.31413586-08_00/default-2a51ee445af2557fcc50210492172b8e/data'
      Could not get data for shard 4 of backup '/tmp/entbackup/backup/2019-02-26T14_59_35.31413586-08_00/default-2a51ee445af2557fcc50210492172b8e/data'
      Could not get data for shard 5 of backup '/tmp/entbackup/backup/2019-02-26T14_59_35.31413586-08_00/default-2a51ee445af2557fcc50210492172b8e/data'
      Could not get data for shard 6 of backup '/tmp/entbackup/backup/2019-02-26T14_59_35.31413586-08_00/default-2a51ee445af2557fcc50210492172b8e/data'
       
      ..........
      ..........
      Could not get data for shard 1023 of backup '/tmp/entbackup/backup/2019-02-26T14_59_35.31413586-08_00/default-2a51ee445af2557fcc50210492172b8e/data'
      Backup `/tmp/entbackup/backup/2019-02-26T14_59_35.31413586-08_00/default-2a51ee445af2557fcc50210492172b8e/data` is either empty or it got interrupted
       Size      Items          Name
       644B      -              /
       644B      -              + backup
       644B      -                  + 2019-02-26T14_59_35.31413586-08_00
       644B      -                      + default
       4B        0                          analytics.json
       409B      0                          bucket-config.json
       0B        0                          + data
       0B        0                              1024 Shards
       2B        0                          full-text.json
       227B      0                          gsi.json
       2B        0                          views.json
      [root@localhost ~]#
      

      Attachments

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

        Activity

          Would it be possible to get the the data archive? As it looks to me as you only inserted 1000 keys 24 of the shards will be empty and that may cause some issues with the list command. I believe that if you where to restore the data all data would be present.

          carlos.gonzalez Carlos Gonzalez Betancort (Inactive) added a comment - Would it be possible to get the the data archive? As it looks to me as you only inserted 1000 keys 24 of the shards will be empty and that may cause some issues with the list command. I believe that if you where to restore the data all data would be present.

          After futher investigation i have reproduced the issue and it is caused by a missing line that was deleted when doing conflict resolution, this is an issue with the list command that should be easy to solve.

          carlos.gonzalez Carlos Gonzalez Betancort (Inactive) added a comment - After futher investigation i have reproduced the issue and it is caused by a missing line that was deleted when doing conflict resolution, this is an issue with the list command that should be easy to solve.

          Could any one review this fix so it could merge into MH build?
          Thanks

          thuan Thuan Nguyen added a comment - Could any one review this fix so it could merge into MH build? Thanks

          Build couchbase-server-6.5.0-2510 contains backup commit cb46197 with commit message:
          MB-33180 Fix issue in cbbackupmgr --list

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-2510 contains backup commit cb46197 with commit message: MB-33180 Fix issue in cbbackupmgr --list
          thuan Thuan Nguyen added a comment -

          Verified on build 6.5.0-3561

          thuan Thuan Nguyen added a comment - Verified on build 6.5.0-3561

          People

            thuan Thuan Nguyen
            thuan Thuan Nguyen
            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