Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow / no response when adding 16 users to a room #1822

Closed
nickbearman opened this issue Jul 7, 2023 · 15 comments
Closed

Very slow / no response when adding 16 users to a room #1822

nickbearman opened this issue Jul 7, 2023 · 15 comments
Labels

Comments

@nickbearman
Copy link

Steps to reproduce

When inviting 16 users to join a new room, Element just hangs and I have no idea whether it is adding the users or not:

Screenshot 2023-07-07 112033

I will attach debug logs.

For clarity, this is an Element One room https://one.element.io/#/room/!xUzrFTPyOAvJFvabGE:one.ems.host created by @nickbearman:one.ems

And I am adding people from the user @nickbearman:matrix.org so people will be invited to create a Matrix account on matrix.org rather than one.ems.host which will fail.

Outcome

What did you expect?

I expected the users to be added, or some progress bar if this was going to take a while.

What happened instead?

It just sat there as per the screenshot, now for 4 min.

There are some related topics related to converting spaces to rooms which may be relevant:
element-hq/element-web#19216
matrix-org/matrix-react-sdk#6887
element-hq/element-web#19362

And from this it looks like I should see a progress bar, but I don't.

Operating system

Windows

Browser information

Google Chrome Version 114.0.5735.199 (Official Build) (64-bit)

URL for webapp

https://app.element.io/#/room/!xUzrFTPyOAvJFvabGE:one.ems.host

Application version

Element version: 1.11.35 Olm version: 3.2.14

Homeserver

matrix.org / one.ems

Will you send logs?

Yes

@nickbearman
Copy link
Author

I have cancelled the add and added the logs

@nickbearman
Copy link
Author

From here it looks like 6 people were added:

image

@t3chguy
Copy link
Member

t3chguy commented Jul 7, 2023

MatrixError: [429] Too Many Requests seems like your server is aggressively rate-limiting you.

@nickbearman
Copy link
Author

Thanks @t3chguy
So I will try to invite more people later on. Any suggestions how long I should wait? 5min? an hour?

@t3chguy
Copy link
Member

t3chguy commented Jul 7, 2023

I do not know the settings on matrix.org or one.ems, I suggest contacting their respective supports

@nickbearman
Copy link
Author

Thanks - have already contacted one.ems support, hopefully they can help.
Thanks for your help.

@nickbearman
Copy link
Author

After a while this error was shown:
Screenshot 2023-07-07 113948

@t3chguy
Copy link
Member

t3chguy commented Jul 7, 2023

Yeah so it'll retry 5s after the M_LIMIT_EXCEEDED error but seemingly gives up when encountering such an aggressive throttling

@nickbearman
Copy link
Author

Now (15 min later) trying to add the people who were missed one by one. I get this error:

Screenshot 2023-07-07 114249

So guessing I am still rate limited currently.

@nickbearman
Copy link
Author

Thanks - I will wait for a bit longer then!

@nickbearman
Copy link
Author

Still getting the error after ~1hr. Will try later

@nickbearman
Copy link
Author

After 30 min extra, managed to invite 5 more people, then it timed out on me again.
Will wait another ~90min or so.

@t3chguy t3chguy transferred this issue from element-hq/element-web Jul 7, 2023
@nickbearman
Copy link
Author

Just invited the last 5 people (1 first, then 4 in a group) and it all worked fine. I'll be really interested to hear what the limits are and the expected behaviour.

@nickbearman
Copy link
Author

Really useful reply from EMS Support:

Hi Nick,

I have checked the issue posted, it looks like you are inviting users via email not MXID, so this actually falls under a different rate limit. You can read up on all the different rate limits by checking the configuration manual: https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#ratelimiting

I believe in your use case, you are hitting rc_third_party_invite. (https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#rc_third_party_invite)

This option ratelimits 3PID invites (i.e. invites sent to a third-party ID such as an email address or a phone number) based on the account that's sending the invite.

The defaults for Element One on this are a queue maximum of 5, removing 0.0025 from the queue every second. So this translates to, 1 invite via email every 400 seconds after the initial burst of 5 invites.

Best wishes
Element Matrix Services (EMS) Support
https://ems.element.io/
EMS documentation and guides: https://ems-docs.element.io/

@t3chguy
Copy link
Member

t3chguy commented Jul 31, 2023

Thanks @nickbearman for surfacing that response here, unfortunately isn't an Element client issue but one of Element One the service provider, we don't track those issues here. Hopefully their response helps you somewhat.

@t3chguy t3chguy closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants