Skip to content
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

MongoDB 4.2.1 support #241

Open
GiviMAD opened this issue Nov 20, 2019 · 15 comments
Open

MongoDB 4.2.1 support #241

GiviMAD opened this issue Nov 20, 2019 · 15 comments

Comments

@GiviMAD
Copy link

GiviMAD commented Nov 20, 2019

Any plans to support the latest version of MongoDB in a short time?

@reetp
Copy link

reetp commented Nov 20, 2019

Mongo 3.6 & 4.0 currently have no EOL date.

So your answer is 'unlikely', and whenever they are ready, and not before.

This is really a feature request because Rocket.Chat is not broken on the officially supported versions.

@MartinSchoeler MartinSchoeler transferred this issue from RocketChat/Rocket.Chat Nov 21, 2019
@pkolmann
Copy link

The issue for Debian Users is, that MongoDB 4.0 is only supported on the old stable release, the new stable release only supports MongoDB 4.2 (from mongodb.com).

https://docs.mongodb.com/manual/administration/production-notes/#prod-notes-supported-platforms

So we need to either stick to an old debian Release for now to be in a supported envorionment. I tested mongodb 4.2 on a fresh install of rc 3.0.0 and it seems to work. Has anyone any experience with running mongo4.2 and rc?

@pkolmann
Copy link

Additionally Debian Jessie will no longer receive support after June 30, 2020:

https://wiki.debian.org/LTS/Jessie

@BarnumD
Copy link

BarnumD commented Mar 14, 2020

The on the release page the latest versions of RocketChat (3.0.3) list Mongo 4.0 under 'Engines'. I assume that means it's supported.
Meanwhile the docker-compose examples still use --smallfiles, which is no longer supported. It would be nice to have some documentation updates. Thanks!

@WolfWings
Copy link

WolfWings commented Sep 20, 2020

At this point skipping MongoDB 4.2 entirely for 4.4 as another engine to support might be prudent? MongoDB 4.0 is not being supported at all on newer distributions now; Ubuntu 20.04.1 point release is out, and Debian 10 released over a year ago now so having some kind of supportable path for these (among others based on them) seems prudent.

MongoDB 3.6 is end of life in less than a year, and MongoDB 4.0 now has a marked end-of-life date as well of January 2022 which will in turn leave all of these without a supported way to run RocketChat (ignoring distro's that would be EOL by that time themselves):

  • RHEL/CentOS 7 + 8
  • Ubuntu 18.04 + 20.04 (which has no way to run a supported native RocketChat now)
  • Debian 9 (would lose support at that time) + 10 (which has no way to run a supported native RocketChat now)
  • SUSE (all versions)

@jacotec
Copy link

jacotec commented Sep 22, 2020

At this point skipping MongoDB 4.2 entirely for 4.4 as another engine to support might be prudent? MongoDB 4.0 is not being supported at all on newer distributions now; Ubuntu 20.04.1 point release is out, and Debian 10 released over a year ago now so having some kind of supportable path for these (among others based on them) seems prudent.

I'm currently migrating from Matrix and have installed a RC server on Sunday. Ubuntu 20.04, and of course I have installed the latest MongoDB 4.4.1.

Just read this morning about "supported versions", lol. However, I see no issues. Any concerns here? I don't want to downgrade to 4.0 unless it's really necessary.

@WolfWings
Copy link

WolfWings commented Sep 22, 2020

Just read this morning about "supported versions", lol. However, I see no issues. Any concerns here? I don't want to downgrade to 4.0 unless it's really necessary.

In MongoDB 4.2 they have:

  • Removed the MMAPv1 storage engine entirely which Rocket.Chat documentation tells you to switch to despite the WiredTiger storage engine being the default since MongoDB 3.2: Ubuntu and CentOS though surprisingly the Debian install explicitly says to use WiredTiger?
  • Removed multiple various commands which I do not know if Rocket.Chat relies on or not.

In MongoDB 4.4 they have:

  • Overhauled replication sets and opLog functionality heavily (which Rocket.Chat relies on) to use a 'push' instead of 'pull' model internally as well.
  • Removed more commands, mostly relating to the query plan cache, and cloneCollection which requires a separate export->import approach instead now.

That's just what I could find with a quick review of the release notes for each version, they have entire pages dedicated just to compatibility-breaking changes for 4.2 and 4.4. But the fact they were releases that removed one system Rocket.Chat explicitly tells you to use, and rebuilt the other system Rocket.Chat switched over to requiring to be enabled, means subtle bugs in the data storage layer may well exist so I don't believe it's safe to use in a production environment blindly.

@jacotec
Copy link

jacotec commented Sep 22, 2020

OK ... so I'll reinstall all again. Sh1t ...

@zedar187
Copy link

Half a year later... any updates on this?

@MatthiasKuehneEllerhold
Copy link

MatthiasKuehneEllerhold commented Mar 5, 2021

RocketChat cant be installed on current debian releases.
The only active Debian 10 Release is Buster and only MongoDB 4.2+ is available for it. Debian 9 Stretch is EOL since 2020-07-06.

@BarnumD
Copy link

BarnumD commented Mar 10, 2021

In addition to MongoDB 4 support, would rocketchat also be supportable on Azure's CosmosDB now that it has 4.0 compatibility?

@MatthiasKuehneEllerhold

We've upgraded our servers to Busters.
Running RocketChat 3.12.1 with MongoDB 4.2.12 (dbCompatibility: 4.0) seems to work fine in our setup. Chatting, file attachments, groups work perfectly. Did anybody else test this? Encountered any problems despite it being "inofficial"?

@MatthiasKuehneEllerhold

Seems like release 3.15 added official support for MongoDB 4.2? Theres nothing in the release notes itself but in the top half it says "MongoDB: 3.4, 3.6, 4.0, 4.2".

@hanoii
Copy link

hanoii commented Jun 25, 2021

Seems like release 3.15 added official support for MongoDB 4.2? Theres nothing in the release notes itself but in the top half it says "MongoDB: 3.4, 3.6, 4.0, 4.2".

Found this: RocketChat/Rocket.Chat#21550, so yes, looks supported now.

@amottier
Copy link

The documentation recommends to use MongoDB version 3.6.9 but also states that "version 3.6 and higher" are supported.
In GitHub CI configuration, for current Rocket.Chat version (3.16.3) I can see that versions 3.4, 3.6, 4.0 and 4.2 are tested.
According to MongoDB documentation version 3.4 and 3.6 have reached End of Life.

So I guess it would make sense to update the documentation to recommend usage of version 4.0 or 4.2. And probably also run some test on version 4.4 and work on supporting version 5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants