Page MenuHomePhabricator

CannotCreateActorException: Cannot create an actor for a usable name that is not an existing user: user_name="Qwqqwqq"
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   CannotCreateActorException: Cannot create an actor for a usable name that is not an existing user: user_name="Qwqqwqq"
exception.trace
from /srv/mediawiki/php-1.39.0-wmf.14/includes/user/ActorStore.php(631)
#0 /srv/mediawiki/php-1.39.0-wmf.14/includes/user/ActorStore.php(401): MediaWiki\User\ActorStore->validateActorForInsertion(MediaWiki\User\UserIdentityValue)
#1 /srv/mediawiki/php-1.39.0-wmf.14/extensions/CheckUser/src/Hooks.php(187): MediaWiki\User\ActorStore->acquireActorId(MediaWiki\User\UserIdentityValue, Wikimedia\Rdbms\DBConnRef)
#2 /srv/mediawiki/php-1.39.0-wmf.14/extensions/AbuseFilter/includes/AbuseLogger.php(234): MediaWiki\CheckUser\Hooks::updateCheckUserData(RecentChange)
#3 /srv/mediawiki/php-1.39.0-wmf.14/extensions/AbuseFilter/includes/AbuseLogger.php(151): MediaWiki\Extension\AbuseFilter\AbuseLogger->insertLocalLogEntries(array, Wikimedia\Rdbms\DBConnRef)
#4 /srv/mediawiki/php-1.39.0-wmf.14/extensions/AbuseFilter/includes/FilterRunner.php(266): MediaWiki\Extension\AbuseFilter\AbuseLogger->addLogEntries(array)
#5 /srv/mediawiki/php-1.39.0-wmf.14/extensions/AbuseFilter/includes/AbuseFilterPreAuthenticationProvider.php(89): MediaWiki\Extension\AbuseFilter\FilterRunner->run()
#6 /srv/mediawiki/php-1.39.0-wmf.14/extensions/AbuseFilter/includes/AbuseFilterPreAuthenticationProvider.php(66): MediaWiki\Extension\AbuseFilter\AbuseFilterPreAuthenticationProvider->testUser(User, User, boolean)
#7 /srv/mediawiki/php-1.39.0-wmf.14/includes/auth/AuthManager.php(1774): MediaWiki\Extension\AbuseFilter\AbuseFilterPreAuthenticationProvider->testUserForCreation(User, string, array)
#8 /srv/mediawiki/php-1.39.0-wmf.14/includes/Setup.php(543): MediaWiki\Auth\AuthManager->autoCreateUser(User, string, boolean)
#9 /srv/mediawiki/php-1.39.0-wmf.14/includes/WebStart.php(86): require_once(string)
#10 /srv/mediawiki/php-1.39.0-wmf.14/index.php(44): require(string)
#11 /srv/mediawiki/w/index.php(3): require(string)
#12 {main}
Impact

Also happening in .13

Notes

Details

Request URL
https://it.wikipedia.org/

Event Timeline

Urbanecm claimed this task.
Urbanecm subscribed.

Should be fixed by https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/ /802115 (revert of a problematic patch in T233004).

I see this error after deploying to all wikis today, although the error rate is low so far.

Change 802637 had a related patch set uploaded (by Zabe; author: Zabe):

[operations/mediawiki-config@master] Stop writing to cuc_actor on all wikis

https://gerrit.wikimedia.org/r/802637

There is a deeper problem with AbuseFilter sending data related to non-existent users to CheckUser (see T188180#7975147). CheckUser actor migration is basically stalled on fixing this. Let's stop writing to cuc_actor completly for now until we have a solution for that.

Change 802637 merged by jenkins-bot:

[operations/mediawiki-config@master] Stop writing to cuc_actor on all wikis

https://gerrit.wikimedia.org/r/802637

Mentioned in SAL (#wikimedia-operations) [2022-06-02T21:25:57Z] <jforrester@deploy1002> Synchronized wmf-config/InitialiseSettings.php: Emergency deploy: [[gerrit:802637|Stop writing to cuc_actor on all wikis (T233004 T309737)]] (duration: 03m 15s)

Since we stopped writing to the column, this shouldn't happen anymore. Reopen if it does, please!