This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
"Failed to load timeline position" (/context 404) from jump to last unread message button after using Purge History API #16207
Labels
A-Admin-API
A-Context-Endpoint
/context client API endpoint
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Major
Major functionality / product severely impaired, no satisfactory workaround.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
X-Needs-Info
This issue is blocked awaiting information from the reporter
Description
After my db exploded in size (aprox 300gb) i needed to quickly get rid of as much state as possible so I purged every room from any non local event older than 30 days.
But now any room that has only local members is missing any message older than 30 days.
Looking into an example channel, I see 0 messages in element and a jump to last unread message button that results in
Now when I directly interact with postgres I can still find tons of events in this room with:
And also specifically event
$HvTnDTEDlze3Q15hditXICmEchw_ef7hehoKxx2O_Uk
is still there.So far this seems to be true for all my local rooms, the events are still in the db, but not visible in Element. I can search for them on old clients, but I assume that's just because encrypted messages get cached for search.
Can I recover this somehow?
Steps to reproduce
I run my instance with workers, but during the purge all of those were disabled with only the main worker running and nginx also being disabled to avoid any other traffic to my instance.
I used this script to purge:
purge_script.zsh
Homeserver
dmnd.sh
Synapse Version
{"server_version":"1.71.0","python_version":"3.8.10"}
Installation Method
pip (from PyPI)
Database
postgres with a single server. i think i migrated from sqlite but that must have been 5 years ago.
Workers
Multiple workers
Platform
Configuration
No response
Relevant log output
Anything else that would be useful to know?
I don't have any logging from the purging itself since it happened too long ago and I haven't yet vacuumed so I am still running out of space. The log above is the only error I get repeatedly currently.
All of these rooms are room version 1-4 so very old
The text was updated successfully, but these errors were encountered: