I just installed RocketChat in Ubuntu server 21.10 using Snaps.
Installation command: sudo snap install rocketchat-server
Everything is working as expected except I keep getting the following message from rocket.cat:
MongoDB Deprecated
MongoDB version 3.6.23 is deprecated, please upgrade your installation.
I also can see the warning on the app logs:
So my questions are:
1- Why an installation from scratch is deploying a deprecated db version? is this expected behaviour?
2- How I’m supposed to do to upgrade mongo? my understanding was that the snap refresh
command should take care of it
Hi!
Thanks for pointing that out!
cc @debdut.chakraborty
vmsman
February 12, 2022, 12:51am
3
So, what is the fix here? I did the Docker install and it says that the 4.0.28 is deprecated on a brand new fresh install. I tried to edit the docker-compose to use mongo 4.2, but that failed miserably. There is not great documentation out there on how to install from scratch and not use mongo 4.0. Any help would be appreciated.
1 Like
@vmsman hi! Thanks for asking
Updating the compose file has been slightly challenging because of how people tend to use them. I’ll create an intermediate repo to host it (new compose) in the meantime and let you know.
These are the changes to be made for the docker-compose in order to use 4.2 and wiredTiger:
RocketChat:develop
← 0xsuid:develop
opened 11:40AM - 07 Oct 21 UTC
<!-- Your Pull Request name should start with one of the following tags
[NEW]… For new features
[IMPROVE] For an improvement (performance or little improvements) in existing features
[FIX] For bug fixes that affect the end-user
[BREAK] For pull requests including breaking changes
Chore: For small tasks
Doc: For documentation
-->
<!-- Checklist!!! If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
- I have read the Contributing Guide - https://github.com/RocketChat/Rocket.Chat/blob/develop/.github/CONTRIBUTING.md#contributing-to-rocketchat doc
- I have signed the CLA - https://cla-assistant.io/RocketChat/Rocket.Chat
- Lint and unit tests pass locally with my changes
- I have added tests that prove my fix is effective or that my feature works (if applicable)
- I have added necessary documentation (if applicable)
- Any dependent changes have been merged and published in downstream modules
-->
## Proposed changes (including videos or screenshots)
- Updated MongoDB Version to 4.2
- changed storage engine to wiredTiger from mmapv1(mmapv1 no longer supported by MongoDB 4.2)
- smallfiles argument is also removed because it is also not supported by MongoDB 4.2.
<!--
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be sure to link to that issue below.
This description will appear in the release notes if we accept the contribution.
-->
## Issue(s)
Mongodb version 4.0 is deprecated and thus it is not compatible with latest release of RocketChat.
![image](https://user-images.githubusercontent.com/45615666/136377081-5b773513-c7c5-4650-b283-ede6e3c7788a.png)
## Steps to test or reproduce
Run previous/older docker-compose file and rocket-chat will show following message:
```MongoDB version 4.0.27 is deprecated, please upgrade your installation.```
## Further comments
Mongodb storage engine migration guide [link](https://docs.rocket.chat/quick-start/installing-and-updating/docker-containers/mongodb-mmap-to-wiredtiger-migration) should be posted with deprecation message so it will be easier for administrator to update rocketchat. However, migration guide docker-compose.yml also needs to be updated for mongodb - from 4.0 to 4.2.
We are doing some changes and improvements at deployment methods and documentation that should easy this process for all parties. Hang tight!
Thanks!
vmsman
April 12, 2022, 6:58pm
6
I updated my RocketChat to 4.6.1. It works great.
I decided to upgrade MongoDB 4.0.28 from nmap to wiredTiger.
Once I did that, no errors in the log. Everything looked great but not RocketChat web page.
I read where wiredTiger needs at least MongoDB 4.2, so I upgraded it.
No errors. Clean logs. Appeared to work, still no web.
Then I upgraded to 4.4 and finally 5.0.
So, I am at the latest of MongoDB now. The docker containers are stable.
However, no web interface for RocketChat. Good part is no deprecation errors anymore. Any ideas?
Hi!
Can you try cleaning the cache?
Or try using incognito/private window, just to make sure.
Thanks!
Will the docker-compose.yml be updated? I get the deprecated error when creating a new workspace.
1 Like
vmsman
April 19, 2022, 4:31pm
9