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

Sometimes get the "username already in use" message during registration #10001

Closed
lampholder opened this issue Jun 10, 2019 · 8 comments
Closed

Comments

@lampholder
Copy link
Member

Related: #7314

I got a similar experience twice in a row.

  • First time, I:
    • registered with a username and password
    • went through three rounds of CAPTCHA
    • accepted the t's and c's
    • *was bounced back to the registration page with a 'This username is in use' error message at the top of the registration screen
    • checking the db, I had successfully registered the account
  • Second time, I:
    • registered with a username and password
    • went through one or two rounds of CAPTCHA
    • accepted the t's and c's
    • saw a flash of "This username is in use' at the bottom of the registration screen
    • successfully entered the app

I had dev tools networking tab open for the second time through, here are some logs delivered in what is obviously the optimal format: anmiated gif:
Screen Recording 2019-06-10 at 11 51 28 2019-06-10 11_52_46

@lampholder
Copy link
Member Author

Oh and:
image

@lampholder
Copy link
Member Author

This looks related to our polling /register every two seconds throughout the registration process, plus (it looks like to me) hitting /register again with every user-initiated progress through the registraiton process (clicking register, completing the CAPTCHA etc.). Also coupled with the HS responding to /register slowly, you can end up with multiple /register requests in flight. This seems to both trigger our old friend #9480 as well as exposes to registration races that sometimes result in the UI telling you that the mxid you've picked is already registered.

@lampholder

This comment has been minimized.

@lampholder
Copy link
Member Author

That last (now hidden) comment was wrong. If you stop your client from being able to communicate with the IS (but the IS is still up), nothing bad happens at all - you can still invite people and you can still add your own additional threepid associations.

@jryans
Copy link
Collaborator

jryans commented Jun 11, 2019

According to today's standup, this is believed to be fixed now. @lampholder, did you want to retest, or should we close?

@dbkr
Copy link
Member

dbkr commented Jun 13, 2019

This is caused by matrix-org/synapse#5450

@dbkr
Copy link
Member

dbkr commented Jun 13, 2019

But also, matrix-org/matrix-react-sdk#3101 means it would no longer be a problem for us.

@turt2live
Copy link
Member

(closing - we believe we've fixed this on develop, therefore the latest RC, therefore the next release)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants