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

No realtime update of incoming and outgoing messages - websockets work #35149

Open
beccon4 opened this issue Feb 6, 2025 · 1 comment
Open

Comments

@beccon4
Copy link

beccon4 commented Feb 6, 2025

Fresh plain vanilla installation on:

  • CentOS 10 Stream
  • MongoDB 7.0.16
  • NodeJS 22.11.0
  • Deno 1.46.3
  • EPEL - Extra Packages for Enterprise Linux - epel-release 10-2-el10s
  • RocketChat 7.3.0
  • Apache Reverse Proxy to terminate https/wss on a separate machine

Rocketchat works so far but does not update incoming and outgoing messages in real time. The outgoing message stays grayed out until the next page reload. An incoming message rings the notification bell but does not appear on screen until reload.

  • Websockets are configured and work - as checked with WS-Tester. In the Browser Network Analysis the WS connection is open, transmits 175bytes and stays idle.
  • The RocketChat Log says "No real time data received recently" (could be a subsequent issue)
  • a message sent results in a single http(s) sendMessage call, which gets replied to correctly with an JSON document. Incoming calls do not result in any action.

Apache Proxy Configuration:

ProxyPreserveHost On
RemoteIPHeader X-Forwarded-For

<Location / >
                Order allow,deny
                Allow from all

                ProxyPass http://rocketchat-virt:3000/
                ProxyPassReverse http://rocketchat-virt:3000/
</Location>

RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/(.*) "ws://rocketchat-virt:3000/$1" [P,L]

What's wrong here?

This still can be a configuration issue both in the Proxy settings or RocketChat itself - so I'd be interested in further documentation.

Thank You in advance
Conrad

@reetp
Copy link

reetp commented Feb 6, 2025

Github is for bugs.

Almost 100% a support issue which should be asked in the appropriate places.

Open
Forums

Read here on checking websockets.... I run apache with zero issues but can't access my conf right now, but yours doesn't look right.

https://gist.github.com/reetp/a66149d5f060f260643a353ca7067a98#websockets

Read the docs thoroughly.

https://docs.rocket.chat/docs/configuring-ssl-reverse-proxy#running-behind-an-apache-ssl-reverse-proxy

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

No branches or pull requests

2 participants