Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Direct messages are not visible to the receiver

Open ryangilbert opened this issue 11 years ago • 18 comments

When a direct message is received, it is not displayed in the message window for the receiver. Sometimes it appears after reloading the page.

Steps to reproduce:

  1. User A send Direct Message to User B
  2. User B sees new message notification and clicks on Direct Message with User A

Result: User A's message is not displayed to User B. After User B reloads the page, message is displayed.

ryangilbert avatar Sep 22 '15 18:09 ryangilbert

Is this 100% reproducible? If yes, we need more information:

What platform are you testing on: OS: Browser:

Your own instance, or demo instance?

If own instance, what are the details of your installation.

Thanks for your feedback.

marceloschmidt avatar Sep 22 '15 18:09 marceloschmidt

@marceloschmidt happens often, but we haven't found a set of steps that reproduces this 100% of the time.

Platforms vary from Linux (Ubuntu/Arch), to OSX(Mavericks and Yosemite). Firefox, Chrome (all varients).

We have our own instance, updated from your master fairly often. Running on AWS (t2.medium), Running straight up Node (no Nginx, or Apache). Replicate Set as written in your instructions.

soonahn avatar Sep 23 '15 19:09 soonahn

Still happening, this is the biggest pain point in the entire product. Messages just sometimes will not show up.

soonahn avatar Sep 25 '15 16:09 soonahn

How about network topology? Are all browsers on the same LAN when this happens?

Are all browsers using DNS resolved hostname to access servers?

Or some based on /etc/hosts ? Or some using IP address?

Sing-Li avatar Sep 25 '15 17:09 Sing-Li

@Sing-Li

I think I've fixed it, however...

All clients were on the same LAN, the Server was NOT on the same LAN. Browsers using DNS resolved hostname, DNS was not an issue.

I believe it was a websockets issue.

soonahn avatar Sep 25 '15 17:09 soonahn

You have routers that block websockets?

Sing-Li avatar Sep 25 '15 17:09 Sing-Li

If you're using reverse proxy in front like nginx / apache make sure you're upgrading your websockets.

geekgonecrazy avatar Sep 25 '15 17:09 geekgonecrazy

ELB has to be configured to pass TCP through, not just HTTP/HTTPS through.

@geekgonecrazy what do you mean by "upgrading"

soonahn avatar Sep 25 '15 17:09 soonahn

@soonahn each websocket starts out as a normal http(s) request. It has a header indicating that it wishes to be upgraded to a websocket.

image

geekgonecrazy avatar Sep 25 '15 17:09 geekgonecrazy

ELB ... yes! That is a super common gotcha. They never officially supported websocket. Just dealt with it the other day. And lee faus the week before. Make sure you still have round robin!
If you have older browser client .. session affility will also fail (mysteriously) with TCP config :-(

Sing-Li avatar Sep 25 '15 17:09 Sing-Li

@Sing-Li I think we're okay, but not 100% sure yet. Some people haven't refreshed their browser and are still on polling so I've seen some dropped messages here and there.

I'm getting everyone to refresh their clients, so we should all be on websockets, will let you know the status then.

soonahn avatar Sep 25 '15 17:09 soonahn

Is not a websocket issue. People are still getting dropped messages :(

soonahn avatar Sep 25 '15 18:09 soonahn

So .. I think we should rule out first ... two browsers on different non-connected networks ... both accessing server via DNS resolved address; because that would be the config for 90+ % of our current users. Can you test that somehow?

Sing-Li avatar Sep 25 '15 18:09 Sing-Li

Any news on this?

marceloschmidt avatar Nov 05 '15 17:11 marceloschmidt

I believe this issue was fixed by @rodrigok when a error on the logic to retrieve messages sent while disconnected. Let us know otherwise.

engelgabriel avatar Dec 03 '15 05:12 engelgabriel

I've got the same bug in v0.68.3 #11516

maik28 avatar Aug 21 '18 13:08 maik28

I am running Rocketchat .73 version and facing this issue for only one user but permanantly on his system. User is using Windows 10 and have tried on both Chrome and IE browser. Anyone fixed this issue ?

rohitmyaim avatar Jan 08 '19 06:01 rohitmyaim

having this same problem in Version 3.12.1. Some users are fine. One user in particular can not receive my DMs. Sends notification and shows snippet in the left hand pane but room fails to retrieve messages when clicked. Also never properly loads if I do a hard refresh - simply continues showing animation icon until I leave the channel and go back in.

billynoah avatar Mar 12 '21 15:03 billynoah