matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.67k stars 664 forks source link

Cannot Accept Private Room Invite from Homeserver #2957

Open ghost opened 1 year ago

ghost commented 1 year ago

Background information

Description

Steps to reproduce

Error message in Element Web (sometimes): MatrixError: [401] Unauthorized (https://matrix-client.matrix.org/_matrix/client/r0/join/!hRJHJXZjnzcKPUl8%3Ahumble.cafe)

Messages from homeserver:

dendrite-monolith-1  | time="2023-01-29T16:15:14.706481062Z" level=info msg="Invalid request signature" error="Bad signature from \"matrix.org\" with ID \"ed25519:a_RXGa\"" req.id=FjOiqoaRJBMH req.method=GET req.path="/_matrix/federation/v1/make_join/!hRJHJXZjnzcKPUl8:humble.cafe/@eglo:matrix.org"
Cynosphere commented 1 year ago

Dendrite: 689b5ee72fe2ff6226c2afc5b209889f772f0819 Monolith or Polylith: Monolith SQLite3 or Postgres: Postgres Docker: No go version: 1.19 Client: Element

I'm having a more isolated version of this issue, only one homeserver (a friend's) is having this issue with any request. They're running Synapse.

Them trying to invite me to a space:

level=debug msg="Got keys from fetcher" fetcher="perspective server matrix.org" num_keys_fetched=1 req.id=m8cggHNm3ggj req.method=GET req.path=/_matrix/federation/v1/query/profile
level=info msg="Invalid request signature" error="gomatrixserverlib: key with ID \"ed25519:a_gijt\" for \"matrix.n2.pm\" not valid at 1678987384315" req.id=m8cggHNm3ggj req.method=GET req.path=/_matrix/federation/v1/query/profile

Occasional federation event failing:

level=debug msg="Requesting keys from fetcher" fetcher="perspective server matrix.org" num_key_requests=1 req.id=kvVNEZaI3G4B req.method=PUT req.path=/_matrix/federation/v1/send/1678986094906
level=debug msg="Got keys from fetcher" fetcher="perspective server matrix.org" num_keys_fetched=1 req.id=kvVNEZaI3G4B req.method=PUT req.path=/_matrix/federation/v1/send/1678986094906
level=info msg="Invalid request signature" error="gomatrixserverlib: key with ID \"ed25519:a_gijt\" for \"matrix.n2.pm\" not valid at 1678988973627" req.id=kvVNEZaI3G4B req.method=PUT req.path=/_matrix/federation/v1/send/1678986094906
Cynosphere commented 1 year ago

Bumping again. I've upgraded to 23cd7877a14bca5315467591cd47a7d51aec22ce the other day. I'm not getting any "Invalid request signature" errors anymore, but I'm still "netsplit" from matrix.n2.pm. My homeserver can send requests fine, but incoming from that homeserver is still returning 401 Unauthorized.

Something I noticed though when re-reading this issue is that both affected homeserver domains are .cafe domains, which is strange that this seems to be an issue. I've been suggested by a friend to try "aliasing" to a different domain but I am very hesitant to break things.