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
11 stars 3 forks source link

Left from room after changing profile #1662

Open matrixbot opened 2 weeks ago

matrixbot commented 2 weeks ago

This issue was originally created by @Half-Shot at https://github.com/matrix-org/dendrite/issues/1662.

Dendrite believes that I (@half-shot:den.half-shot.uk) am not in !EgoVrPyOnPSVXERlxj:gruenhage.xyz despite being joined from the point of view of the rest of the world. This time it seemed to break when I changed my profile (and so did a join-> join membership change).

force-leave.log.gz

matrixbot commented 2 weeks ago

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

time="2020-12-18T15:16:18.087739926Z" level=error msg="helpers.CheckAuthEvents failed for event, rejecting event" func="processRoomEvent\n\t" file=" [github.com/matrix-org/dendrite/roomserver/internal/input/input_events.go:76]" auth_event_ids="[$pMrgHzPcFE3JkFCeNdWlT530oPVSNOry_n_6Yyw_Aww $gctSxKL5BC7cY9ZeLjCIg0GtSQxznduM3YwYxSHg7Yw $2WOZKyOsEHn-MOFaOP8eRfaGQc3CgALdMV8s2yxNgyE]" error="eventauth: \"@half-shot:den.half-shot.uk\" is not allowed to change their membership from \"leave\" to \"join\"" event_id="$SmAE-QDJHF_cBn4hw5K4m207DqeoyS9oecFMZz7OYf8"
time="2020-12-18T15:16:18.096811583Z" level=info msg="Error authing soft-failed event" func="processRoomEvent\n\t" file=" [github.com/matrix-org/dendrite/roomserver/internal/input/input_events.go:90]" error="eventauth: \"@half-shot:den.half-shot.uk\" is not allowed to change their membership from \"leave\" to \"join\"" event_id="$SmAE-QDJHF_cBn4hw5K4m207DqeoyS9oecFMZz7OYf8" room="!EgoVrPyOnPSVXERlxj:gruenhage.xyz" type=m.room.member

It thought you had left prior to the display name change. Looks like it was hammering /get_missing_events which is probably how the state became so confused.

matrixbot commented 2 weeks ago

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

This sounds like it was a state reset.