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

Rocket Chat with MongoDB cluster #26910

Open
EBG-DEV opened this issue Sep 21, 2022 · 2 comments
Open

Rocket Chat with MongoDB cluster #26910

EBG-DEV opened this issue Sep 21, 2022 · 2 comments

Comments

@EBG-DEV
Copy link

EBG-DEV commented Sep 21, 2022

Community Edition.
OS Rocky 8.6
5.0.12 MongoDB / WiredTiber (oplog Enabled).
Rocket Chat 5.1.2
HaProxy 2.4

In daily operation - no issues.

When MongoDB cluster nodes update and restart one-by one in 1h increments RocketChat start to have issues.

  1. In Info page "You are operating multiple instances.. some features will not behave as designed." message ?
    image

  2. Sending message to "other-users" marks them "gray" as if they were sent, but end user does not receive them.

I don't have picture as I had to solve this ASAP.

The remedy is restart RocketChat service and everything starts working (message 1) is still there thou).

Is this something we do incorrectly?

Or what other information is required?

@vinogradovia
Copy link

Hi, about point 2:
сheck rights for users on mongodb, in particular {role: "clusterMonitor", db: "admin"}
looks like the oplog is not used

link to docs
https://docs.rocket.chat/quick-start/deploying-rocket.chat/rapid-deployment-methods/docker-and-docker-compose/docker-containers/high-availability-install#install-mongodb-replicaset

@MarlynxLinux
Copy link

i have a similar problem, my mongo has the right roles

for oplog:

{ role: "read", db: "local"},
{ role: "clusterMonitor", db: "admin" }

for rocketchat

{ role: "readWrite", db: "rchatdb" },
{ role: "clusterMonitor", db: "admin" }

I described it in detail here today:
https://forums.rocket.chat/t/running-multiple-instances-error-you-are-operating-multiple-instances-some-features-will-not-behave-as/15251

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

3 participants