Page MenuHomePhabricator

Error: Call to a member function getSlot() on null
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
labels.normalized_message
[{reqId}] {exception_url}   Error: Call to a member function getSlot() on null
error.stack_trace
from /srv/mediawiki/php-1.43.0-wmf.7/extensions/AutoModerator/src/Services/AutoModeratorFetchRevScoreJob.php(106)
#0 /srv/mediawiki/php-1.43.0-wmf.7/extensions/EventBus/includes/JobExecutor.php(80): AutoModerator\Services\AutoModeratorFetchRevScoreJob->run()
#1 /srv/mediawiki/rpc/RunSingleJob.php(60): MediaWiki\Extension\EventBus\JobExecutor->execute(array)
#2 {main}
Notes

Details

Request URL
https://mw-jobrunner.discovery.wmnet/rpc/RunSingleJob.php

Event Timeline

jsn.sherman changed the task status from Open to In Progress.May 30 2024, 3:30 PM
jsn.sherman claimed this task.
jsn.sherman moved this task from Ready to In Progress on the Moderator-Tools-Team (Kanban) board.

@Samwalton9-WMF can you disable AutoModerator on testwiki at https://test.wikipedia.org/wiki/MediaWiki:AutoModeratorConfig.json ? I still haven't been granted interface admin there.

Noting that we've found the data types for the job parameters differ between local dev (mysql queue) beta cluster, and production. We've been tweaking how we handle parameters to try to deal with that, but don't have a great way to test other than firing a change into production and seeing what happens. My understanding is that since the job runner is separate from the debug host, we really only see what happens after a full sync.

@Samwalton9-WMF can you disable AutoModerator on testwiki at https://test.wikipedia.org/wiki/MediaWiki:AutoModeratorConfig.json ? I still haven't been granted interface admin there.

Done! @Trizek-WMF might be able to help you get that request moved forward.

Change #1037563 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/extensions/AutoModerator@master] Error: Call to a member function getSlot() on null

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

Okay, I've got a breakfix patch that guards against the error and logs the rev id. We can then sort out why the revision that triggered the job doesn't seem to exist.

I notice that pretty much all of these errors are happening in non-main namespaces. We check namespace inside the job, but we could also decide not to fire the job at all in non-main namespaces.

Change #1037563 merged by jenkins-bot:

[mediawiki/extensions/AutoModerator@master] Error: Call to a member function getSlot() on null

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

@Trizek-WMF might be able to help you get that request moved forward.

Done. :)