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

Upgrade to latest CB Version 2.0.1 fails to copy correct config.dat

    Details

      Description

      When running rpm -U couchbase-server-enterprise_x86_64_2.0.1.rpm as a part of the upgrade to the latest, files config.dat.rpm.save and ip.rpm.save as a result of previous upgrade may be from 1.8.0 to 1.8.1 are causing problems.

      Upgrading couchbase-server ...
      /opt/couchbase/bin/install/cbupgrade -c /opt/couchbase/var/lib/couchbase/config -a yes
      Analysing...
      Error: found multiple config.dat candidates: ['/opt/couchbase/var/lib/couchbase/config/config.dat', 'config.dat']

      This is a critical bug as the existing config.dat and ip files gets overwritten and requires to set up the node/cluster again.

      I was able to reproduce this issue and suggested to remove the ip.rpm.save and config.dat.rpm.save files before running the rpm -U command

      I was able to spot the error. It is the cbupgrade script that requires the change:

      prev_cfg = find_cfg(prev_cfg_dir, "config.dat",

      1. Look for something like /etc/opt/membase/ns_1/config.dat
      2. Possibly config.dat.rpmsave or config.dat.debsave
        may be remove this ['config.dat',
        may be remove this 'config.dat.*save',
        Add a $ at the end '/opt/couchbase/var/lib/couchbase/config/config.dat$',
        may be remove this '/opt/couchbase/var/lib/couchbase/config/config.dat.*save'])
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Installer bugs are Steve's team

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Installer bugs are Steve's team
        Hide
        bcui Bin Cui added a comment -

        It will be fixed in MB-8050

        Show
        bcui Bin Cui added a comment - It will be fixed in MB-8050
        Hide
        maria Maria McDuff (Inactive) added a comment -

        pls verify/close.

        Show
        maria Maria McDuff (Inactive) added a comment - pls verify/close.
        Hide
        andreibaranouski Andrei Baranouski added a comment -

        can't verify it now due to MB-8144

        Show
        andreibaranouski Andrei Baranouski added a comment - can't verify it now due to MB-8144
        Hide
        andreibaranouski Andrei Baranouski added a comment -

        close the ticket because I don't see error in logs for upgrade jobs

        'found multiple config.dat candidates'

        Show
        andreibaranouski Andrei Baranouski added a comment - close the ticket because I don't see error in logs for upgrade jobs 'found multiple config.dat candidates'

          People

          • Assignee:
            andreibaranouski Andrei Baranouski
            Reporter:
            mkumar Muthu Kumar
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes