Cannot login after editing email addresses

42 views
Skip to first unread message

Charles Masson

unread,
Sep 26, 2019, 8:08:36 AM9/26/19
to Repo and Gerrit Discussion
Hello,
Thanks for reading this.
I'm have Gerrit v3.0.0 running on my server, everything was working fine yesterday.

Here's my authentication method :

[auth]
        type
= http
        emailFormat
= {0}@domain.com

I'm not sure that this is the cause of my problem but I might have deleted my email address x...@domain.com yesterday.
Today when trying to log in to the UI again, I get a 403 error and error_log said :

Cannot assign external ID "username:xxx" to account 1000003; external ID already in use.

So I went ahead and deleted external IDs for this account which was probably a mistake since I still got the 403 error and the following messages in logs/error_log :

[HTTP-71] WARN  com.google.gerrit.server.account.AccountManager : Email xxx@domain.com is already assigned to account 1000001; cannot create external ID gerrit:xxx with the same email for account 1000057.
[HTTP-71] ERROR com.google.gerrit.httpd.auth.container.HttpLoginServlet : Unable to authenticate user "xxx"
com
.google.gerrit.server.account.AccountException: Email 'x...@domain.com' in use by another account

So it seems as if gerrit tries to create a new account instead of logging into mine.
Note that there is another user on the instance and he can still use gerrit UI.
I've searched some pevious topics but no solutions seem to work.

Thanks in advance for the help.

Doug Luedtke

unread,
Sep 26, 2019, 12:41:01 PM9/26/19
to Repo and Gerrit Discussion
Just an FYI, this is currently being discussed in another thread. There is an explanation of the problem and instructions how to fix the user in Gerrit.

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages