-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Federated room cannot be joined again when left and deleted before #9481
Comments
Related #9418 |
Maybe it's the same bug causing the problem, but those are different cases, which could lead to it.
|
Ah, I see that this is due to leaving while the other is due to a failure to join. 👍 Hopefully the fix is the same! |
Is there any hotfix? Leaving and joining the room again works properly, but when a room is deleted via API and joined again it crashes as shown. So there supposed to be some remain of that deleted room in database which causes that crash after joining it again. |
When you deleted the room you also purged it I'm guessing? I suspect that |
Right, I purged the history, then I left and finally deleted it.
|
That's strange |
|
Understood, I used synapse-admin to delete the room finally.
|
Oh, interesting. FWIW, in #9418, I probably purged/deleted the room at some point in the past before trying to rejoin it (and then lrunning into this issue). |
The question is how to fix it. I suppose the patch from #9498 will fix it for the future. Do I need to run some sql commands to fix current state? |
My goal in there would be to fix it for previously purged rooms too, if possible. If not you can hopefully run some of the commands manually.
Sounds like these are probably duplicates then. |
I have tested all those sql commands (delete replaced with select) from What causes this?
|
The code currently does not remove data from |
So can I try to purge those tables you mentioned manually with that room_id without any harm? I think the exception
is the key to the problem. It seems primary key is created multiple times within table
|
There occured no error when the room was deleted, it happens for every federated room you leave, delete and re-join. It's not random.
|
Same problem here, I encountered this problem when using the irc bridge, I failed to join the #artix room, but my irc side is in the room. now all the irc rooms are broken because I tried a !quit, bad idea :( |
Oops, we'll need the background update to fully fix this. |
I think that should be OK. Note that some of them don't have a |
I can confirm that problem with leaving and deleting rooms is solved by Synapse 1.29.0. Tested on a room, that wasn't previously deleted by API. |
We're seeing the same issue and have already updated to 1.29.0. Since it is cause by events in the past before running Documentation of a safe way to fix problems with existing rooms would be much appreciated. (If that requires direct access to |
This will happen automatically once #9542 is merged -- a background update should clean-up the data. Unfortunately this didn't make it into v1.29.0 and will be in v1.30.0. |
Description
When a federated room (e.g. #synapse:matrix.org) is joined from self hosted federated homeserver, then left, deleted via API from self homeserver, then rejoin fails.
Steps to reproduce
/_synapse/admin/v1/rooms/[room_id]/delete
The room should be rejoined without any problem.
Version information
Homeserver: matrix.bolesiny.net
Version: 1.27.0
Install method: Fedora rpm package
Platform: Fedora 33
The text was updated successfully, but these errors were encountered: