Upgrading MongoDB from 5.0.6 to 5.0.30?

Description

I’m not sure if this should exist here, but I’m in the midst of trying to upgrade MongoDB from 5.0.6 to 5.0.30 for Rocket.chat as a preliminary way to understand how to upgrade MongoDB.

Has anyone here done a minor version upgrade before? I don’t think it’s as straightforward as just doing

sudo apt-get install mongodb-org=5.0.30

right?

Just for more information, I installed the snap from DigitalOcean as well: Rocket.Chat | DigitalOcean Marketplace 1-Click App

For context I’m currently looking at this initial step to understand how to upgrade MongoDB, since Rocket.chat v7.0.0 is recommending that we upgrade to MongoDB 6.0 and 5.0 is deprecated (https://docs.rocket.chat/v1/docs/support-prerequisites#mongodb-version-support), so I can subsequently upgrade/migrate from 5.0 to 6.0 once I understand how to do it.

Server Setup Information

  • Version of Rocket.Chat Server: 7.0.0
  • Operating System: Ubuntu
  • Deployment Method: snap
  • Number of Running Instances: 1
  • MongoDB Version: 5.0.6

Stop jumping about with installs.

Each type has a different requirement.

What are you currently using? Package/Docker/snap ?

I’m using Ubuntu’s apt package manager to upgrade the packages.

Is that what you’re asking for?

But you are using a snap and that contains mongo. The snap package will upgrade Mongo as required. You do not need Mongo as a separate package.

Looking at this I don’t know which version you are actually on?

You say 7.0.0 - but how do you know?

Here is the Rocket.Chat page on snaps and updating. I suggest you read it all.

https://docs.rocket.chat/docs/deploy-with-snaps

I’m know I’m on v7.0.0 - I used rocketchatctl to upgrade Rocket.chat directly and Ubuntu’s apt package manager to update the rest of the packages as I started off from v5.0 quite sometime back.

My Rocket.chat instance in the interface displays itself as v7.0.0 as well.

I just can’t upgrade MongoDB using the apt package manager - keeps being held back.

Thanks for the link, I’ll explore this, maybe I’ve been upgrading it wrong since v5.0 lol

You said you used snaps? You can’t use rocketchatctl to upgrade a snap. What made you think that?

I have no idea what you are doing but you are making life really difficult for yourself.

It would really help if you read documentation first and describe your setup and steps you have taken accurately.

I can’t help you as I just don’t know exactly what setup you have.

That’s the problem, my initial DO on v5.0 install never mentioned any sort of instructions on how it was installed but I was able to find rocketchatctl in one of the files, which I used to upgrade Rocket.chat – no worries, I think the conversation with you helped me realised what I need to search for.

Thanks!

:face_with_spiral_eyes:

Glad you know what you are doing as I certainly don’t.

Good luck.

Take plenty of backups…