FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    how to prevent a lockup?

    Scheduled Pinned Locked Moved
    General Discussion
    0
    5
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      richb201
      last edited by

      I have found that I can reliably take down my entire system by having a user try to register themselves on fusionauth twice. This is super scary and Halloween is already over. I am thinking my best bet is to check to see if a user has already registered a specific email address prior to allowing them to register.

      Since I will need to do this "preventive step" each time someone tries to register, what is my best (least cpu cost) php function call to check to make sure a certain email hasn't already been registered?

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        Hi @richb201 !

        Are you saying that FusionAuth crashes or that your application crashes? Can you share some code?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • R
          richb201
          last edited by richb201

          I didn't write a stub and my code is really large. what I noticed is If i try to register a person who is already registered, the FA server locks up. I will play with it some more and get back to you. I did get it stuck in getting a 500 server error late last night, but it cleared up by itself in a few hours. I'll try to find repeatable steps.

          Well within a few minutes more of testing I got this popup from the email link. I didn't add any new users or delete any. It just occurred upon clicking on a plain vanilla passwordless email. i AM IN dOCKER, btw Screenshot from 2020-12-03 21-54-02.png

          The system appears stuck this way. I brought down my containers and brough them back up with no luck. I posted the log in github fusionauth issues.

          1 Reply Last reply Reply Quote 0
          • R
            richb201
            last edited by

            There appears to be a bug in the version i am running. I am in the process of upgrading now.

            1 Reply Last reply Reply Quote 0
            • R
              richb201
              last edited by

              Upgrading to v 1.19.7 seemed to work. thx

              1 Reply Last reply Reply Quote 1
              • First post
                Last post