I’m trying to upgrade MongoDB. I was using Bitnami , which was very simple to set up.
I made backups and tried to get things started but this has been a frustrating process.
First off, there isn’t just an 8.0 image or something similar. I had to choose something like “8.0-ubi8-slim” which I am not familiar with and couldn’t find an explanation of on Dockerhub.
Furthermore, this “community” image is missing mongorestore. What is the point of a database image that doesn’t have the most basic tools available?
Remember Rocket is Enterprise software and needs a little Enterprise level reading and knowledge. You are expected to know some basics, or able to learn some.
Have you read all the docs at rocket?
You have effectively said “my car is broken, help me fix it”
How about some detail on your setup so people have some idea where the problem is and how to help you?
We have no idea if you have a native mongo, docker etc.
Start here, but read all of it.
You should also read the mongo docs on upgrading. In particular look for featurecompatibilityas mentioned multiple times here.
@rex the -slim tags are the minimal builds. They only ship mongod, mongos and mongosh, which is why mongorestore is missing. The regular tags (8.0-ubi8, 8.0-ubuntu2204 and so on) include the database tools, and “ubi8” just means it’s built on Red Hat’s Universal Base Image 8. Rocket.Chat’s own compose file uses the non-slim -ubi8 image.
So switch to mongodb/mongodb-community-server:8.0-ubi8, bring it up with the replica set initiated, then restore with something like:
That assumes the dump was made with mongodump --archive. Keep MONGO_URL pointing at ...?replicaSet=rs0, and check ownership on the new data volume, since Bitnami ran as uid 1001.
Was your backup a mongodump, or a copy of the Bitnami data directory?