Chat doesn't refresh automatically


Hey everyone!
I faced with issue when chat doesn’t refresh automatically, for example, when I send message, it stays grey until I refresh a page manually. Also new messages in channel don’t appear until manual refresh. How can I fix it?

Server Setup Information

  • Version of Rocket.Chat Server: 6.3.9
  • Operating System: Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-84-generic x86_64)
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog: 6.0.10 / wiredTiger (oplog Activated)
  • NodeJS Version: v14.21.3
  • MongoDB Version: 6.0.10
  • Proxy: nginx
  • Firewalls involved: turned off

Any additional Information

NGINX config:

# Upstreams
upstream backend {

server {
    listen 80;
    listen [::]:80;
    server_name [hostname];
    return 301 https://$host$request_uri;

# HTTPS Server
server {
    listen 443;
    server_name [hostname];

    # You can increase the limit if your need to.
    client_max_body_size 200M;

    error_log /var/log/nginx/rocketchat.access.log;

    ssl on;
    ssl_certificate /etc/nginx/SSL/***;
    ssl_certificate_key /etc/nginx/SSL/***;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don’t use SSLv3 ref: POODLE

    location / {
        proxy_pass http://backend;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;

        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Nginx-Proxy true;

        proxy_redirect off;

I solved my issue, the problem was with mongoDB config, a DB must be in replica set, even if there’s only one node. As soon as I configured DB to replica set, my problem gone.