ERROR - POST-758856 - Failed handle request via 'RoomMembershipRestServlet' – when trying to leave room
See original GitHub issueDescription
I’m trying to leave the “Matrix Community→Servers/Hosting→Synapse Admins” room (!ehXvUhWNASUkSLvAGP:matrix.org) via one of my clients (doesn’t matter). All I get is “Internal server error” on the client, and
synapse_1 | 2022-08-15 11:50:10,254 - synapse.http.server - 183 - ERROR - POST-776070 - Failed handle request via 'RoomMembershipRestServlet': <XForwardedForRequest at 0x7fb66c5eedf0 method='POST' uri='/_matrix/client/r0/rooms/!ehXvUhWNASUkSLvAGP%3Amatrix.org/leave' clientproto='HTTP/1.1' site='8008'>
synapse_1 | Traceback (most recent call last):
synapse_1 | File "/usr/local/lib/python3.9/site-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
synapse_1 | result = current_context.run(gen.send, result)
synapse_1 | StopIteration: []
synapse_1 |
synapse_1 | During handling of the above exception, another exception occurred:
synapse_1 |
synapse_1 | Traceback (most recent call last):
synapse_1 | File "/usr/local/lib/python3.9/site-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
synapse_1 | result = current_context.run(gen.send, result)
synapse_1 | File "/usr/local/lib/python3.9/site-packages/synapse/storage/databases/main/state.py", line 371, in _get_state_group_for_events
synapse_1 | raise RuntimeError("No state group for unknown or outlier event %s" % e)
synapse_1 | RuntimeError: No state group for unknown or outlier event $1jY0NigFw_kN3uj5T5KbpXHJCXaB_5ds1bIvLJHW9Hc
on the server (Synapse 1.64.0).
I tried clearing the client caches (didn’t help).
I’d expect to be able to leave the room under any circumstances.
Steps to reproduce
Just try to leave the room.
Homeserver
matrix.schildbach.de
Synapse Version
1.64.0
Installation Method
Docker image
Platform
Docker host is Ubuntu 22.04.1 all pretty much stock.
Relevant log output
synapse_1 | 2022-08-15 11:50:10,254 - synapse.http.server - 183 - ERROR - POST-776070 - Failed handle request via 'RoomMembershipRestServlet': <XForwardedForRequest at 0x7fb66c5eedf0 method='POST' uri='/_matrix/client/r0/rooms/!ehXvUhWNASUkSLvAGP%3Amatrix.org/leave' clientproto='HTTP/1.1' site='8008'>
synapse_1 | Traceback (most recent call last):
synapse_1 | File "/usr/local/lib/python3.9/site-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
synapse_1 | result = current_context.run(gen.send, result)
synapse_1 | StopIteration: []
synapse_1 |
synapse_1 | During handling of the above exception, another exception occurred:
synapse_1 |
synapse_1 | Traceback (most recent call last):
synapse_1 | File "/usr/local/lib/python3.9/site-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
synapse_1 | result = current_context.run(gen.send, result)
synapse_1 | File "/usr/local/lib/python3.9/site-packages/synapse/storage/databases/main/state.py", line 371, in _get_state_group_for_events
synapse_1 | raise RuntimeError("No state group for unknown or outlier event %s" % e)
synapse_1 | RuntimeError: No state group for unknown or outlier event $1jY0NigFw_kN3uj5T5KbpXHJCXaB_5ds1bIvLJHW9Hc
Anything else that would be useful to know?
More log output, grepped by the room ID, attached as file.
Issue Analytics
- State:
- Created a year ago
- Comments:18 (7 by maintainers)
Top Results From Across the Web
Failed handle request via 'RoomHierarchyRestServlet ...
Description Listing all the rooms belonging to some private Space on the "Manage & explore rooms" page fails with an "Internal Server Error" ......
Read more >Matrix Synape server not connecting to other servers
But we fail to connect to other servers (I tried, matrix.org, mozilla.org and ... 83 - ERROR - POST-2857 - Failed handle request...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There’s a known bug where entries remain in
state_groups_state
after a purge: https://github.com/matrix-org/synapse/issues/12821Tried this, but it does not seem to actually delete most of the entries in table
state_groups_state
:The room does no longer exist on my home server (according to /_synapse/admin/v1/rooms), but almost all entries remain in the
state_groups_state
table.Any ideas on how I could help with this issue and/or how I can shrink my database?