-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[500] Internal Server Error when trying to leave room #15967
Comments
|
Please could you check if the room is partial-stated by running this SQL in your Postgres database and saying whether there's a row there? SELECT * FROM partial_state_rooms WHERE room_id = '!OGEhHVWSdvArJzumhm:matrix.org'; |
That db size is also getting out of hand. It's at 50GB now and besides that Matrix HQ room, I have 4 local users (2 bots, 2 humans) and 9 very low volume rooms on the server. |
I'm having the same issue, with the Synapse Admins room |
@reivilibre @MatMaul It's the state_groups_state table, specifically |
Unfortunately message retention is known to have corruption effects, see e.g. #13476 . It's more likely in large rooms like Synapse admins or Matrix HQ. My advice to you would be:
Can you try that and see it succeeds? |
@DMRobertson DELETE from xxx where room_id='!OGEhHVWSdvArJzumhm:matrix.org'; for every table which has a room_id field. Turning off message retention now. |
You've probably gotten away with it, but: please please avoid manually make edits to the Synapse database. Doing so without knowing what you're doing is highly unsafe and we cannot support anyone who has done so without our guidance. |
Luckily, the schema is fairly easy to understand. To be honest, if it wouldn't have worked, I would have wiped it completely and set it up new. As I wrote, I have 2 real users and a handful of bots... Wiping it would have been a smaller issue than a DB that's growing more than 1 GB per day. As for my personal problem, your advice to turn off message retention probably has solved it for the future. There was somebody else further up having the same problem but from my point of view there is no further need for this ticket. I leave the decision what to do with it to you. Thank you for your help! |
This does not make manual DB spelunking a good idea. There are a number of footguns.
|
In any case, I'm glad things are working for you. Let us know if you have any trouble with that room again. |
Description
I'm trying to leave the matrix HQ room. Element showed me first an error about a missing create event. Now when I try again, I get a [500] Internal Server error.
Steps to reproduce
Homeserver
matrix.gofferje.net
Synapse Version
{"server_version":"1.87.0","python_version":"3.11.4"}
Installation Method
Docker (matrixdotorg/synapse)
Database
Postgres, single server, clean setup, no backup
Workers
Single process
Platform
Oracle cloud Ampere instance, Oracle Linux, Docker version 23.0.2, build 569dd73
Configuration
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: