Page MenuHomePhabricator

mediawikiwiki.actor does not exist
Closed, ResolvedPublic

Description

Seeing this in the error log for 1.31.0-wmf.23:

A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 
Query: UPDATE  `actor` SET actor_name = '[some name]' WHERE actor_user = '[some_id]'
Function: User::saveSettings
Error: 1146 Table 'mediawikiwiki.actor' doesn't exist

Stacktrace:

#0 /srv/mediawiki/php-1.31.0-wmf.23/includes/libs/rdbms/database/Database.php(996): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 /srv/mediawiki/php-1.31.0-wmf.23/includes/libs/rdbms/database/Database.php(1666): Wikimedia\Rdbms\Database->query(string, string)
#2 /srv/mediawiki/php-1.31.0-wmf.23/includes/user/User.php(4272): Wikimedia\Rdbms\Database->update(string, array, array, string)
#3 [internal function]: Closure$User::saveSettings(Wikimedia\Rdbms\DatabaseMysqli, string)
#4 /srv/mediawiki/php-1.31.0-wmf.23/includes/libs/rdbms/database/Database.php(2961): call_user_func_array(Closure$User::saveSettings;3402, array)
#5 /srv/mediawiki/php-1.31.0-wmf.23/includes/user/User.php(4273): Wikimedia\Rdbms\Database->doAtomicSection(string, Closure$User::saveSettings;3402)
#6 /srv/mediawiki/php-1.31.0-wmf.23/extensions/Wikibase/client/includes/Hooks/EchoNotificationsHandlers.php(124): User->saveSettings()
#7 /srv/mediawiki/php-1.31.0-wmf.23/extensions/Wikibase/client/includes/Hooks/EchoNotificationsHandlers.php(114): Wikibase\Client\Hooks\EchoNotificationsHandlers->doLocalUserCreated(User, boolean)
#8 /srv/mediawiki/php-1.31.0-wmf.23/includes/Hooks.php(177): Wikibase\Client\Hooks\EchoNotificationsHandlers::onLocalUserCreated(User, boolean)
#9 /srv/mediawiki/php-1.31.0-wmf.23/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#10 /srv/mediawiki/php-1.31.0-wmf.23/includes/auth/AuthManager.php(1729): Hooks::run(string, array)
#11 /srv/mediawiki/php-1.31.0-wmf.23/extensions/CentralAuth/includes/CentralAuthUtils.php(143): MediaWiki\Auth\AuthManager->autoCreateUser(User, string, boolean)
#12 /srv/mediawiki/php-1.31.0-wmf.23/extensions/CentralAuth/includes/CreateLocalAccountJob.php(58): CentralAuthUtils::autoCreateUser(User)
#13 /srv/mediawiki/php-1.31.0-wmf.23/includes/jobqueue/JobRunner.php(294): CentralAuthCreateLocalAccountJob->run()
#14 /srv/mediawiki/php-1.31.0-wmf.23/includes/jobqueue/JobRunner.php(193): JobRunner->executeJob(CentralAuthCreateLocalAccountJob, Wikimedia\Rdbms\LBFactoryMulti, BufferingStatsdDataFactory, integer)
#15 /srv/mediawiki/rpc/RunJobs.php(47): JobRunner->run(array)
#16 {main}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 27 2018, 8:42 PM
thcipriani triaged this task as Unbreak Now! priority.Feb 27 2018, 9:05 PM

setting UBN, added as train blocker.

Restricted Application added subscribers: Liuxinyu970226, TerraCodes. · View Herald TranscriptFeb 27 2018, 9:05 PM

Change 415100 had a related patch set uploaded (by Anomie; owner: Anomie):
[mediawiki/core@master] Add a missing check of $wgActorTableSchemaMigrationStage

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

Change 415101 had a related patch set uploaded (by Reedy; owner: Anomie):
[mediawiki/core@wmf/1.31.0-wmf.23] Add a missing check of $wgActorTableSchemaMigrationStage

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

Change 415100 merged by jenkins-bot:
[mediawiki/core@master] Add a missing check of $wgActorTableSchemaMigrationStage

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

Change 415101 merged by jenkins-bot:
[mediawiki/core@wmf/1.31.0-wmf.23] Add a missing check of $wgActorTableSchemaMigrationStage

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

Mentioned in SAL (#wikimedia-operations) [2018-02-27T21:23:52Z] <thcipriani@tin> Synchronized php-1.31.0-wmf.23/includes/user/User.php: [[gerrit:415101|Add a missing check of $wgActorTableSchemaMigrationStage]] T188437 (duration: 01m 14s)

thcipriani closed this task as Resolved.Feb 27 2018, 9:26 PM
thcipriani assigned this task to Anomie.