Page MenuHomePhabricator

Could not find local user data for {username}@{wikiId} (low-frequency issues)
Closed, ResolvedPublic

Description

Follow-up to T385310: Could not find local user data for {username}@{wikiId} (2025). After fixing the main issue that was causing lots of log spam, we're left with just a few log entries per day, triggered by different components. I want to find a few minutes to review them, and add READ_NORMAL or READ_LOCKING as appropriate to avoid the log entries.

https://logstash.wikimedia.org/goto/2c0b9874b6253837cc2ada2b671f6bd8

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1251365 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/OATHAuth@master] Mandatory2FAChecker: Avoid warnings and primary reads from queryAttached()

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

Change #1251369 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/CentralAuth@master] Avoid warnings and primary reads from query[Un]Attached()

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

Change #1251369 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Avoid warnings and primary reads from query[Un]Attached()

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

Change #1251365 merged by jenkins-bot:

[mediawiki/extensions/OATHAuth@master] Mandatory2FAChecker: Avoid warnings and primary reads from queryAttached()

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

That should resolve the issues corresponding to all of the log entries logged so far.

FYI we have one Logstash entry for 1.47.0-wmf.2 at May 14, 2026 @ 05:39:40.329 on url https://meta.wikimedia.org/wiki/Special:GlobalVanishRequest, should I file a separate task, or should I reopen this task, or is this ignorable per the previous comment here?

MediaWiki\Extension\CentralAuth\LocalUserNotFoundException: Could not find local user data for {username}@{wikiId}

  • service.version: 1.47.0-wmf.2
  • timestamp: 2026-05-14T05:39:40.329Z
  • labels.phpversion: 8.3.30
  • trace.id: 99a492d6-07d0-4455-ab74-67ddbb9dcba8
  • Find trace.id in Logstash
labels.normalized_message
[{reqId}] {exception_url}   MediaWiki\Extension\CentralAuth\LocalUserNotFoundException: Could not find local user data for {username}@{wikiId}
FrameLocationCall
from/srv/mediawiki/php-1.47.0-wmf.2/extensions/CentralAuth/includes/User/CentralAuthUser.php(880)
#0/srv/mediawiki/php-1.47.0-wmf.2/extensions/CentralAuth/includes/User/CentralAuthUser.php(992)MediaWiki\Extension\CentralAuth\User\CentralAuthUser->queryForBlocks(array)
#1/srv/mediawiki/php-1.47.0-wmf.2/includes/libs/ObjectCache/WANObjectCache.php(1830)MediaWiki\Extension\CentralAuth\User\CentralAuthUser->MediaWiki\Extension\CentralAuth\User\{closure}(bool, int, array, null, array)
#2/srv/mediawiki/php-1.47.0-wmf.2/includes/libs/ObjectCache/WANObjectCache.php(1640)Wikimedia\ObjectCache\WANObjectCache->fetchOrRegenerate(string, int, Closure, array, array)
#3/srv/mediawiki/php-1.47.0-wmf.2/extensions/CentralAuth/includes/User/CentralAuthUser.php(987)Wikimedia\ObjectCache\WANObjectCache->getWithSetCallback(string, int, Closure, array)
#4/srv/mediawiki/php-1.47.0-wmf.2/extensions/CentralAuth/includes/Special/SpecialGlobalVanishRequest.php(193)MediaWiki\Extension\CentralAuth\User\CentralAuthUser->getBlocks()
#5/srv/mediawiki/php-1.47.0-wmf.2/includes/SpecialPage/SpecialPage.php(727)MediaWiki\Extension\CentralAuth\Special\SpecialGlobalVanishRequest->execute(null)
#6/srv/mediawiki/php-1.47.0-wmf.2/includes/SpecialPage/SpecialPageFactory.php(1729)MediaWiki\SpecialPage\SpecialPage->run(null)
#7/srv/mediawiki/php-1.47.0-wmf.2/includes/Actions/ActionEntryPoint.php(505)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#8/srv/mediawiki/php-1.47.0-wmf.2/includes/Actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#9/srv/mediawiki/php-1.47.0-wmf.2/includes/MediaWikiEntryPoint.php(180)MediaWiki\Actions\ActionEntryPoint->execute()
#10/srv/mediawiki/php-1.47.0-wmf.2/index.php(44)MediaWiki\MediaWikiEntryPoint->run()
#11/srv/mediawiki/w/index.php(3)require(string)
#12{main}