Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

no create event in auth events #7642

Closed
richvdh opened this issue Jun 5, 2020 · 17 comments
Closed

no create event in auth events #7642

richvdh opened this issue Jun 5, 2020 · 17 comments
Assignees
Labels
z-bug (Deprecated Label) z-p2 (Deprecated Label)

Comments

@richvdh
Copy link
Member

richvdh commented Jun 5, 2020

sometimes requests get rejected with {"errcode":"M_FORBIDDEN","error":"No create event in auth events"}. Not quite sure what causes this.

@richvdh richvdh changed the title no create event in auth events sometimes requests get rejected with {errcode:M_FORBIDDEN,error:No create event in auth events}. Not quite sure what causes this. no create event in auth events Jun 5, 2020
@richvdh
Copy link
Member Author

richvdh commented Jun 5, 2020

@richvdh
Copy link
Member Author

richvdh commented Jun 5, 2020

the fact that this happens sometimes during a sytest run suggests that there is a race condition of some sort (interesting that it happened with a monolith deployment: I'd expect races to be more likely with workers.)

@erikjohnston erikjohnston added z-bug (Deprecated Label) z-p2 (Deprecated Label) labels Jun 5, 2020
@PureTryOut
Copy link

I just had this happen in #synapse:matrix.org and a few others. Some fixed themselves, but for #synapse:matrix.org I had to rejoin it (which was hard to do in itself).

What might've caused it for me is that I was moving Synapse to a different machine (but made it use the same database as on the previous machine).

@richvdh
Copy link
Member Author

richvdh commented Jul 9, 2020

@richvdh richvdh self-assigned this Jul 13, 2020
@richvdh
Copy link
Member Author

richvdh commented Jul 13, 2020

I suspect there's more than one cause for this issue. I've opened #7834 to track one of them, and will either add more issues to track other causes, or add reports to existing issues.

@richvdh
Copy link
Member Author

richvdh commented Jul 13, 2020

for #trains, see #7835

@richvdh
Copy link
Member Author

richvdh commented Jul 13, 2020

for element-hq/element-web#8689, see #7838.

@richvdh
Copy link
Member Author

richvdh commented Jul 14, 2020

#7139 is yet a fourth scenario, though related to some of the others.

@richvdh
Copy link
Member Author

richvdh commented Jul 14, 2020

cause number five over at #7845.

richvdh added a commit that referenced this issue Aug 6, 2020
I think this would have caught all the cases in
#7642 - and I think a 500 makes
more sense here than a 403
@richvdh
Copy link
Member Author

richvdh commented Aug 6, 2020

with the exception of #7838, which is a bit of a larger topic, I've now fixed all of the causes I found here. #8041 also adds a check which will give a more accurate error message.

So, I'm declaring this fixed.

@pkulak
Copy link

pkulak commented Jul 12, 2022

Can anyone tell me how to fix this? I've got a buggered room with three members. No one can leave it, I can't delete it because it has members, and all messages to it fail.

@squahtx
Copy link
Contributor

squahtx commented Jul 13, 2022

Can anyone tell me how to fix this? I've got a buggered room with three members. No one can leave it, I can't delete it because it has members, and all messages to it fail.

For these sorts of support questions, it's best to try #synapse:matrix.org.

I'm guessing you've already tried the admin API to delete a room ?
Does using the force_purge option work?

@pkulak
Copy link

pkulak commented Jul 19, 2022

Can anyone tell me how to fix this? I've got a buggered room with three members. No one can leave it, I can't delete it because it has members, and all messages to it fail.

For these sorts of support questions, it's best to try #synapse:matrix.org.

I'm guessing you've already tried the admin API to delete a room ? Does using the force_purge option work?

Ah yeah, good call. I'll hop in the chat and see if anyone can help me out. Thanks!

I have tried pretty much every variation of that API I can think of; it always errors out, unfortunately.

@ktpx
Copy link

ktpx commented Aug 25, 2023

I ahve this problem with a channel too, no way to leave.. API doesnt help, it gives a server error saying users are still logged in...chicken or egg problem. only me in there.

@ZhenyaPav
Copy link

ZhenyaPav commented Sep 7, 2023

Ironically, I am having this issue with #synapse:matrix.org right now.
@ktpx Have you managed to resolve yours?

@ZhenyaPav
Copy link

One solution I found is to run this SQL query:
DELETE FROM room_memberships WHERE room_id = '!ehXvUhWNASUkSLvAGP:matrix.org'; (replacing the room id with the one you have the issue with)
And then purging the room as usual (i'm using synadm)
Disclaimer: I've no idea if this may break something down the line or not, but I was able to rejoin the room normally.

@clokep
Copy link
Contributor

clokep commented Sep 11, 2023

We think we've fixed all the issues with this, but old rooms might still be broken in your database. The correct thing to do is to purge the room (you should not need to run any delete commands manually first and that is not recommended).

I'm going to lock this issue since it is quiet old. Please open new issues if you're still seeing problems.

@matrix-org matrix-org locked as resolved and limited conversation to collaborators Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
z-bug (Deprecated Label) z-p2 (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

8 participants