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

cbbackupmgr restore fails with EOF message, indexer crashes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 6.5.0
    • secondary-index
    • None
    • Untriaged
    • Unknown

    Description

      I have a backup repository created with an earlier version of Couchbase. When I try to restore to Mad Hatter it using the latest cbbackupmgr, it fails with the message EOF (and the attached log file).

      This may be an indexer problem, I see the following stack dump in indexer.log:

      2019-04-15T13:41:12.840-07:00 [Info] restore to target bucket rainfall
      2019/04/15 13:41:12 http: panic serving [::1]:62208: runtime error: invalid memory address or nil pointer dereference
      goroutine 3380 [running]:
      net/http.(*conn).serve.func1(0xc00ca6c000)
      	/Users/eben/.cbdepscache/exploded/x86_64/go-1.11.6/go/src/net/http/server.go:1746 +0xd0
      panic(0x4abdd00, 0x57a6400)
      	/Users/eben/.cbdepscache/exploded/x86_64/go-1.11.6/go/src/runtime/panic.go:513 +0x1b9
      github.com/couchbase/indexing/secondary/planner.findTopologyByBucket(0x0, 0xc003945140, 0x1, 0xc0122f4888, 0x8, 0x4a294c0)
      	/Users/eben/src/master/goproj/src/github.com/couchbase/indexing/secondary/planner/proxy.go:816 +0x67
      github.com/couchbase/indexing/secondary/planner.ConvertToIndexUsage(0xc0122fa630, 0xc011d99040, 0xc00ffd3120, 0x0, 0x4b8f800, 0x4, 0xc00ffd2fc8, 0x30)
      	/Users/eben/src/master/goproj/src/github.com/couchbase/indexing/secondary/planner/proxy.go:269 +0x73
      github.com/couchbase/indexing/secondary/manager.(*RestoreContext).convertImage(0xc00ffd37d8, 0x0, 0x0)
      	/Users/eben/src/master/goproj/src/github.com/couchbase/indexing/secondary/manager/restore.go:131 +0x948
      github.com/couchbase/indexing/secondary/manager.(*RestoreContext).computeIndexLayout(0xc00ffd37d8, 0x1b, 0xc00ffd3728, 0x1)
      	/Users/eben/src/master/goproj/src/github.com/couchbase/indexing/secondary/manager/restore.go:67 +0x50
      github.com/couchbase/indexing/secondary/manager.(*requestHandlerContext).handleRestoreIndexMetadataRequest(0x57c4240, 0x4d98380, 0xc010a79c00, 0xc0120c8800)
      	/Users/eben/src/master/goproj/src/github.com/couchbase/indexing/secondary/manager/request_handler.go:1096 +0x38f
      github.com/couchbase/indexing/secondary/manager.(*requestHandlerContext).handleRestoreIndexMetadataRequest-fm(0x4d98380, 0xc010a79c00, 0xc0120c8800)
      	/Users/eben/src/master/goproj/src/github.com/couchbase/indexing/secondary/manager/request_handler.go:189 +0x48
      net/http.HandlerFunc.ServeHTTP(0xc000077530, 0x4d98380, 0xc010a79c00, 0xc0120c8800)
      	/Users/eben/.cbdepscache/exploded/x86_64/go-1.11.6/go/src/net/http/server.go:1964 +0x44
      net/http.(*ServeMux).ServeHTTP(0xc003900330, 0x4d98380, 0xc010a79c00, 0xc0120c8800)
      	/Users/eben/.cbdepscache/exploded/x86_64/go-1.11.6/go/src/net/http/server.go:2361 +0x127
      net/http.serverHandler.ServeHTTP(0xc00016bee0, 0x4d98380, 0xc010a79c00, 0xc0120c8800)
      	/Users/eben/.cbdepscache/exploded/x86_64/go-1.11.6/go/src/net/http/server.go:2741 +0xab
      net/http.(*conn).serve(0xc00ca6c000, 0x4d9d3c0, 0xc00f0f27c0)
      	/Users/eben/.cbdepscache/exploded/x86_64/go-1.11.6/go/src/net/http/server.go:1847 +0x646
      created by net/http.(*Server).Serve
      	/Users/eben/.cbdepscache/exploded/x86_64/go-1.11.6/go/src/net/http/server.go:2851 +0x2f5
       

       

       

      Attachments

        Issue Links

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

          Activity

            People

              eben Eben Haber
              eben Eben Haber
              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