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
Unread channels appear as if read after a few minutes #26755
Comments
We have just tried another migration, this time using |
After wiping the new instance that showed the same problem, starting from scratch and sanitising the data gained from
After those changes, the import worked cleanly and the new instance seems to be showing unread notifications correctly so far. It's still unclear to us which of the changes above was the reason for fixing the failure and what to do when it happens again. |
Per Mattermost guidelines, GitHub issues are mainly used for bug reports: https://handbook.mattermost.com/contributors/contributors/ways-to-contribute/. For troubleshooting questions, would you be open to using https://forum.mattermost.com/? You can also post your question at https://community.mattermost.com/core/channels/peer-to-peer-help. |
Well, this is clearly a bug -- it shouldn't be possible to get into such a state just via posting messages and REST API. |
Hi @Xaphiosis - could you clarify what the issue is at the moment. From what I understand, at first you did "data migrated via the REST API, ", and then you migrated via I don't know what is "REST API migration". So it would be good if you could clarify that. |
Summary
On an MM server with data migrated via the REST API, all unread channels stop looking unread after a few minutes (including any notification indicator on tab in web client).
Steps to reproduce
This is difficult; we do not know why this happened, and have created a second server with identical setup but without the REST API migration where works fine. We do not want to undertake migration again and have the same thing happen.
Both servers are self-hosted mattermost on Ubuntu 22.04:
For our server with the REST API migrated messages, the steps to reproduce are:
Additionally:
For our new, identical setup Mattermost server minus the bots and imported messages, with identical config as far as we can tell, everything works fine.
Expected behavior
An unread channel keeps appearing unread when the user has not opened it or read it.
Observed behavior (that appears unintentional)
We don't see anything interesting showing up in the logs, the channels just switch to appearing unread.
Possible fixes
Unknown. We are looking for someone with Mattermost knowledge to assist with possible causes that would make an unread channel appear as read, and how we could go about debugging this.
This could have something with having created bot users to produce messages via the REST API, but we don't see how that would result in this behaviour.
I have come across someone having vaguely similar problem here: https://forum.mattermost.com/t/channels-with-unread-messages-do-not-appear-bold-and-bright/17933
but sadly there's no indication of what could cause this problem, and in their case marking channels as unread works fine.
All other issues I've come across are about things staying unread despite being read, and thus not related.
We would be very grateful for any assistance with this, as we have not been able to figure out any mechanism ourselves by which such a behaviour is possible.
The text was updated successfully, but these errors were encountered: