[intermittent] [session timeout] Can't see new messages in channels
Description:
Only seen some days and only by some users (running either the desktop app or the browser, in Windows 10). The channel name will go bold and notifications will come through, a sign of new messages. But when going to the channel, there will be no new messages. If the user then logs out and logs back in, everything will be back to normal, ie the new messages will be there in the channel.
I have a feeling that this related to the session timeout. Currently we have a session timeout of 1 day. Most users get logged out properly every 24 hours. My theory is that, sometimes, Rocket Chat fails to log some user out, which is why they can see the channel being highlighted and notifications coming through. But the session has timed out and therefore they can't see any new messages.
I should also point out that when this happens, affected users can't send new messages either. They can type them in, but messages will be grey-ed out.
Server Setup Information:
- Version of Rocket.Chat Server: 0.57.2
- Operating System: Linux
- Deployment Method(snap/docker/tar/etc): docker
- Number of Running Instances: 1
- DB Replicaset Oplog: Disabled
- Node Version: v4.5.0
Steps to Reproduce:
Unsure - see description
Expected behavior:
For the system to log users out after session timeout
Actual behavior:
It seems that some users are not being logged out and RocketChat remains open with limited functionality.
Relevant logs:
Haven't managed to capture logs for this yet. Will try though
We are seeing this in the logs, not sure if it is relevant or not:
[34mI20170817-16:09:19.249(1) [34mMeteor ➔ method UserPresence:online -> userId: null , arguments: {}
and further down... (I had to sanitize userId and username)
[34mI20170817-16:11:47.741(1) [34mMeteor ➔ publish fullUserData -> userId: XXXXXX , arguments: { '0': 'name-of-user', '1': 1 }
[34mI20170817-16:11:47.746(1) [34mBaseCache ➔ debug users Falling back _publishCursor to model with query: { username: 'name-of-user' }
Hitted the same bug in 0.68.3, could be related to #11516
Still experiencing this in 3.7.4. Seems related to #12206.
I think we solved this during the multiple refactorings, please open again if the problem persists.