Page MenuHomePhabricator

wiktionary: /rpc/RunSingleJob.php CannotCreateActorException from line 2540 of /srv/mediawiki/php-1.33.0-wmf.6/includes/user/User.php: Cannot create an actor for a usable name that is not an existing user
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

Request ID: 87f2e92bdfd406bc8cb0b051

message
Cannot create an actor for a usable name that is not an existing user
trace
#0 /srv/mediawiki/php-1.33.0-wmf.6/includes/ActorMigration.php(224): User->getActorId(Wikimedia\Rdbms\DatabaseMysqli)
#1 /srv/mediawiki/php-1.33.0-wmf.6/includes/changes/RecentChange.php(429): ActorMigration->getInsertValues(Wikimedia\Rdbms\DatabaseMysqli, string, User)
#2 /srv/mediawiki/php-1.33.0-wmf.6/extensions/Wikibase/client/includes/Changes/InjectRCRecordsJob.php(261): RecentChange->save()
#3 /srv/mediawiki/php-1.33.0-wmf.6/extensions/EventBus/includes/JobExecutor.php(65): Wikibase\Client\Changes\InjectRCRecordsJob->run()
#4 /srv/mediawiki/rpc/RunSingleJob.php(77): JobExecutor->execute(array)
#5 {main}

Impact

No idea

Notes

Apparently only happened on wiktionary projects.

Event Timeline

hashar triaged this task as Unbreak Now! priority.Nov 29 2018, 2:54 PM

Seems to be related to the Actor feature T188327

Chances are this doesn't need to block wmf.6. More likely it's due to rOMWCe23c7c4c4158: Set ActorTableSchemaMigrationStage => write-both/read-old on group 1.

i.e. rolling back to wmf.4 probably wouldn't fix it, while reverting e23c7c4c4 would. But let me try to track down the problem first.

It looks like all of these are due to Wikibase\Client\Changes\InjectRCRecordsJob. I suspect T183019: Wikibase must not insert local recentchanges entries for nonexistent local users (days: 5) somehow got accidentally regressed.

Mentioned in SAL (#wikimedia-operations) [2018-11-29T15:18:16Z] <$WHO> Running Wikibase populateSitesTable.php on eswiktionary for T210732

Mentioned in SAL (#wikimedia-operations) [2018-11-29T15:32:42Z] <anomie@mwmaint1002> Running Wikibase/populateSitesTable.php and cleanupUsersWithNoId.php on several other wiktionaries for T210732

These started at 2018-11-26T18:35:09, consistent with the deployment of e23c7c4c4 at 2018-11-26T15:24 (and not consistent with the deployment of wmf.6).

It was affecting the following sites: arwiktionary brwiktionary cswiktionary elwiktionary eowiktionary eswiktionary euwiktionary huwiktionary itwiktionary jawiktionary kowiktionary ltwiktionary nlwiktionary ptwiktionary rowiktionary ruwiktionary svwiktionary thwiktionary trwiktionary zhwiktionary. It looks like there are others that might be affected too, I'm running a check across all wikis for recentchanges rows that are a sign of this issue.

If this starts happening on more wikis, try running the following maintenance scripts:

mwscript extensions/Wikibase/lib/maintenance/populateSitesTable.php --wiki=$WIKI --force-protocol https
mwscript maintenance/cleanupUsersWithNoId.php --wiki=$WIKI --table recentchanges --force --prefix wikidata

Mentioned in SAL (#wikimedia-operations) [2018-11-29T16:10:57Z] <anomie@mwmaint1002> Running Wikibase/populateSitesTable.php and cleanupUsersWithNoId.php on more wiktionaries, incubatorwiki, and sourceswiki for T210732

The wikis in this second batch: afwiktionary amwiktionary angwiktionary anwiktionary astwiktionary aywiktionary azwiktionary bewiktionary bgwiktionary bnwiktionary bswiktionary cawiktionary chrwiktionary cowiktionary csbwiktionary cywiktionary dawiktionary dewiktionary dvwiktionary etwiktionary fawiktionary fiwiktionary fjwiktionary fowiktionary frwiktionary fywiktionary gawiktionary gdwiktionary glwiktionary gnwiktionary guwiktionary gvwiktionary hawiktionary hewiktionary hifwiktionary hiwiktionary hrwiktionary hsbwiktionary hywiktionary iawiktionary idwiktionary iewiktionary incubatorwiki iowiktionary iswiktionary iuwiktionary jbowiktionary jvwiktionary kawiktionary kkwiktionary klwiktionary kmwiktionary knwiktionary kswiktionary kuwiktionary kwwiktionary kywiktionary lawiktionary lbwiktionary liwiktionary lnwiktionary lowiktionary lvwiktionary mgwiktionary miwiktionary mkwiktionary mlwiktionary mnwiktionary mrwiktionary mswiktionary mtwiktionary mywiktionary nahwiktionary nawiktionary ndswiktionary newiktionary nnwiktionary nowiktionary ocwiktionary omwiktionary orwiktionary pawiktionary plwiktionary pnbwiktionary pswiktionary quwiktionary roa_rupwiktionary rwwiktionary sawiktionary scnwiktionary sdwiktionary sgwiktionary shwiktionary simplewiktionary siwiktionary skwiktionary slwiktionary smwiktionary sourceswiki sowiktionary sqwiktionary srwiktionary sswiktionary stwiktionary suwiktionary swwiktionary tawiktionary tewiktionary tgwiktionary tiwiktionary tkwiktionary tlwiktionary tnwiktionary tpiwiktionary tswiktionary ttwiktionary ugwiktionary ukwiktionary urwiktionary uzwiktionary vecwiktionary viwiktionary vowiktionary wawiktionary wowiktionary yiwiktionary zh_min_nanwiktionary zuwiktionary

This should be resolved now. If more wikis start having the error, try running the maintenance described in T210732#4785479.

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:07 PM