element-hq / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://element-hq.github.io/dendrite/
GNU Affero General Public License v3.0
9 stars 3 forks source link

Cannot read received messages from different server, others can read mine #1814

Closed matrixbot closed 2 weeks ago

matrixbot commented 2 weeks ago

This issue was originally created by @thezeroalpha at https://github.com/matrix-org/dendrite/issues/1814.

Background information

Description

I have account "M" (on the matrix.org homeserver via Element Web) and account "H" (on my own homeserver). When I send a new message from account M to account H, on account H I see the message "Waiting for this message, this may take a while". When I send a new message from account H to account M, on account M I see the message without issues. When I then leave the room on both accounts and create a new room, I can immediately see all new messages sent between the accounts in that room. I cannot rejoin the previous room, I get the error "No known servers" -- this may be related.

Steps to reproduce

I would expect that messages in both directions should be visible on both accounts from the start. I'm not sure what I should look for in the logfiles.

Could someone please help me diagnose this?

PS: the federation tester checks all succeed.

matrixbot commented 2 weeks ago

This comment was originally posted by @kegsay at https://github.com/matrix-org/dendrite/issues/1814#issuecomment-814780896.

I assume this room is end-to-end encrypted?

matrixbot commented 2 weeks ago

This comment was originally posted by @thezeroalpha at https://github.com/matrix-org/dendrite/issues/1814#issuecomment-815541925.

Yes, it is.

matrixbot commented 2 weeks ago

This comment was originally posted by @kegsay at https://github.com/matrix-org/dendrite/issues/1814#issuecomment-815651278.

When you say "not visible" you mean "received but unable to decrypt"?

It seems likely that your server is unable to retrieve device lists correctly, which are required for encryption. Out of interest, do either accounts have non alphanumeric characters in the user ID portion or device ID portion e.g _-=? Please list all the special characters if there are some.

I've heard past issues about federated device list queries having incorrect URL escaping, possibly caused by an intermediate reverse proxy, so special characters may indicate this. Further to this, can you please check your logs for any issues around device list queries for the remote server (matrix.org in this case).

matrixbot commented 2 weeks ago

This comment was originally posted by @kegsay at https://github.com/matrix-org/dendrite/issues/1814#issuecomment-877113548.

Possibly related: https://github.com/matrix-org/dendrite/issues/1601

matrixbot commented 2 weeks ago

This comment was originally posted by @S7evinK at https://github.com/matrix-org/dendrite/issues/1814#issuecomment-1311688296.

Going to close this, as we're on version 0.10.7 now and E2EE is working much better now.

matrixbot commented 2 weeks ago

This comment was originally posted by @thezeroalpha at https://github.com/matrix-org/dendrite/issues/1814#issuecomment-1312541758.

Yep thanks, I should've probably closed it myself earlier - the project has developed quite a bit since my issue & I'm not using it at the moment.

matrixbot commented 2 weeks ago

This comment was originally posted by @mispp at https://github.com/matrix-org/dendrite/issues/1814#issuecomment-1515316949.

I kinda have an opposite problem: homeserver->matrix.org doesnt work, but matrix.org->homeserver works fine. should i open a new issue regarding this?

if needed: git -> 72285b2659a31ebd52c91799c17105d81d996f40 monolith go1.18.10 linux/amd64 postgres not using docker