Page MenuHomePhabricator

Cron <www-data@cloudweb2001-dev> /usr/local/bin/mwscript extensions/TorBlock/maintenance/loadExitNodes.php --wiki=labswiki --force > /dev/null
Open, MediumPublic

Description

We have a lot of cronspam from cloudweb2001-dev:

[50512ccbe9d79d3d9c737f4a] [no req]   UnexpectedValueException from line 163 of /srv/mediawiki/php-1.35.0-wmf.5/includes/libs/rdbms/lbfactory/LBFactoryMulti.php: Section 's10' has no hosts defined.
Backtrace:
#0 /srv/mediawiki/php-1.35.0-wmf.5/includes/libs/rdbms/lbfactory/LBFactoryMulti.php(187): Wikimedia\Rdbms\LBFactoryMulti->newMainLB(boolean, integer)
#1 /srv/mediawiki/php-1.35.0-wmf.5/maintenance/Maintenance.php(711): Wikimedia\Rdbms\LBFactoryMulti->getMainLB()
#2 /srv/mediawiki/php-1.35.0-wmf.5/maintenance/Maintenance.php(685): Maintenance::setLBFactoryTriggers(Wikimedia\Rdbms\LBFactoryMulti, GlobalVarConfig)
#3 /srv/mediawiki/php-1.35.0-wmf.5/maintenance/doMaintenance.php(93): Maintenance->setAgentAndTriggers()
#4 /srv/mediawiki/php-1.35.0-wmf.5/extensions/TorBlock/maintenance/loadExitNodes.php(63): require_once(string)
#5 /srv/mediawiki/multiversion/MWScript.php(101): require_once(string)
#6 {main}

Event Timeline

aborrero created this task.Nov 11 2019, 1:01 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 11 2019, 1:01 PM

Mentioned in SAL (#wikimedia-cloud) [2019-11-11T13:10:01Z] <arturo> cloudweb2001-dev: disable puppet and redirect stderr in the loadExitNodes.php cron script to prevent cronspam while we investigate the cause of the issue (T237971)

This https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/547596 is planned, but nothing has been merged on my side, so not sure where it is coming from.

T229736: Disable now-redundant mediawiki/TorBlock/loadExitNodes.php cron script

My guess is that Puppet was broken here when the cron was removed via Puppet. Manual cleanup should fix it I think.

aborrero triaged this task as Medium priority.Nov 22 2019, 10:14 AM