# Chat doesn't refresh automatically

**URL:** <https://forums.rocket.chat/t/chat-doesnt-refresh-automatically/17943>\
**Category:** Community Support\
**Created:** [October 4, 2023, 9:29am UTC](https://forums.rocket.chat/t/chat-doesnt-refresh-automatically/17943 "2023-10-04T09:29:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArtyZimmer](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@ArtyZimmer](https://forums.rocket.chat/u/ArtyZimmer)\
**Post date:** [October 4, 2023, 9:29am UTC](https://forums.rocket.chat/t/chat-doesnt-refresh-automatically/17943/1 "2023-10-04T09:29:39Z")

</div>

### Description

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:

```auto
# Upstreams
upstream backend {
    server 127.0.0.1:3000;
}

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;
        }
}

```

---

<div class="post-metadata">

**Author:** ![ArtyZimmer](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@ArtyZimmer](https://forums.rocket.chat/u/ArtyZimmer)\
**Post date:** [October 11, 2023, 11:21am UTC](https://forums.rocket.chat/t/chat-doesnt-refresh-automatically/17943/2 "2023-10-11T11:21:31Z")

</div>

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.
