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
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",
- Look for something like /etc/opt/membase/ns_1/config.dat
- 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'])