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

    XMLWordPrintable

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'])

      Attachments

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

        Activity

          People

            andreibaranouski Andrei Baranouski
            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

                PagerDuty