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

cbtransfer does not work if there is an ephemeral bucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 6.6.4
    • tools
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Problem
      When cbtransfer is execute when there is a ephemeral the following happens:

      error: no vbucket_states in files: /opt/couchbase/var/lib/couchbase/data/cache/ 
      

      There are two issues:

      • cbtransfer is incorrect looking at bucket it has not been asked to
      • cbtransfer does not work when there is a ephemeral bucket

      Steps to reproduce

      • Setup two one node clusters with just the Data Service.
      • On cluster A:
        • Create a ephemeral bucket called cache
        • Load beer-sample
      • On cluster B:
        • Create a new empty bucket called beer-sample
      • On cluster a run cbtransfer:

      /opt/couchbase/bin/cbtransfer couchstore-files:///opt/couchbase/var/lib/couchbase/data http://10.65.13.28:8091 -u Administrator -p Administrator -b beer-sample -B beer-sample                                                                    
      error: no vbucket_states in files: /opt/couchbase/var/lib/couchbase/data/cache/ 
      

      Workaround
      If the cluster is down move the ephemeral bucket out of the way.

      If the cluster is up-and-running, create a new temporary data directory (e.g. data-temp) then create symbolic links for all the buckets that are being extracted (e.g. the non-ephemeral buckets) into this temporary data directory then re-run the command.

      If neither of these solutions are suitable, the 'cbdatarecovery' binary may be used, although please take note that this won't work in 7.1.0 due to MB-52445.

      Attachments

        Issue Links

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

          Activity

            People

              pvarley Patrick Varley (Inactive)
              pvarley Patrick Varley (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty