Upgrade error: "couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64"


#1

I failed over one of my nodes and receive the error below when attempting to upgrade from 3.0.2-1603 Enterprise Edition (build-1603) to 4.0. Am I missing a step?

sudo rpm -i couchbase-server-enterprise-4.0.0-centos6.x86_64.rpm
file /opt/couchbase/bin/couchbase-server from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/README.txt from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/VERSION.txt from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/lib/python/cbbackupwrapper from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/bin/cbcollect_info from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/lib/python/cbcompact from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/lib/python/cbdocloader from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/lib/python/cbepctl from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/lib/python/cbrecovery from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/lib/python/cbrestorewrapper from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/bin/cbsasladm from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/lib/python/cbstats from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/lib/python/cbworkloadgen from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/bin/couch_compact from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/bin/couch_dbdump from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/bin/couch_dbinfo from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64
file /opt/couchbase/bin/couch_view_file_merger from install of couchbase-server-4.0.0-4051.x86_64 conflicts with file from package couchbase-server-3.0.2-1603.x86_64


#2

The -i parameter is install, to do an upgrade you need to use the -U flag with rpm.


#3

Of course. Thank you!