-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
POST /read_markers fails after history purge if cache is cleared #11738
Comments
I am attempting to reproduce this and just had a few questions on the instructions:
Can you answer the questions and let me know if my interpretation of the instructions are clear? Thanks! |
I have numbered steps for clarity. |
related: #11521 |
The tips here have saved me a lot of work. I have displayed an existing eventID in the raw data in Element and set this in the database:
Synapse must be restarted after the change or stop Synapse before the change. Additionally, I had to log off the users in Element and clear the local cache from the browser/electron via the Developer tools. |
For me I fixed it like that cristianyxen@d5aed2c |
Seems like a reasonable workaround, and is working for me. Thanks! |
Deleting events causes database corruption, see e.g. matrix-org/synapse#11738 and matrix-org/synapse#13476.
Is this the root cause of element-hq/element-web#24111 as well? |
Description
POST /read_markers fails when event at which m.fully_read points is cleared using history purge.
Steps to reproduce
Looks like the only current workaround is to edit database manually :/ If synapse is not restarted, event is fetched from cache and read marker can be edited
m.fully_read points to non-existing event after history purge:
Version information
Homeserver: hs.stg.globekeeper.com
Version: 1.49.2 (with small, irrelevant modifications: https://github.com/globekeeper/synapse/commits/develop)
Install method:docker
Platform: GKE/containerd
The text was updated successfully, but these errors were encountered: