Fatal exception of type "InvalidArgumentException" when querying for Special:Contributions
Closed, ResolvedPublic

Description

I went to review a suppressed abusive username to see if it fully was. The result was a Fatal exception of type "InvalidArgumentException", details of which are reported bellow.

Error

Request ID: [XATzEwpAAEUAAIdLpp0AAABJ]

message
[XATzEwpAAEUAAIdLpp0AAABJ] 2018-12-03 09:10:43: Fatal exception of type "InvalidArgumentException"
trace

Impact

  • Production.

Notes

  • The username is suppressed (oversighted). Please exercise care to not post the name publicly here. Thanks.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMon, Dec 3, 9:17 AM

I am getting errors with accounts with a similar status. For example today I've spotted as well [XAepuApAMFwAAAUHfBoAAABH] 2018-12-05 10:34:32: Fatal exception of type "InvalidArgumentException" on meta Special:Contributions (different --also suppressed-- account).

Aklapper triaged this task as Unbreak Now! priority.
exception.file	       	/srv/mediawiki/php-1.33.0-wmf.6/includes/Block.php:1605
exception.message	       	Blocker must be a local user or a name that cannot be a local user
exception.trace	       	
#0 /srv/mediawiki/php-1.33.0-wmf.6/includes/Block.php(479): Block->setBlocker(User)
#1 /srv/mediawiki/php-1.33.0-wmf.6/includes/Block.php(510): Block->initFromRow(stdClass)
#2 /srv/mediawiki/php-1.33.0-wmf.6/includes/Block.php(379): Block::newFromRow(stdClass)
#3 /srv/mediawiki/php-1.33.0-wmf.6/includes/Block.php(1286): Block->newLoad(NULL)
#4 /srv/mediawiki/php-1.33.0-wmf.6/includes/user/User.php(1865): Block::newFromTarget(User, NULL, boolean)
#5 /srv/mediawiki/php-1.33.0-wmf.6/includes/user/User.php(2292): User->getBlockedStatus(boolean)
#6 /srv/mediawiki/php-1.33.0-wmf.6/includes/user/User.php(2282): User->getBlock(boolean)
#7 /srv/mediawiki/php-1.33.0-wmf.6/includes/specials/SpecialContributions.php(376): User->isBlocked()
#8 /srv/mediawiki/php-1.33.0-wmf.6/includes/specials/SpecialContributions.php(306): SpecialContributions::getUserLinks(SpecialContributions, User)
#9 /srv/mediawiki/php-1.33.0-wmf.6/includes/specials/SpecialContributions.php(114): SpecialContributions->contributionsSub(User)
#10 /srv/mediawiki/php-1.33.0-wmf.6/includes/specialpage/SpecialPage.php(569): SpecialContributions->execute(NULL)
#11 /srv/mediawiki/php-1.33.0-wmf.6/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(NULL)
#12 /srv/mediawiki/php-1.33.0-wmf.6/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#13 /srv/mediawiki/php-1.33.0-wmf.6/includes/MediaWiki.php(862): MediaWiki->performRequest()
#14 /srv/mediawiki/php-1.33.0-wmf.6/includes/MediaWiki.php(517): MediaWiki->main()
#15 /srv/mediawiki/php-1.33.0-wmf.6/index.php(42): MediaWiki->run()
#16 /srv/mediawiki/w/index.php(3): include(string)
#17 {main}
exception_id	       	XATzEwpAAEUAAIdLpp0AAABJ
Restricted Application added subscribers: Liuxinyu970226, TerraCodes. · View Herald TranscriptWed, Dec 5, 11:11 AM
MarcoAurelio added a comment.EditedWed, Dec 5, 11:13 AM

If you need the series of usernames that lead me to this error, please ask me privately via email or find me on IRC. Thanks.

Edit: could it be the same as T187834?

Edit 2: https://phabricator.wikimedia.org/search/query/05ESjWg6wLSi/#R

Anomie claimed this task.Wed, Dec 5, 2:36 PM
Anomie added a subscriber: Anomie.

Hmm. It seems that T181731 may have somehow missed metawiki. My logging for that task wasn't as good as what I use now, it's possible some of the updaters died early or were killed and I missed it.

Stashbot added a subscriber: Stashbot.

Mentioned in SAL (#wikimedia-operations) [2018-12-05T14:43:02Z] <anomie> Running cleanupUsersWithNoId.php on metawiki for T181731 / T210985

Anomie closed this task as Resolved.Wed, Dec 5, 3:02 PM

The exception here seems to be resolved. I was able to get one of the affected Special:Contributions URLs from the logs and it is no longer raising the exception.

Processing the rest of the wikis that were missed originally in T181731 will be done at that task.

Thank you @Anomie - I could query the abusive usernames from Special:Contributions successfully this time.