-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Error: 404 - Could not find event - on incoming federation transaction PUT queries #10589
Comments
Can anybody post the template of SQL query, that Synapse uses to find event by id in federation transaction? |
Or maybe other way is to delete this event from database, to resync it from other homeservers via federation? Or this action will totally broke all the thing? |
it's really not that simple. might be worth checking that the |
Don't do that. You'll almost certainly make things worse. |
The only other suggestion I have right now is to turn logging up to DEBUG and share the logs for the federation worker. (If you can share the raw logs rather than grepping for individual transactions, it will probably save some back-and-forth). |
Thanks for suggestion, I'll turn on the DEBUG logs and share the results. @richvdh I even can give you private access to Grafana Loki with that logs, to easier grepping and search, if you allow! |
Edit: the above is completely wrong: |
Sorry, I mixed up the id's of event in first post, so I replaced now them with correct id, and figured out that this event_id is present in
So seems here is the main source of problem. |
There may be more than one problem here.
|
Huge thanks to the @richvdh for investigating the source of this federation problem, this issue is solved now! Tight solution is purging the problematic room, which contains the event, via those steps:
|
Our public ru-matrix.org homeserver have a lot of
404 - Could not find event
errors in logs (about 7000-8000 per day), that pointing to one same event with id$Dv3wmat7XbtBm4O37eT+Oa2kxHKUfCj36nCMiHyj5F4
. This event is fromMatrixHQ
room (room_id =!OGEhHVWSdvArJzumhm:matrix.org
).#irc:matrix.org
(!BAXLHOFjvDKUeLafmO:matrix.org
).And I see that 99.99% of all "Could not find event" 404 errors are with exactly this event id, same error with other event ids happens very rarely (0-7 per day, average from last 7 days is about 2.73 per day).
Here is example of matched log lines with incoming federation transaction from matrix.org server:
And here - from tchncs.de server:
The interesting thing that this event is present in local Synapse database, here is row from
events
SQL table:And here is from
event_json
table:I see no errors about this in Synapse main process and workers, so can't understand why this event couldn't be found.
What I can try more to investigate this problem deeper?
The text was updated successfully, but these errors were encountered: