Upgrading procedures from 3.2.1 to 4.2.2

Hello, I’m trying to upgrade rocket.chat from 3.2.1 to 4.2.2. What’s the correct way to do this?

I’m running 3.2.1 on centos 7.9 and the mongodb version is 4.0.27

Hi!

I would suggest you into looking into docker compose deployments, and considering not only upgrading, but moving to this deployment method.

It’s easier to maintain.

You will basically need to dump the database and restore at the same version in a docker deployment and if using file system as storage for uploads, copy the files to the path configured.

Then, just changing the docker-compose.yml to the latest version (4.2.2 as of now)

Please, always do a backup before migrating, and make sure to test all the steps.