Cannot assign user name "maurelio" to account 5000; name already in use.
Looking at the db it shows this
gerrit> select * from accounts where full_name = 'MarcoAurelio';
registered_on | full_name | preferred_email | inactive | account_id
----------------------+--------------+--------------------+----------+-----------
2016-07-25 01:42:27.0 | MarcoAurelio | stri...@gmail.com | N | 787
(1 row; 8 ms)
gerrit> select * from account_external_ids where account_id = 787;
account_id | email_address | password | external_id
-----------+---------------+----------+------------------
787 | NULL | NULL | username:maurelio
(1 row; 1 ms)
Which is missing one entry.
This happened after we reindexed gerrit because someone else in a different thread said doing offline reindezing of the accounts fixed there external id problem. But they were using 2.14 and we use 2.13.
Currently no one else has reported this problem downstream.
See our downstream task https://phabricator.wikimedia.org/T152640 (Which has old details from the problem in December but chad merged https://phabricator.wikimedia.org/T168707 into there)
Hi, one of our users cannot sign in due to this error
Cannot assign user name "maurelio" to account 5000; name already in use.
Looking at the db it shows this
gerrit> select * from accounts where full_name = 'MarcoAurelio';
registered_on | full_name | preferred_email | inactive | account_id
----------------------+--------------+--------------------+----------+-----------
2016-07-25 01:42:27.0 | MarcoAurelio | stri...@gmail.com | N | 787
(1 row; 8 ms)
gerrit> select * from account_external_ids where account_id = 787;
account_id | email_address | password | external_id
-----------+---------------+----------+------------------
787 | NULL | NULL | username:maurelio
(1 row; 1 ms)
Which is missing one entry.
This happened after we reindexed gerrit because someone else in a different thread said doing offline reindezing of the accounts fixed there external id problem. But they were using 2.14 and we use 2.13.
Currently no one else has reported this problem downstream.
See our downstream task https://phabricator.wikimedia.org/T152640 (Which has old details from the problem in December but chad merged https://phabricator.wikimedia.org/T168707 into there)
--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Also the problem started just after we did a reindex. The account was working before we reindexed.
Yep will see if chad did the missing entry.
Also the problem started just after we did a reindex. The account was working before we reindexed.
On Wed, Jun 28, 2017 at 11:06 AM, thomasmulhall410 via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:Yep will see if chad did the missing entry.
Also the problem started just after we did a reindex. The account was working before we reindexed.I very much doubt this.Reindex doesn't touch the database and hence it didn't remove this ID.This means this ID was already missing before reindex and without the gerrit ID a login to the web UI is not possible.Only SSH access is possible with this account, but this should still work.
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
Yep, though it's strange that reindexing removes it from the db.
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
I am not sure where in the code it is doing this, but shoulden't this https://github.com/GerritCodeReview/gerrit/commit/352be569f969c9cd16032c911365882779c22ce4 and https://github.com/GerritCodeReview/gerrit/commit/8f83bbbb27730112d2edeb9aa03c70d12ebdc62e prevent this?
I guess we are hitting cases from where a user has been inactive so they didnt notice the problem until recently. Sorry to have pointed to something that was most likly not the cause.
On Wednesday, June 28, 2017 at 9:55:00 AM UTC+1, thomasmu...@yahoo.com wrote:Hi, one of our users cannot sign in due to this errorCannot assign user name "maurelio" to account 5000; name already in use.
Looking at the db it shows this
gerrit> select * from accounts where full_name = 'MarcoAurelio';
registered_on | full_name | preferred_email | inactive | account_id
----------------------+--------------+--------------------+----------+-----------
2016-07-25 01:42:27.0 | MarcoAurelio | stri...@gmail.com | N | 787
(1 row; 8 ms)gerrit> select * from account_external_ids where account_id = 787;
account_id | email_address | password | external_id
-----------+---------------+----------+------------------
787 | NULL | NULL | username:maurelio
(1 row; 1 ms)Which is missing one entry.
This happened after we reindexed gerrit because someone else in a different thread said doing offline reindezing of the accounts fixed there external id problem. But they were using 2.14 and we use 2.13.
Currently no one else has reported this problem downstream.
See our downstream task https://phabricator.wikimedia.org/T152640 (Which has old details from the problem in December but chad merged https://phabricator.wikimedia.org/T168707 into there)
--
Cannot assign user name "reception123" to account 5120; name already in use. Cannot assign user name "reception123" to account 5122; name already in use.
Hi, the problem has come back. This time we found both entry's to be there ie there was no missing entry for gerrit:
. We do not know why the user is getting this errorCannot assign user name "reception123" to account 5120; name already in use. Cannot assign user name "reception123" to account 5122; name already in use.
(though this is not like the other users where they had a missing entry, this user has an entry + the user was for a period inactive with the account for a few months though. (by inactive i meant did not use the account)On Wednesday, June 28, 2017 at 9:55:00 AM UTC+1, thomasmu...@yahoo.com wrote:Hi, one of our users cannot sign in due to this errorCannot assign user name "maurelio" to account 5000; name already in use.
Looking at the db it shows this
gerrit> select * from accounts where full_name = 'MarcoAurelio';
registered_on | full_name | preferred_email | inactive | account_id
----------------------+--------------+--------------------+----------+-----------
2016-07-25 01:42:27.0 | MarcoAurelio | stri...@gmail.com | N | 787
(1 row; 8 ms)gerrit> select * from account_external_ids where account_id = 787;
account_id | email_address | password | external_id
-----------+---------------+----------+------------------
787 | NULL | NULL | username:maurelio
(1 row; 1 ms)Which is missing one entry.
This happened after we reindexed gerrit because someone else in a different thread said doing offline reindezing of the accounts fixed there external id problem. But they were using 2.14 and we use 2.13.
Currently no one else has reported this problem downstream.
See our downstream task https://phabricator.wikimedia.org/T152640 (Which has old details from the problem in December but chad merged https://phabricator.wikimedia.org/T168707 into there)
--
[20:17:15] <+RainbowSprinkles> 3635 | <email redacted> | NULL | mailto:<email redacted>
[20:17:15] <+RainbowSprinkles> 3635 | NULL | NULL | username:reception123
--
Happen to the same user again due to the user missing the gerrit: prefix again. After adding it do we have to do a reindex?
--