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
Users become inactive daily #16275
Comments
@itwasonlyabug Can you help share any Mattermost server logs or developer console errors from the time the issue occurs? |
Hi @amyblais , thanks for the quick response! From the developer console I'm having a hard time getting useful information, but from the mattermost.log file I see the following:
This is interesting, as I tested the DB connection and there is no connectivity problem and I think a DB connection issue should affect all users.
I am not sure how I can get the user ID so I can filter for a specific users, so this sequence is mostly luck.
|
Hello, @itwasonlyabug The To clear off any potential issues with the session tokens first, can you also please ask the affected users to navigate to their Account Settings > View and Log Out of Active Sessions and log out from every session that they have listed there? Log in again and observe if the same daily deactivation of the same set of users happening. Since you mention that it is only happening on a specific subset of users, let us also drill down a bit more on that. You can cross check the user ID by running the SQL statement on the Mattermost database:
When you mentioned inactive, can I confirm that the user status was inactive when you view it from the System Console? For example: I am trying to understand how logging in automatically reactivates their account again, which is strange. |
Hi @ahmaddanialmohd, Don't know how I didn't see the ID there :( I'll parse the logs for specific errors with these users before and after their new sessions. |
So, after some testing: As for the DEBUG logging, I enabled it but the file rotates at 100MB, and I found it next to impossible to get any useful information out of it. The only messages I see that might be useful are:
I couldn't find it in the docs, but how can I bump the log rotation to more than 100mb? I think we definitely need to provide more logs around the time the issue occurs. |
I sent the logs to ELK so I can provide better output. Here's an example of a USER4 that was inactive, logged in and is now shown as member: In the console, i see USER4 as member. In my direct messages i see him as archived (box icon) , but If i click on the DM, in the chat window I cannot send him messages, but I see him as Active (green checkmark).
|
Have you had a chance to take a look at our troubleshooting docs related to websockets https://docs.mattermost.com/install/troubleshooting.html#server-administration? What are your settings set for https://docs.mattermost.com/administration/config-settings.html#enable-cross-origin-requests-from? |
Hi @amyblais, we reviewed the settings of our proxy and they are exactly as recommended here https://docs.mattermost.com/install/install-ubuntu-1604.html#installing-nginx-server As for the websocket error, from a browser I'm seeing the same as the screenshot on that page - HTTP status 101 for the websocket connection. For CORS, these are our settings:
I would like to again emphasize, that this issue is happening only for a small subset of users (~10) - and all of them have names that start with A, B, C or D. So, if it was some general configuration issue I would expect it to be happening regardless of the name and for a much bigger pool of users. |
@itwasonlyabug Would you be open to posting this on our troubleshooting forum here forum.mattermost.org? I have asked our team to take a look at this issue but haven't received responses yet, and our community / support team is more active on the forum site. |
Hi @amyblais, sure thing. That was my initial idea as well, but then I read the rules and decided I should try here first :) |
Summary
Certain users become
inactive
every night, even though during the day they are logged-in and actively using the Desktop client or Mobile client.Steps to reproduce
Expected behavior
Users should remain logged in as long as the session length is configured. Direct messages should not become archived just because the users has not logged-in recently.
Observed behavior (that appears unintentional)
A small subset of users become marked as
inactive
every day and all direct messages with them become archived. They can send messages but cannot receive any until they logout and login again. Once they re-login, their status changes toactive
.Note - the users do not have issues with their GitLab session length.
Note - this affects only people with names starting with
A
,B
,C
orD
, so it looks like some user filtering going wrong.The text was updated successfully, but these errors were encountered: