• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Cannot update user because "username is already in use"

    User help
    3
    10
    2.2k
    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.
    • P
      Pedro
      last edited by

      I created a new user yesterday. Today, when I tried to save new permissions or a new password, after clicking the save (disk) icon, I receive the error message "username is already in use." The changes were not saved.

      1 Reply Last reply Reply Quote 0
      • Jared WiltshireJ
        Jared Wiltshire
        last edited by Jared Wiltshire

        Are you using a password manager browser extension by chance? We have noticed they have a tendency to change the username field when you are editing users.

        Developer at Radix IoT

        1 Reply Last reply Reply Quote 0
        • P
          Pedro
          last edited by phildunlap

          I'm not using a password manager. I'm using Firefox 56 on Linux, and have not installed any new plugins since the last time this was working.

          core 2.8.8 build 635 - paid

          1 Reply Last reply Reply Quote 0
          • P
            Pedro
            last edited by

            Actually, the Firefox instance I'm running contains no user-installed plugins. It contains only a "safe browsing" plugin issued by Firefox by default.

            1 Reply Last reply Reply Quote 0
            • phildunlapP
              phildunlap
              last edited by

              Hi Pedro,

              If the issue continues every time you are using the users page, and the user isn't appearing in the list, I would expect you created two the first time. There is an outstanding issue: https://github.com/infiniteautomation/ma-core-public/issues/1048 but it hasn't come up often so it seemed somewhat minor.

              You can easily fix it on the /sqlConsole.shtm page by

              SELECT * FROM users ORDER BY id DESC LIMIT 10;

              and then delete all but one of any duplicate entry. I am supposing that because you just created that user there aren't account details associated with it since it probably didn't ever work. Nevertheless, you probably want to retain the account with the lower id.

              DELETE FROM users WHERE id IN (123,456,789);

              1 Reply Last reply Reply Quote 0
              • P
                Pedro
                last edited by

                Hi Phillip,

                Thanks for the SQL. The query response did not reveal any duplicated usernames, even after I increased the query limit. I was able to change the permissions on other users, indicating that the problem likely pertains only to this user. Other than being the only user created since upgrading from core 2.8.6 to core 2.8.8, I'm not aware of any other characteristics that would make this user unique.

                1 Reply Last reply Reply Quote 0
                • phildunlapP
                  phildunlap
                  last edited by

                  Is it possible you simply didn't hit the new user plus button / select the user from the list, and instead changed the username?

                  1 Reply Last reply Reply Quote 0
                  • P
                    Pedro
                    last edited by

                    I definitely picked the user from the list. I did not hit the new user plus button because the user already existed.

                    1 Reply Last reply Reply Quote 0
                    • phildunlapP
                      phildunlap
                      last edited by

                      Is its ID in the users table -1 somehow?

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        Pedro @phildunlap
                        last edited by

                        @phildunlap No: user id = 53. The blank fields for that user are homeUrl and timezone. All other fields are filled in.

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