-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Can't join room on a remote server: violating constraint event_reference_hashes_event_id_algorithm_key #8768
Comments
https://jojo.peek-a-boo.at/E950513F/synapse_invite_to_err.log invite: end of join trying and db cleanup: |
I'm struggling to understand how those logs correspond to what happened. As I understand it, you
please can you give timestamps to help correlate to the logs? Possibly, try again so that we have a clear record of what happened when. After the above three steps: are there now new entries in
I don't see this anywhere in your logs, so think it's a red herring. |
Hi, thanks for getting back to me so quickly! I reproduced: Sent invitation from my user on my friends HS then clicked on "join" with my user on my own HS. See the traceback when I press the join button at: 2020-11-19 09:15:09,388 This is the log: https://jojo.peek-a-boo.at/E950513F/synapse_invite_to_err_repr1.log
no there are not:
by the look on these: I think I just forgot to to delete the $149 ones! The $160 one's are current and have entries in both tables. Guess I can savely delete the $149 rows, right?
|
Aha something else: I deleted the 3 $149 rows, then pressed "join" again and now see something with matrix.org in these tables. No time to check db now but will soon.....
|
I think it will be interesting to see what's in it now. Thanks! |
little difference
let's have a look at the one in the error message:
|
I guess next step is again deleting all rows from event_reference_hashes that don't have corresponding key in events table? |
@JOJ0 Do you have message retention policies enabled (look under the |
No, doesn't look like it, everything containing "retention" is commented out in homeserver.yaml
|
@JOJ0 What about the one that says just synapse/docs/sample_config.yaml Lines 380 to 384 in 244bff4
|
Not set in my config, so I guess it's falling back to its default value which your posted sample conf says it's disabled:
|
Is there any problem if I move on like this ^ and see what happens next or you 'd like to get some more information of the current state? |
I don't think we can get much more information from the database at the moment. Let's try removing the excess rows again and see what happens. |
Hi @anoadragon453 |
@JOJ0 Thanks for letting us know!
Nothing for right now, but may come knocking again at some point if another lead sprouts up 🙂 |
Hi @MatMaul and @richvdh,
had a very similar issue to this one #8323 with joining a room on a friend's HS.
Version information
{'python_version': '3.6.9', 'server_version': '1.22.1'}
running on an Ubuntu 18.04 machine,
installed by deb package from
https://packages.matrix.org/debian/ bionic main
Room version: 1
Description
This is the error I am getting when I click the "join" button
I followed your suggestion and deleted all rows in event_reference_hashes table that did not have a row with that event_id in the events table. There were actually a whole lot of them! about a hundered-something!
Each time I deleted the row with the key mentioned in the error message and pressed the "Join" button again I got a new key hash mentioned which I then deleted. I ended up comparing events and events_reference_hashes and deleted all from hashes table that did not have a corresponding row in events or events_json
I also tried declining the invitation and let someone reinvite me (or reinvite myself with my user I have on my friends's server in this room). I now ended up with the same error message only that it does not show a DETAIL line in the log anymore:
I even checked event_json if there is anything related. Not sure if that's important but checked anyway:
(also checked for other unrelated keys like '$1%:matrix.xxx.yy' - there were found 2 entries in this table that seem to represent recent events and also have corresponding lines in events table and event_reference_hashes. So all in all if I understood correctly this is properly cleaned up now.
Steps to reproduce
The error is logged each time I press the Join button in the invitation. The invitation stays. If I decline it I can reproduce by sending a new invitation and press Join button.
I have a user in the room on my friend's server as well, so easily can reinvite or get some room information from there.
Any suggestions on how to procede? Thanks in advance! :-)
The text was updated successfully, but these errors were encountered: