I upgraded Rocket Chat to version 4.0 and now the Rocket Cat user is telling me MongoDB version 4.0.21 is deprecated, please upgrade your installation and then links me to the non-existent webpage https://rocket.chat/docs/installation
Server Setup Information
Version of Rocket.Chat Server: 4.0.0
Operating System: Ubuntu 17.04
Deployment Method: docker
Number of Running Instances: 1
DB Replicaset Oplog:
NodeJS Version: v12.22.1
MongoDB Version: 4.0.21 / mmapv1 (oplog Enabled)
Proxy: nginx
Firewalls involved: N/A
Any additional Information
I’m a newbie with linux commands. Hopefully someone can point me in the right direction of some commands I can paste into PuTTY and get Rocket Cat off my back. Thanks.
Hi you will also need to convert the mmapv1 to wiredtiger. There are many guides how to do this but if you need help let me know I will try to find you a guid when I have time.
MongoDB needs to be updated sequentially from my understanding. To upgrade to 5.x, you will have to upgrade from 4.0 to 4.2; then from 4.2 to 4.4, and so on. I don’t think you can just jump from 4.0 to 5.0.
Ref: https://docs.mongodb.com/manual/tutorial/upgrade-revision/
After you migrated from MMAP to wiredTiger engine, (Step 1)stop all docker instances. (Step 2)update your Docker Compose file and change mongo and mongo-init-replica image version to the next sequential version. (Step 3)Then, run the Docker Compose file. Repeat from step 1 to step 3 if needed.
Ref: https://raw.githubusercontent.com/RocketChat/Rocket.Chat/develop/docker-compose.yml
Backup the database and even the entire server if possible before trying anything, and create a fail-safe solution.
Seemed like a pretty straight forward solutions, but I was unable to accomplish my goal for this. I created a separate post regarding the issue I got stuck on.