-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker compose yml still uses Mongo DB 4.0 #24160
Comments
If you try to docker-compose rocket.chat with mongo 5.0. you have to exchange the mongo related part with this:
Essentially I stated the new version in mongo and mongo-init-replica and removed the smallfiles and storageEngine option in the mongo command. |
Thanks, this worked, I never had to work with mongo before... |
Just wanted to add that this does not work if you already have an existing data/db folder that was on 4.0 (mmapv1). So deleting the data folder and running If you want to keep your old data instead of deleting. You will need to migrate the database from mmapv1 to WiredTiger as documented here: https://docs.mongodb.com/manual/tutorial/change-standalone-wiredtiger/ In my case I did
After that on the new instance of rocket.chat mongodb ... Finally I enter in the new container with |
Description:
docker-compose.yml still defaults to both mongodb 4.0 and the mmapv1 storage engine. This is true in both master and the develop branch. Currently mongodb is deprecated in RocketChat, and will be unsupported when 5.0 is released.
While in theory the compose can be updated to mongodb 4.2 or later, in fact if you already have a running rocketchat based on the current compose, to do so you now have a ?manual? backend db migration issue to use the new storage engine.
Steps to reproduce:
use the existing docker-compose.yml:
docker-compose up
let it create a site...
login to your new site...you will be notified your mongodb version is deprecated and will be dropped in 5.0...
Expected behavior:
have the official compose already use the current/more current mongodb with correct command line options for that so I don't get an unsupportable site...
Actual behavior:
This compose will kill 5.0 installs.
Server Setup Information:
Client Setup Information
Additional context
The purpose of this issue is to update the docker-compose.yml to a more valid mongodb version for those who blindly use it like I did...
Relevant logs:
rocketchat_1 | +----------------------------------------------------------------------+
rocketchat_1 | | DEPRECATION |
rocketchat_1 | +----------------------------------------------------------------------+
rocketchat_1 | | |
rocketchat_1 | | YOUR CURRENT MONGODB VERSION (4.0.27) IS DEPRECATED. |
rocketchat_1 | | IT WILL NOT BE SUPPORTED ON ROCKET.CHAT VERSION 5.0.0 AND GREATER, |
rocketchat_1 | | PLEASE UPGRADE MONGODB TO VERSION 4.2 OR GREATER
The text was updated successfully, but these errors were encountered: