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

CBM s3 restore fails with error "failed to open read only index"

    XMLWordPrintable

Details

    Description

      Build: 7.0.0-1902

      Steps:

      Create a bucket with 100 scopes and 1 collection in each scope (including default scope and collection)
      Load 1000 items in each named scope (except default scope)
      Configure backup with s3
      Take backup of the bucket
      Restore to another bucker with same scopes and collections

      Restore fails with error:

      2020-05-03T21:54:55.266-07:00 (Scanworker) (vb 943) Transferring data seqno start 0 seqno end 396
      2020-05-03T21:54:55.267-07:00 (default) (vb 437) Skipping byseq start: 0 end: 0 last
      2020-05-03T21:54:55.267-07:00 ERRO: (Scanworker) (vb 943) Failed to open source vBucket: failed to open vBucket 943: failed to open index: failed to open read only index: stat /tmp/s3obj/tmp/entbackup/backup/2020-05-03T21_12_42.673993609-07_00/default-ec48b2104a8134fc55643dc11d2cead7/data/index_943.sqlite.0: no such file or directory – archive.scanWorker.func1() at source.go:327
      2020-05-03T21:54:55.268-07:00 (Stats) Stopping stat collection
      2020-05-03T21:54:55.269-07:00 (Cmd) Error restoring cluster: failed to execute cluster operations: failed to execute bucket operations: failed to transfer bucket data for bucket 'default': failed to transfer key value data: failed to transfer key value data: failed to open vBucket 943: failed to open index: failed to open read only index: stat /tmp/s3obj/tmp/entbackup/backup/2020-05-03T21_12_42.673993609-07_00/default-ec48b2104a8134fc55643dc11d2cead7/data/index_943.sqlite.0: no such file or directory
      2020-05-03T21:54:55.269-07:00 (Cmd) Restore bucket 'default' failed
      2020-05-03T21:54:55.269-07:00 (Cmd) Mutations restored: 0, Mutations failed to restore: 0
      2020-05-03T21:54:55.269-07:00 (Cmd) Deletions restored: 0, Deletions failed to restore: 0
      2020-05-03T21:54:55.269-07:00 (Cmd) Skipped due to purge number or conflict resolution: Mutations: 0 Deletions: 0

      Attachments

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

        Activity

          People

            owend Daniel Owen
            arunkumar Arunkumar Senthilnathan (Inactive)
            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