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

[CBM] cbbackupmgr in upgrade version (6.6.0) throws segmentation violation error when merging old backup repo (5.5.0)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.6.0
    • 6.6.0
    • tools
    • Centos 7.6
    • Untriaged
    • Centos 64-bit
    • 1
    • Unknown

    Description

      Install Couchbase server  5.5.0 on 4 centos 7.6 servers.

      Create 2 nodes cluster (224 and 225) and default bucket.

      Load data to default bucket.

      Run several backups with cbbackupmgr (5.5.0) to backup data

      Fresh install Couchbase server 6.6.0 on 2 centos servers (226 and 227)

      Add 2 6.6.0-7846 nodes to cluster above and remove 2 nodes 224 and 225

      Cluster becomes 6.6.0.

      Run some backups with cbbackupmgr (6.6.0-7846)

      Run merge with cbbackupmgr (6.6.0-7846), merge failed with segfault error

      2020-06-30T19:57:36.189-07:00 (Cmd) merge --archive /tmp/entbackup_172.23.121.224 --repo backup --start 2020-06-30T19_44_37.802124479-07_00 --end 2020-06-30T19_56_43.262610544-07_00 
      2020-06-30T19:57:36.189-07:00 (Cmd) mounted archive with id: unknown
      2020-06-30T19:57:36.191-07:00 (Stats) Starting stat gathering - stat timestamp: 1593572256
      2020-06-30T19:57:36.191-07:00 Merging backups [2020-06-30T19_44_37.802124479-07_00 2020-06-30T19_45_12.203175007-07_00 2020-06-30T19_45_48.336465942-07_00 2020-06-30T19_53_57.816275267-07_00 2020-06-30T19_54_54.873738339-07_00 2020-06-30T19_55_51.398617954-07_00 2020-06-30T19_56_43.262610544-07_00]
      2020-06-30T19:57:36.192-07:00 Creating the merge directory for backup backup
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xab14ae]
       
       
      goroutine 1 [running]:
      github.com/couchbase/backup/archive.(*Archive).MergeIncrementalBackups(0xc0002807c0, 0x7ffcbe78edc3, 0x6, 0x7ffcbe78edd2, 0x23, 0x7ffcbe78edfc, 0x23, 0x3, 0x0, 0x0, ...)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/backup/archive/archive.go:747 +0x1d4e
      main.(*MergeContext).Run(0xc0002b8000)
      	goproj/src/github.com/couchbase/backup/cmd/cbbackupmgr/merge.go:111 +0x520
      github.com/couchbase/cbflag.(*Command).parseFlags(0xc0002c2a80, 0xc000207490, 0xc0000c4020, 0x8, 0x8)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/couchbase/cbflag/command.go:241 +0x17bf
      github.com/couchbase/cbflag.(*Command).parse(0xc0002c2a80, 0xc000207490, 0xc0000c4020, 0x8, 0x8)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/couchbase/cbflag/command.go:92 +0xd2
      github.com/couchbase/cbflag.(*Command).parseCommands(0xc0002c2c40, 0xc000207490, 0xc0000c4010, 0x9, 0x9)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/couchbase/cbflag/command.go:104 +0x12c
      github.com/couchbase/cbflag.(*Command).parse(0xc0002c2c40, 0xc000207490, 0xc0000c4010, 0x9, 0x9)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/couchbase/cbflag/command.go:90 +0x101
      github.com/couchbase/cbflag.(*CLI).Parse(0xc0002b8090, 0xc0000c4000, 0xa, 0xa)
      	/home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/couchbase/cbflag/cli.go:59 +0x18a
      main 

      I will upload logs soon

      Attachments

        Issue Links

          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