-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Failed handle request via 'RoomHierarchyRestServlet', KeyError: ('m.room.create', '') #12082
Comments
This is odd, it looks like the server thinks its in the room but the create event isn't in the current state, which really shouldn't happen. Both bits of information are fetched from the Can you turn on debug logging and try again please? The SQL queries should tell you which room is causing the problem, at which point you can you run the following SQL and post the results? |
We've seen this a few times on matrix.org too: https://sentry.matrix.org/sentry/synapse-matrixorg/issues/241899/ |
Turning on debug logging allowed me to identify the problematic room. Here's the result of the SQL statement: matrix-synapse=> select type, membership from current_state_events
where room_id = '![REDACTED]';
type | membership
---------------+------------
m.room.member | join
m.room.member | join
(2 rows) The "Developer Tools" in Element web find the This is actually an old room (version 5, encrypted, created two years ago) It seems to be the only room lacking an matrix-synapse=> select count(distinct room_id) from current_state_events
where room_id not in (
select room_id from current_state_events where type = 'm.room.create'
);
count
-------
1 I am not sure how it ended up missing in that table. |
Is this a room that you were in and then left? It may be interesting to know the local memberships of users in that room (it may confirm that everyone local left); do you see any joined local members with this query?:
The bugs you suggest are related do in fact seem related |
Quoting @reivilibre:
I created the room, left it by mistake and joined it again in the past. Here are the relevant events for that room: select room_memberships.sender, membership
from room_memberships
join events on room_memberships.event_id = events.event_id
where room_memberships.room_id = '![room ID]'
order by topological_ordering;
This query returns:
This is correct: I am indeed the only local user present in the room and the |
Description
Listing all the rooms belonging to some private Space on the "Manage & explore
rooms" page fails with an "Internal Server Error" from Element web and Android.
Filtering the rooms with the panel on the left outside of this page works fine
otherwise.
Steps to reproduce
This error only seems to happen in one particular private space, but not
other ones.
The following error appears in loop in Synapse's logs:
I previously had issues with creating some room in that space due to another
server in the federation being offline. I speculate that some room might have
been partially created and partially added to the space.
The end of that traceback seems similar to the one of #10032.
Version information
If not matrix.org:
The text was updated successfully, but these errors were encountered: