Couchbase community upgrade path from 4.x to 6.x

Hi,
What is the upgrade path for Couchbase CE from 4 to 6? We are currently on 4.5.1 and looking to upgrade to 6.0.0. The upgrade matrix docs are not clear for CE, and more geared toward CE to EE. Based on those docs, however, it appears we need to go 4->5->6, but I just wanted to confirm.

Thanks!

Hi Jase,
Thanks for using our software. I have a question.
What is your current version of Couchbase Server? Is it 4.5.1 Community Edition?

Thanks for the reply Thuan. Yes, it is 4.5.1 Community Edition. We plan to stay on CE at this time.

Hi, yes, the preferred path is 4.x (CE)->5.x(CE)->6.x(CE). We do not officially support 4.x any more. So, this is the preferred path.

1 Like

Hi Jase,
Here is an example of offline upgrade a cluster in centos 7.6 servers from your version 4.5.1 ==> 5.5.0 ==> 6.0.1

[root@s44015 cb-builds]# rpm -Uhv couchbase-server-community-5.5.0-centos7.x86_64.rpm
Preparing… ################################# [100%]
Stopping couchbase-server (via systemctl): [ OK ]
Minimum RAM required : 4 GB
System RAM configured : 3.93 GB

Minimum number of processors required : 4 cores
Number of processors on the system : 4 cores

Updating / installing…
1:couchbase-server-community-5.5.0-warning: /opt/couchbase/etc/couchdb/local.ini saved as /opt/couchbase/etc/couchdb/local.ini.rpmsave
################################# [ 50%]
Upgrading couchbase-server-community …
/opt/couchbase/bin/install/cbupgrade -c /opt/couchbase/var/lib/couchbase/config -a yes
Automatic mode: running without interactive questions or confirmations.
Analysing…
Previous config.dat file is /opt/couchbase/var/lib/couchbase/config/config.dat
Target node: ns_1@172.23.121.224
Upgrading from 2.0

Couchbase should not be running.
Please use: /etc/init.d/couchbase-server stop

Database dir: /opt/couchbase/var/lib/couchbase/data

Buckets to upgrade: travel-sample,gamesim-sample

Checking disk space available for buckets in directory:
/opt/couchbase/var/lib/couchbase/data
Free disk bucket space wanted: 0.0
Free disk bucket space available: 26627166208
Free disk space factor: 2.0
Ok.

Analysis complete.

Copying /opt/couchbase/var/lib/couchbase/config/config.dat
cp /opt/couchbase/var/lib/couchbase/config/config.dat /opt/couchbase/bin/install/…/…/var/lib/couchbase/config/config.dat
Copying /opt/couchbase/var/lib/couchbase/ip
cp /opt/couchbase/var/lib/couchbase/ip /opt/couchbase/bin/install/…/…/var/lib/couchbase/ip
Ensuring bucket data directories.
Ensuring bucket data directory: /opt/couchbase/var/lib/couchbase/data/travel-sample
mkdir -p /opt/couchbase/var/lib/couchbase/data/travel-sample
Ensuring bucket data directory: /opt/couchbase/var/lib/couchbase/data/gamesim-sample
mkdir -p /opt/couchbase/var/lib/couchbase/data/gamesim-sample
Ensuring dbdir owner/group: /opt/couchbase/var/lib/couchbase/data
chown -R couchbase:couchbase /opt/couchbase/var/lib/couchbase/data
Ensuring dbdir owner/group: /opt/couchbase/var/lib/couchbase/data
chown -R couchbase:couchbase /opt/couchbase/var/lib/couchbase/data

Done.
Cleaning up / removing…
2:couchbase-server-community-4.5.1-################################# [100%]

You have successfully installed Couchbase Server.
Please browse to http://s44015:8091/ to configure your server.
Please refer to http://couchbase.com for additional resources.

Please note that you have to update your firewall configuration to
allow connections to the following ports:
4369, 8091 to 8094, 9100 to 9105, 9998, 9999, 11207, 11209 to 11211,
11214, 11215, 18091 to 18093, and from 21100 to 21299.

By using this software you agree to the End User License Agreement.
See /opt/couchbase/LICENSE.txt.

[root@s44015 cb-builds]# rpm -Uhv couchbase-server-community-6.0.1-centos7.x86_64.rpm
Preparing… ################################# [100%]
Minimum RAM required : 4 GB
System RAM configured : 3.93 GB

Minimum number of processors required : 4 cores
Number of processors on the system : 4 cores

Updating / installing…
1:couchbase-server-community-6.0.1-################################# [ 50%]
Upgrading couchbase-server-community …
/opt/couchbase/bin/install/cbupgrade -c /opt/couchbase/var/lib/couchbase/config -a yes
Automatic mode: running without interactive questions or confirmations.
Analysing…
Previous config.dat file is /opt/couchbase/var/lib/couchbase/config/config.dat
Target node: ns_1@172.23.121.224
Upgrading from 2.0

Couchbase should not be running.
Please use: /etc/init.d/couchbase-server stop

Database dir: /opt/couchbase/var/lib/couchbase/data

Buckets to upgrade: travel-sample,gamesim-sample

Checking disk space available for buckets in directory:
/opt/couchbase/var/lib/couchbase/data
Free disk bucket space wanted: 0.0
Free disk bucket space available: 26691424256
Free disk space factor: 2.0
Ok.

Analysis complete.

Copying /opt/couchbase/var/lib/couchbase/config/config.dat
cp /opt/couchbase/var/lib/couchbase/config/config.dat /opt/couchbase/bin/install/…/…/var/lib/couchbase/config/config.dat
Copying /opt/couchbase/var/lib/couchbase/ip
cp /opt/couchbase/var/lib/couchbase/ip /opt/couchbase/bin/install/…/…/var/lib/couchbase/ip
Ensuring bucket data directories.
Ensuring bucket data directory: /opt/couchbase/var/lib/couchbase/data/travel-sample
mkdir -p /opt/couchbase/var/lib/couchbase/data/travel-sample
Ensuring bucket data directory: /opt/couchbase/var/lib/couchbase/data/gamesim-sample
mkdir -p /opt/couchbase/var/lib/couchbase/data/gamesim-sample
Ensuring dbdir owner/group: /opt/couchbase/var/lib/couchbase/data
chown -R couchbase:couchbase /opt/couchbase/var/lib/couchbase/data
Ensuring dbdir owner/group: /opt/couchbase/var/lib/couchbase/data
chown -R couchbase:couchbase /opt/couchbase/var/lib/couchbase/data

Done.
Cleaning up / removing…
2:couchbase-server-community-5.5.0-################################# [100%]

You have successfully installed Couchbase Server.
Please browse to http://s44015:8091/ to configure your server.
Please refer to http://couchbase.com for additional resources.

Please note that you have to update your firewall configuration to
allow connections to the following ports:
4369, 8091 to 8094, 9100 to 9105, 9998, 9999, 11207, 11209 to 11211,
11214, 11215, 18091 to 18093, and from 21100 to 21299.

By using this software you agree to the End User License Agreement.
See /opt/couchbase/LICENSE.txt.

[root@s44015 cb-builds]#

2 Likes

I did step by step like this. There is no error but i can’t connect to server . Error is refuse to connect. What can i do? :frowning: