# Chat not refreshing

**URL:** <https://forums.rocket.chat/t/chat-not-refreshing/11332>\
**Category:** Community Support\
**Created:** [June 5, 2021, 9:27am UTC](https://forums.rocket.chat/t/chat-not-refreshing/11332 "2021-06-05T09:27:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank.Echat](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@Frank.Echat](https://forums.rocket.chat/u/Frank.Echat)\
**Post date:** [June 5, 2021, 9:27am UTC](https://forums.rocket.chat/t/chat-not-refreshing/11332/1 "2021-06-05T09:27:16Z")

</div>

### Description

Hello,  
my chat is not refreshing any more. I noticed this behaviour for some time now - in the past I could work around by reinstalling the server.  
Usually it came to this error after updating - and this time it’s worse than ever and even after reinstalling I have this problems.  
After sending a message it stays grey:  
 ![grafik](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/f/f88e3cf0fb45df4f517f10792e89e046176ca8d6.png)

You have to reload the page in order to see messages.

### Server Setup Information

- Version of Rocket.Chat Server: 3.15.0
- Operating System: Ubuntu 18.04.5 LTS
- Deployment Method: tar
- Number of Running Instances: 1
- DB Replicaset Oplog: 4.0.24 / mmapv1 (oplog Aktiviert)
- NodeJS Version: v12.18.4
- MongoDB Version: 4.0.24
- Proxy: apache, cloudflare
- Firewalls involved:

### Any additional Information

Firefox Console shows several errors:  
Uncaught (in promise) undefined  
Firefox can’t establish connection to the server wss://my.domain.com/sockjs/127/iikex39u/websocket

My apache Proxy config:  
  
Require all granted

```
RewriteEngine On
RewriteCond %{HTTP:CONNECTION} Upgrade [NC]
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://localhost:3000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://localhost:3000/$1 [P,L]

ProxyPassReverse / http://localhost:3000/

```

---

<div class="post-metadata">

**Author:** ![Frank.Echat](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@Frank.Echat](https://forums.rocket.chat/u/Frank.Echat)\
**Post date:** [June 6, 2021, 9:02pm UTC](https://forums.rocket.chat/t/chat-not-refreshing/11332/2 "2021-06-06T21:02:44Z")

</div>

I can partitially solve this problem already:  
I had cloudflare cache active and this seemed to be the main problem. now only a few users have problems like this (after clearing cache etc).

but the can’t establish connection to the server wss://bla error remained.  
anyone an idea about that?

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 6, 2021, 9:10pm UTC](https://forums.rocket.chat/t/chat-not-refreshing/11332/3 "2021-06-06T21:10:53Z")

</div>

I suggest you spend some time on your apache config which is most likely the issue (possibly with CDN thrown in to complicate things).

First disable CDN and get your websockets right. That is the normal issue with ‘connecting’ and greyed out messages.

See how to test here - look for websockets at the end of it:

> <https://gist.github.com/reetp/a66149d5f060f260643a353ca7067a98>

Also check your SSL certs.

Once you have got that right with no errors then look at CDN.

---

<div class="post-metadata">

**Author:** ![Frank.Echat](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@Frank.Echat](https://forums.rocket.chat/u/Frank.Echat)\
**Post date:** [June 6, 2021, 10:58pm UTC](https://forums.rocket.chat/t/chat-not-refreshing/11332/4 "2021-06-06T22:58:52Z")

</div>

Hi John,  
thanks for pointing me into the right direction!  
I checked my bash history and uncovered that I ran proxy\_wstunnel without sudo - so it wasn’t activated.  
Together with deactivated caching on CDN side everything seems to be fine now!

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 7, 2021, 8:18am UTC](https://forums.rocket.chat/t/chat-not-refreshing/11332/5 "2021-06-07T08:18:05Z")

</div>

Yayyyy !!!

Thanks for the feedback and pleased you are up and running OK.
