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

[Backport to 7.0.2]- Internal Server error is raised while performing backup on a index node using cbbackupmgr

    XMLWordPrintable

Details

    Description

      Steps to reproduce -

      1. Create a KV bucket, scope and collection named
      Bucket Name - ojnEcQ_e%h6PSTcISl_-5-219000
      Scope Name - ewjmBK-5-220000
      Collection Name - 19t9piCEahGf8mn-5-220000
      2. Create dataset on the above created collection.
      3. Use following cbbackupmgr commands to create a backup -

      ./cbbackupmgr config -a /tmp/backups -r example --include-data ojnEcQ_e%h6PSTcISl_-5-219000.ewjmBK-5-220000.19t9piCEahGf8mn-5-220000
      Output - 
      Backup repository `example` created successfully in archive `/tmp/backups`
       
      ./cbbackupmgr backup -a /tmp/backups -r example --cluster couchbase://10.112.205.102 --username Administrator --password password
      Output - 
      Backing up to '2021-06-14T07_57_20.552447117-07_00'
      Transferring GSI index definitions for bucket 'ojnEcQ_e%h6PSTcISl_-5-219000'                                                                                                                                                                      0 items / 0B
      [=                                                                                                                                                                                                                                                     ] 0.68%
      Error backing up cluster: internal server error executing 'GET' request to '/api/v1/bucket/ojnEcQ_e%25h6PSTcISl_-5-219000/backup': {"code":"error","error":"Fail to retrieve local metadata from url 10.112.205.101:9102.","result":{}}
       
      | Transfer
      | --------
      | Status | Avg Transfer Rate | Started At                        | Finished At                     | Duration |
      | Failed | 0B                | Mon, 14 Jun 2021 07:57:20 -0700/s | Mon, 14 Jun 2021 07:57:20 -0700 | 371ms    |
      

      A similar issue was observed for backup API which was fixed - https://issues.couchbase.com/browse/MB-45724

      Attachments

        Issue Links

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

          Activity

            jeelan.poola Jeelan Poola added a comment -

            Mihir Kamdar We should take this backport into 7.0.1. Fix is simple and it's ready to be back ported. Request inclusion. Thank you!

            jeelan.poola Jeelan Poola added a comment - Mihir Kamdar We should take this backport into 7.0.1. Fix is simple and it's ready to be back ported. Request inclusion. Thank you!

            Build couchbase-server-7.0.1-6002 contains indexing commit 4d11ff5 with commit message:
            MB-47047: [Backport to 7.0.1]-Internal Server error is raised while performing backup on a index node using cbbackupmgr

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.1-6002 contains indexing commit 4d11ff5 with commit message: MB-47047 : [Backport to 7.0.1] -Internal Server error is raised while performing backup on a index node using cbbackupmgr

            Validate test on 7.0.2-6503

             

            [root@node1-cb660-centos7 bin]# ./cbbackupmgr config -a /tmp/backups -r example --include-data ojnEcQ_e%h6PSTcISl_-5-219000.ewjmBK-5-220000.19t9piCEahGf8mn-5-220000
            Backup repository `example` created successfully in archive `/tmp/backups`
            [root@node1-cb660-centos7 bin]# ./cbbackupmgr backup -a /tmp/backups -r example --cluster couchbase://10.112.205.101 --username Administrator --password password
            Backing up to '2021-08-18T09_39_39.44625017Z'
            Copied all data in 3.565s (Avg. 1.88MiB/Sec)                                                                                                                                                                                                              10000 items / 5.63MiB
            [=====================================================================================================================================================================================================================================================================] 100.00%
             
             
            | Transfer
            | --------
            | Status    | Avg Transfer Rate | Started At                        | Finished At                     | Duration |
            | Succeeded | 1.88MiB           | Wed, 18 Aug 2021 09:39:39 +0000/s | Wed, 18 Aug 2021 09:39:43 +0000 | 3.591s   |
             
             
            | Bucket
            | ------
            | Name                         | Status    | Transferred | Avg Transfer Rate | Started At                      | Finished At                     | Duration |
            | ojnEcQ_e%h6PSTcISl_-5-219000 | Succeeded | 5.63MiB     | 1.88MiB/s         | Wed, 18 Aug 2021 09:39:39 +0000 | Wed, 18 Aug 2021 09:39:43 +0000 | 3.307s   |
            |
            | Mutations                    | Deletions                    | Expirations                  |
            | ---------                    | ---------                    | -----------                  |
            | Received | Errored | Skipped | Received | Errored | Skipped | Received | Errored | Skipped |
            | 10000    | 0       | 0       | 0        | 0       | 0       | 0        | 0       | 0       |
             
             
            Backup completed successfully
            

            hemant.rajput Hemant Rajput added a comment - Validate test on 7.0.2-6503   [root @node1 -cb660-centos7 bin]# ./cbbackupmgr config -a /tmp/backups -r example --include-data ojnEcQ_e%h6PSTcISl_- 5 - 219000 .ewjmBK- 5 - 220000 .19t9piCEahGf8mn- 5 - 220000 Backup repository `example` created successfully in archive `/tmp/backups` [root @node1 -cb660-centos7 bin]# ./cbbackupmgr backup -a /tmp/backups -r example --cluster couchbase: //10.112.205.101 --username Administrator --password password Backing up to '2021-08-18T09_39_39.44625017Z' Copied all data in 3 .565s (Avg. 1 .88MiB/Sec)                                                                                                                                                                                                              10000 items / 5 .63MiB [=====================================================================================================================================================================================================================================================================] 100.00 %     | Transfer | -------- | Status    | Avg Transfer Rate | Started At                        | Finished At                     | Duration | | Succeeded | 1 .88MiB           | Wed, 18 Aug 2021 09 : 39 : 39 + 0000 /s | Wed, 18 Aug 2021 09 : 39 : 43 + 0000 | 3 .591s   |     | Bucket | ------ | Name                         | Status    | Transferred | Avg Transfer Rate | Started At                      | Finished At                     | Duration | | ojnEcQ_e%h6PSTcISl_- 5 - 219000 | Succeeded | 5 .63MiB     | 1 .88MiB/s         | Wed, 18 Aug 2021 09 : 39 : 39 + 0000 | Wed, 18 Aug 2021 09 : 39 : 43 + 0000 | 3 .307s   | | | Mutations                    | Deletions                    | Expirations                  | | ---------                    | ---------                    | -----------                  | | Received | Errored | Skipped | Received | Errored | Skipped | Received | Errored | Skipped | | 10000     | 0       | 0       | 0         | 0       | 0       | 0         | 0       | 0       |     Backup completed successfully

            People

              hemant.rajput Hemant Rajput
              yogendra.acharya Yogendra Acharya
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty