Skip to content
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

Many unread and unreadable rooms existing since compression #27

Open
telmich opened this issue Mar 3, 2021 · 8 comments
Open

Many unread and unreadable rooms existing since compression #27

telmich opened this issue Mar 3, 2021 · 8 comments

Comments

@telmich
Copy link

telmich commented Mar 3, 2021

After using https://github.com/matrix-org/rust-synapse-compress-state we see the following behaviour:

  • rooms that do not have new unread messages, are marked as unread
  • when selecting these rooms in element-web, the rooms do not show any content
  • When trying to access previous messages the error "failed to load timeline position" is raised

I am raising this issue here, as others running synapse might run into it.

I am currently trying to find out whether any kind of "matrix-db-fsck" exists that checks the integrity. Any pointers are welcome. I have raised the issue in the synapse-admins room as well.

@Erethon Erethon transferred this issue from matrix-org/synapse Mar 3, 2021
@clokep
Copy link
Member

clokep commented Mar 3, 2021

I've had this moved to the compress repo since it seems related to running that tool.

@telmich
Copy link
Author

telmich commented Mar 3, 2021

Messages from the element-web console I see:

Could not find event $C-DUQVMF9fQJR4IVDL-jkgh9u9yJwT8EjTArFBp7JD8

In another room that exhibts this behaviour when trying to access a message by clicking "back on the timeline" button:

Error loading timeline panel at $zsMAnO1IfZj3a3IBCn1yl-yViFZll4vBh9zyHmd4llc: M_FORBIDDEN: You don't have permission to access that event.

@telmich
Copy link
Author

telmich commented Mar 3, 2021

Additionally some unencrypted rooms show notification symbols when there are no new messages.

@clokep
Copy link
Member

clokep commented Mar 3, 2021

It was pointed out that this might be matrix-org/synapse#6779, which is then made worse by using the state compressor. Maybe the query in matrix-org/synapse#6779 (comment) could be run to see if that is related.

@telmich
Copy link
Author

telmich commented Mar 3, 2021

I just checked the query mentioned in matrix-org/synapse#6779 (comment) and it does contain 0 rows.

What I see is that mostly 1 user account seems to be affected and a lot of private chats. Leaving a room and rejoining (even for unencrypted) does not restore the ability to see messages from before.

@telmich
Copy link
Author

telmich commented Mar 3, 2021

Something I also notice right now is that many of the unread/unreadable direct chats are actually listed below rooms instead of "people"

@telmich
Copy link
Author

telmich commented Mar 5, 2021

I was wondering whether anyone has a pointer to something like a "state fsck" that I could run to debug the situation?

@telmich
Copy link
Author

telmich commented Jun 21, 2022

It seems that this bug is still present in the current implementation. After continuing to apply the synapse_auto_compressor while synapse was offline, other members of the ungleich.ch homeserver reported afterwards the access denied to events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants