After the penultimate update, all users remain displayed as online. Even if nobody has the PC on, they are still displayed as online or busy.
Was there a change or do you know what I can do?
It is really stupid if someone is online, but he is not at work.
Server Setup Information
Server Version 5.4.0 Debian
Client Version 3.8.14
Same problem here!
Server Version 5.4.1 Ubuntu
MongoDB 5.0.14
Client Browser
Hi!
That’s strange. I was not able to replicate this with a fresh new install.
Do you notice any outstanding logs? Remember to increase the log verbosity.
Thank’s
if one changes the status, it will be displayed correctly. It just does not work when one goes offline. Then the last status remains active.
Logs I would have to look, but I can not imagine since everything else works wonderfully.
Is since the penultimate update. I had hoped that the last update fixes the error, but probably I drag the now always with me around
which logs would be interesting?
We have exactly the same problem as @BiERWiESEL . Except for the wrong online status, RC runs perfectly. I took a look at the log, but found no indication of a problem.
I have now raised the log level to 2…
Timmi
December 20, 2022, 12:26pm
6
Had a similar issue.
There are quite some tickets related to it. e.g Deactivating a user will keep the account status online · Issue #27187 · RocketChat/Rocket.Chat · GitHub
It looks like that the users which are always online have multiple entries inside the usersSessions
table.
I have cleared all entries from that table and set every user to offline. Which have fixed the issue until now.
These are the commands which I run on my rocketchat DB:
db.usersSessions.deleteMany({})
db.users.updateMany({status:"online"},{$set:{status:"offline"}})
Best regards
There many, many open issues concerning the user status, e.g.
opened 08:59AM - 04 Nov 22 UTC
At first time we had two instance installation with separetaed DB on DigitalOcea… n.
After we found out about that multiple installation became only for EE, we have just removed one instance.
It behaves strangely after we delete one of two instance.
We authorize our users over Active Directory.
### Description:
When an employee is fired, we go to AD and lock him there.
After that we go to RC admin panel and lock him there, but if user has been online he has still online status. It's wrong.
### Steps to reproduce:
1 - User now online
2 - User is activated
3 - Go to admin panel -> users
4 - Select user
5 - Click on -> "Deactivate user"
### Expected behavior:
Set offline status for user, that has diactivated
### Actual behavior:
After user has diactivated status still online
### Server Setup Information:
- Version of Rocket.Chat Server: 5.3.0
- Operating System: ubuntu 20.04
- Deployment Method: tar
- Number of Running Instances: 1
- DB Replicaset Oplog: yes
- NodeJS Version: v14.19.3
- MongoDB Version: 5.0.8 / wiredTiger (oplog Enabled)
No logs in debug mode.
opened 05:09PM - 06 Dec 22 UTC
**Problem:**
Since our update to 5.x (currently running 5.4.0) some users are a… lways shown as Online even though they are not connected on any device. This results in no offline notification emails sent and confused users.
**Details / attempts without success:**
Using the "Logout from other devices" function within the users profile does not change anything.
Manually logging out from all clients (desktop, mobile) does not change anything.
Deactivating / Locking the user as an Administrator does not change anything.
In all of those cases the user stays Online (which results in no offline email notifications beeing sent):
![image](https://user-images.githubusercontent.com/73176605/205971388-55224218-7947-45e0-abc1-13062c09d33e.png)
Manually changing the status to Offline helps and changes the status, but would then stay Offline even if the user is online.
Manually switching it back to Online changes the status, but now we are stuck again with beeing always Online (as before).
When Updating to 5.4.0 the affected users were automatically & directly online once RocketChat came online.
**Old Bugreport with the identical issue:**
https://github.com/RocketChat/Rocket.Chat/issues/16455 (from 2020)
https://github.com/RocketChat/Rocket.Chat/issues/27145 (October2022 to still open)
https://github.com/RocketChat/Rocket.Chat/issues/27465 (opened today)
**Logfiles:**
The server receives the Logout and it works as designed for most of the users:
{"level":35,"time":"2022-12-06T16:19:09.068Z","pid":8,"hostname":"REDACTED","name":"Meteor","method":"logoutCleanUp","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","referer":"https://REDACTED/home","remoteIP":"REDACTED","instanceId":"REDACTED"}
{"level":35,"time":"2022-12-06T16:19:09.069Z","pid":8,"hostname":"REDACTED","name":"API","method":"POST","url":"/api/v1/method.callAnon/logoutCleanUp","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","length":"27333","host":"REDACTED","referer":"https://REDACTED/home","remoteIP":"REDACTED","status":200,"responseTime":2}
**Environment**:
Since the problem only affects a few instead of all users and only started recently, i do not believe that it is infrastructure related.
Running 2 Docker containers & natively running NGINX Reverse Proxy infront of it:
![image](https://user-images.githubusercontent.com/73176605/205974459-f83e76fb-c61e-4130-af90-8a948813aded.png)
Client: Docker Engine - Community
Version: 20.10.21
API version: 1.41
Go version: go1.18.7
Git commit: baeda1f
Built: Tue Oct 25 18:02:00 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.21
API version: 1.41 (minimum version 1.12)
Go version: go1.18.7
Git commit: 3056208
Built: Tue Oct 25 17:59:53 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.10
GitCommit: 770bd0108c32f3fb5c73ae1264f7e503fe7b2661
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Rocket.Chat:
Version der Anwendungs-Engine
1.36.0
Node-Version
v14.19.3
Datenbankmigration
281 (6. Dezember 2022 17:25)
MongoDB
5.0.8 / wiredTiger (oplog Aktiviert)
I can run additional tests or submit further logfiles if you want to test something.
opened 08:28AM - 28 Oct 22 UTC
### Description:
Since last update, everyone is present 24/7.
When someone … changes his status it works well, but when it comes to logging off Rocketchat or turning off the computer, the presence doesn't get updated.
### Steps to reproduce:
1. Go to members list:
### Expected behavior:
This is deep nigth, only few of members should show green icon.
### Actual behavior:
Everyone is green:
![image](https://user-images.githubusercontent.com/28625716/198527516-ef919023-2558-4a7b-8664-6109777eece5.png)
### Server Setup Information:
- Version of Rocket.Chat Server: 5.2.0
- Operating System: Ubuntu 22.04LTS
- Deployment Method: snap
- Number of Running Instances: 1
- DB Replicaset Oplog: enabled
- NodeJS Version: v14.19.3
- MongoDB Version: 4.4.15 / wiredTiger (optlog enabled)
### Client Setup Information
- Desktop App or Browser Version: both
- Operating System: Windows 10, Windows 11
### Additional context
The issue is likely to be present since last update
### Relevant logs:
Server logs:
```
{"level":40,"time":"2022-10-28T07:43:16.740Z","pid":1076,"hostname":"rocketchat","name":"VoIPService","msg":"Voip is not enabled. Cant start the service"}
{"level":40,"time":"2022-10-28T07:43:26.629Z","pid":1076,"hostname":"rocketchat","name":"VoIPService","msg":"VoIP service already stopped"}
{"level":51,"time":"2022-10-28T07:43:27.584Z","pid":1076,"hostname":"rocketchat","name":"Migrations","msg":"Not migrating, already at version 281"}
ufs: temp directory created at "/tmp/ufs"
[DatabaseWatcher] Using change streams
+-------------------------------------------------+
| SERVER RUNNING |
+-------------------------------------------------+
| |
| Rocket.Chat Version: 5.2.0 |
| NodeJS Version: 14.19.3 - x64 |
| MongoDB Version: 4.4.15 |
| MongoDB Engine: wiredTiger |
| Platform: linux |
| Process Port: 3000 |
| Site URL: [XXX] |
| ReplicaSet OpLog: Enabled |
| Commit Hash: 08f03cc9d8 |
| Commit Branch: HEAD |
| |
+-------------------------------------------------+
Loaded the Apps Framework and loaded a total of 2 Apps!
{"level":50,"time":"2022-10-28T07:44:43.018Z","pid":1076,"hostname":"rocketchat","name":"System","msg":"Exception while invoking method autoTranslate.getSupportedLanguages 'Auto-Translate is disabled [error-autotranslate-disabled]'"}
{"level":50,"time":"2022-10-28T07:44:50.832Z","pid":1076,"hostname":"rocketchat","name":"System","msg":"Exception while invoking method autoTranslate.getSupportedLanguages 'Auto-Translate is disabled [error-autotranslate-disabled]'"}
```
Application logs:
```
DevTools failed to load source map: Could not parse content for file:///C:/Users/user/AppData/Local/Programs/Rocket.Chat/resources/app.asar/app/html-parse-stringify.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///C:/Users/user/AppData/Local/Programs/Rocket.Chat/resources/app.asar/app/fuselage.development.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///C:/Users/user/AppData/Local/Programs/Rocket.Chat/resources/app.asar/app/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///C:/Users/user/AppData/Local/Programs/Rocket.Chat/resources/app.asar/app/stylis.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for file:///C:/Users/user/AppData/Local/Programs/Rocket.Chat/resources/app.asar/app/focus-within-polyfill.js.map: Unexpected end of JSON input
```
opened 01:56PM - 20 Oct 22 UTC
### Description:
When a user logs into Rocket.Chat with a browser that does n… ot have any cookies from a previous sign-in, their status is set to Offline (invisible).
### Steps to reproduce:
1. Log into Rocket.Chat and set your status to Online
2. Log back out
3. Clear cookies and offline data or open a new private session
4. Log into Rocket.Chat
5. User status will be set to Offline
### Expected behavior:
One of these:
- Default status should be Online
- Server should remember last status
- Allow users and/or admins to set a default status
### Actual behavior:
User status will be set to Offline.
### Server Setup Information:
- Version of Rocket.Chat Server: 5.2.0
- Operating System: Devuan Linux
- Deployment Method: tar
- Number of Running Instances: 1
- DB Replicaset Oplog: Enabled
- NodeJS Version: v14.19.3
- MongoDB Version: 4.4.16 / wiredTiger
### Client Setup Information
- Desktop App or Browser Version: Firefox 102.4 and 106
- Operating System: Windows 10 and Devuan Linux
### Additional context
Users are signing in with LDAP accounts.
Reporting user says that this is a relatively new issue.
### Relevant logs:
My instances are also affected after upgrading from 5.1.2 to 5.3.3.
In the meantime the RC devs introduced a lot of new fancy features, but this very annoying bug hasn’t been addressed yet.
I will not change anything myself in the DB for now, let’s see what the official say about it
Unfortunately, the workaround did not work for me.
If the bug is known for such a long time, a fix should come. Is really bad if you can no longer see who is online.
1 Like
is there a fix coming from rocketchat now?
EDIT:
by emptying the db i was able to solve the problem. the only question is how long it will last.
after i had to restart the rocket.chat service, the problem is also back. Now I have to do the workaround again with deleting the sessions. Too bad that just no update comes. so the software must always be maintained
Hi!
We need to reproduce this on a fresh, clean, new docker install in order to move forward
Can you help us on that?
namhost
January 20, 2023, 1:17pm
13
Please note, this is not only happening on docker @dudanogueira We have 5.4.1 installed on a stand-alone ubuntu server and we’re experiencing it too. And this was a clean install a few months back.
namhost
January 20, 2023, 1:34pm
14
Can you provide more details on what exactly you executed, please? You said “by emptying the db i was able to solve the problem.”
Timmi:
({})
he means clearing the sessions from the database. This also works, but as soon as you restart the server or the services, the problem is there again.
The problem is not in Docker with us but directly on debian
@dudanogueira
Regarding this problem, we managed to isolate the point, until version 5.1.x is functional, from version 5.2.x or higher, the occurrence of the user status problem is identified. No relevant error related to the statuses was displayed in the application logs.
We performed a fresh install on with the same details as the production environment, this fresh install was run with version 5.4.2, and the status issue also occurs. In this installation, we performed the downgrade from versions 5.3.x, 5.2.x and the problem remains, when we apply version 5.1.5 the status update works correctly.
Enviroment Details
Description: CentOS Linux release 7.9.2009 (Core)
Docker version 20.10.17, build 100c701
Rocket.Chat Version: 5.1.5
NodeJS Version: 14.19.3 - x64
MongoDB Version: 5.0.12
MongoDB Engine: wiredTiger
If you need any support to simulate or information just let me know.
Regards,
1 Like
THanks @scarniel our tema is looking into that.
It would help if you could test this on latest develop branch (you can just spin up an instance using the develop
tag)
THanks!
@dudanogueira
We performed the test with the version below a moment ago:
| | SERVER RUNNING |
| +----------------------------------------------------+
| | |
| | Rocket.Chat Version: 6.0.0-develop |
| | NodeJS Version: 14.21.2 - x64 |
| | MongoDB Version: 5.0.12 |
| | MongoDB Engine: wiredTiger |
| | Platform: linux |
| | Process Port: 3010 |
| | Site URL: https://XXXXX |
| | ReplicaSet OpLog: Enabled |
| | Commit Hash: 364a1535f6 |
| | Commit Branch: develop |
| | |
| +----------------------------------------------------+
With this environment, we’ve run the status change tests for away, busy, online, logoff, and they’re all updating correctly.
1 Like
Awesome! 6.0 is coming with a lot of cool new features and fixes.
it should be released soon
we have a channel with all the brave users that help us testing release candidate versions:
Thanks you very much! We really appreciate your help!