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

Failed to restore backup items into bucket due to missing files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Test Blocker
    • 3.0
    • 3.0
    • tools
    • Security Level: Public
    • None
    • centos 6.4 64-bit
    • Centos 64-bit
    • Unknown

    Description

      Install couchbase server 3.0.0-513 on 2 nodes cluster
      10.3.121.17
      10.6.2.139
      Copy ep.so from build 3.0.0-403 into these 2 nodes cluster.
      Do full backup data from default bucket with 1 replica.
      /opt/couchbase/bin/cbbackup http://10.3.121.17:8091 /backup/backup-1
      ####################################### 200.0% (200000/estimated 100000 msgs)
      bucket: default, msgs transferred...
      : total | last | per sec
      byte : 20937720 | 20937720 | 520355.9
      done

      Delete default bucket.
      Create default bucket again.
      Do cbrestore into default bucket. Got exception error

      root@cen-2517 ~]# /opt/couchbase/bin/cbrestore /backup/backup-1/ http://10.3.121.17:8091 --bucket-source=default
      Exception in thread w0:
      Traceback (most recent call last):
      File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
      self.run()
      File "/usr/lib64/python2.6/threading.py", line 484, in run
      self._target(*self.args, **self._kwargs)
      File "/opt/couchbase/lib/python/pump.py", line 282, in run_worker
      source_map, sink_map, self.ctl, curx).run()
      File "/opt/couchbase/lib/python/pump.py", line 339, in run
      rv_batch, batch = self.source.provide_batch()
      File "/opt/couchbase/lib/python/pump_bfd.py", line 275, in provide_batch
      "data-*.cbb")
      File "/opt/couchbase/lib/python/pump_bfd.py", line 390, in list_files
      for p in BFD.get_precessors(latest_dir):
      File "/opt/couchbase/lib/python/pump_bfd.py", line 68, in get_precessors
      json_file = open(os.path.join(parent_dir, "meta.json"), "r")
      IOError: [Errno 2] No such file or directory: '/backup/backup-1/2014-03-26T230146Z/2014-03-26T230147Z-diff/bucket-default/node-10.6.2.139%3A8091/meta.json'

      Traceback (most recent call last):
      File "/opt/couchbase/lib/python/cbrestore", line 12, in <module>
      pump_transfer.exit_handler(pump_transfer.Restore().main(sys.argv))
      File "/opt/couchbase/lib/python/pump_transfer.py", line 86, in main
      rv = pumpStation.run()
      File "/opt/couchbase/lib/python/pump.py", line 126, in run
      rv = self.transfer_bucket_msgs(source_bucket, source_map, sink_map)
      File "/opt/couchbase/lib/python/pump.py", line 215, in transfer_bucket_msgs
      source_map)
      File "/opt/couchbase/lib/python/pump_bfd.py", line 360, in total_msgs
      "data-*.cbb")
      File "/opt/couchbase/lib/python/pump_bfd.py", line 390, in list_files
      for p in BFD.get_precessors(latest_dir):
      File "/opt/couchbase/lib/python/pump_bfd.py", line 68, in get_precessors
      json_file = open(os.path.join(parent_dir, "meta.json"), "r")
      IOError: [Errno 2] No such file or directory: '/backup/backup-1/2014-03-26T230146Z/2014-03-26T230147Z-diff/bucket-default/node-10.6.2.139%3A8091/meta.json'
      [root@cen-2517 ~]#

      Attachments

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

        Activity

          People

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