dendrite
dendrite copied to clipboard
Federation requests sent to matrix-client.matrix.org, spaces summary errors
Background information
- Dendrite version or git SHA: f75169c3535488ac584c4e270bc9e6b0cb69e539
- Monolith or Polylith?: monolith
- SQLite3 or Postgres?: postgres
- Running in Docker?: no
-
go version
: 1.17.7 - Client used (if applicable): Element web
Description
- What is the problem: Dendrite appears to be trying to contact matrix-client.matrix.org with a federated spaces summary request?!
- Who is affected:
- How is this bug manifesting: Retrieving the summary for a particular Space via federation is very slow, server logs warnings
- When did this first appear: After enabling the updated spaces summary feature, which works fine for most spaces
Steps to reproduce
- Select "Space home"
- it shows a spinner, after a while the errors are logged and then the room list appears
level=warning msg="failed to call MSC2946Spaces on server matrix-client.matrix.org" error="Get \"matrix://matrix-client.matrix.org/_matrix/federation/v1/hierarchy/%21bwfnVJRXzcNmprzAwR:matrix.org\": dial tcp [2606:4700:10::6814:15ec]:8448: i/o timeout" req.id=WsVQQJkonL6p req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix-client.matrix.org" error="Get \"matrix://matrix-client.matrix.org/_matrix/federation/v1/hierarchy/%21bwfnVJRXzcNmprzAwR:matrix.org\": dial tcp [2606:4700:10::6814:15ec]:8448: i/o timeout" req.id=lABmvnYnlH1C req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix-client.matrix.org" error="Get \"matrix://matrix-client.matrix.org/_matrix/federation/v1/hierarchy/%21XwPZyvBnwFETLdeuSR:matrix.org\": dial tcp [2606:4700:10::6814:15ec]:8448: i/o timeout" req.id=lABmvnYnlH1C req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix-client.matrix.org" error="Get \"matrix://matrix-client.matrix.org/_matrix/federation/v1/hierarchy/%21XwPZyvBnwFETLdeuSR:matrix.org\": dial tcp [2606:4700:10::6814:15ec]:8448: i/o timeout" req.id=WsVQQJkonL6p req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix-client.matrix.org" error="Get \"matrix://matrix-client.matrix.org/_matrix/federation/v1/hierarchy/%21GSkQJOQnyVNmtzOOdu:matrix.org\": dial tcp [2606:4700:10::6814:15ec]:8448: i/o timeout" req.id=WsVQQJkonL6p req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix-client.matrix.org" error="Get \"matrix://matrix-client.matrix.org/_matrix/federation/v1/hierarchy/%21GSkQJOQnyVNmtzOOdu:matrix.org\": dial tcp [2606:4700:10::6814:15ec]:8448: i/o timeout" req.id=lABmvnYnlH1C req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix.org" error="contents=[123 34 101 114 114 99 111 100 101 34 58 34 77 95 85 78 75 78 79 87 78 34 44 34 101 114 114 111 114 34 58 34 85 110 107 110 111 119 110 32 114 111 111 109 58 32 33 115 122 90 97 119 83 84 65 100 69 110 84 66 70 97 89 109 87 58 109 97 116 114 105 120 46 111 114 103 34 125] msg=Failed to GET JSON (hostname \"matrix.org\" path \"/_matrix/federation/unstable/org.matrix.msc2946/hierarchy/!szZawSTAdEnTBFaYmW:matrix.org\") code=404 wrapped=M_UNKNOWN: Unknown room: !szZawSTAdEnTBFaYmW:matrix.org" req.id=lABmvnYnlH1C req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix.org" error="contents=[123 34 101 114 114 99 111 100 101 34 58 34 77 95 85 78 75 78 79 87 78 34 44 34 101 114 114 111 114 34 58 34 85 110 107 110 111 119 110 32 114 111 111 109 58 32 33 115 122 90 97 119 83 84 65 100 69 110 84 66 70 97 89 109 87 58 109 97 116 114 105 120 46 111 114 103 34 125] msg=Failed to GET JSON (hostname \"matrix.org\" path \"/_matrix/federation/unstable/org.matrix.msc2946/hierarchy/!szZawSTAdEnTBFaYmW:matrix.org\") code=404 wrapped=M_UNKNOWN: Unknown room: !szZawSTAdEnTBFaYmW:matrix.org" req.id=WsVQQJkonL6p req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix.org" error="contents=[123 34 101 114 114 99 111 100 101 34 58 34 77 95 85 78 75 78 79 87 78 34 44 34 101 114 114 111 114 34 58 34 85 110 107 110 111 119 110 32 114 111 111 109 58 32 33 109 79 78 120 79 104 71 105 67 66 67 107 88 87 75 72 102 106 58 109 97 116 114 105 120 46 111 114 103 34 125] msg=Failed to GET JSON (hostname \"matrix.org\" path \"/_matrix/federation/unstable/org.matrix.msc2946/hierarchy/!mONxOhGiCBCkXWKHfj:matrix.org\") code=404 wrapped=M_UNKNOWN: Unknown room: !mONxOhGiCBCkXWKHfj:matrix.org" req.id=lABmvnYnlH1C req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix.org" error="contents=[123 34 101 114 114 99 111 100 101 34 58 34 77 95 85 78 75 78 79 87 78 34 44 34 101 114 114 111 114 34 58 34 85 110 107 110 111 119 110 32 114 111 111 109 58 32 33 109 79 78 120 79 104 71 105 67 66 67 107 88 87 75 72 102 106 58 109 97 116 114 105 120 46 111 114 103 34 125] msg=Failed to GET JSON (hostname \"matrix.org\" path \"/_matrix/federation/unstable/org.matrix.msc2946/hierarchy/!mONxOhGiCBCkXWKHfj:matrix.org\") code=404 wrapped=M_UNKNOWN: Unknown room: !mONxOhGiCBCkXWKHfj:matrix.org" req.id=WsVQQJkonL6p req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix.org" error="contents=[123 34 101 114 114 99 111 100 101 34 58 34 77 95 85 78 75 78 79 87 78 34 44 34 101 114 114 111 114 34 58 34 85 110 107 110 111 119 110 32 114 111 111 109 58 32 33 76 103 78 90 87 104 83 117 101 84 105 76 67 116 111 72 116 97 58 109 97 116 114 105 120 46 111 114 103 34 125] msg=Failed to GET JSON (hostname \"matrix.org\" path \"/_matrix/federation/unstable/org.matrix.msc2946/hierarchy/!LgNZWhSueTiLCtoHta:matrix.org\") code=404 wrapped=M_UNKNOWN: Unknown room: !LgNZWhSueTiLCtoHta:matrix.org" req.id=lABmvnYnlH1C req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
level=warning msg="failed to call MSC2946Spaces on server matrix.org" error="contents=[123 34 101 114 114 99 111 100 101 34 58 34 77 95 85 78 75 78 79 87 78 34 44 34 101 114 114 111 114 34 58 34 85 110 107 110 111 119 110 32 114 111 111 109 58 32 33 76 103 78 90 87 104 83 117 101 84 105 76 67 116 111 72 116 97 58 109 97 116 114 105 120 46 111 114 103 34 125] msg=Failed to GET JSON (hostname \"matrix.org\" path \"/_matrix/federation/unstable/org.matrix.msc2946/hierarchy/!LgNZWhSueTiLCtoHta:matrix.org\") code=404 wrapped=M_UNKNOWN: Unknown room: !LgNZWhSueTiLCtoHta:matrix.org" req.id=WsVQQJkonL6p req.method=GET req.path="/_matrix/client/unstable/org.matrix.msc2946/rooms/!JPfhCWXJZLgLmhyAbA:matrix.org/hierarchy" user_id="@bones_was_here:xonotic.org"
Why are federation requests using https://matrix.org/.well-known/matrix/client
?
Also seen oddities on other servers with lookup failed for \"matrix-federation.matrix.org\""
when sending invites over federation...
~~In Element, I see a https://matrix.example.com/_matrix/client/v1/rooms/[redacted]%3Amatrix.org/hierarchy?suggested_only=true&max_depth=1&limit=20
return a 404.~~
~~This is when I open a space and try to look at the list of rooms in that space.~~
I hadn't enabled the spaces MSC in the Dendrite config... whoops
I'm closing this because on closer inspection of the Space in question (which I don't admin) using element devtools, I can see multiple misconfigurations such as m.space.child
with "via": ["matrix-client.matrix.org"]
. I'll let the admin know about how to fix it.