Page MenuHomePhabricator

processEchoEmailBatch.php failing for labtestwiki
Closed, ResolvedPublic

Description

We are getting the following stacktrace via cron:

Wikimedia\Rdbms\DBQueryError from line 1626 of /srv/mediawiki/php-1.35.0-wmf.2/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT  eeb_user_id  FROM `echo_email_batch`    WHERE (eeb_user_id > 0)  ORDER BY eeb_user_id LIMIT 300 
Function: MWEchoEmailBatch::getUsersToNotify
Error: 1146 Table 'labtestwiki.echo_email_batch' doesn't exist (10.64.32.72)

#0 /srv/mediawiki/php-1.35.0-wmf.2/includes/libs/rdbms/database/Database.php(1610): Wikimedia\Rdbms\Database->getQueryException('Table 'labtestw...', 1146, 'SELECT  eeb_use...', 'MWEchoEmailBatc...')
#1 /srv/mediawiki/php-1.35.0-wmf.2/includes/libs/rdbms/database/Database.php(1587): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Table 'labtestw...', 1146, 'SELECT  eeb_use...', 'MWEchoEmailBatc...')
#2 /srv/mediawiki/php-1.35.0-wmf.2/includes/libs/rdbms/database/Database.php(1166): Wikimedia\Rdbms\Database->reportQueryError('Table 'labtestw...', 1146, 'SELECT  eeb_use...', 'MWEchoEmailBatc...', false)
#3 /srv/mediawiki/php-1.35.0-wmf.2/includes/libs/rdbms/database/Database.php(1828): Wikimedia\Rdbms\Database->query('SELECT  eeb_use...', 'MWEchoEmailBatc...')
#4 /srv/mediawiki/php-1.35.0-wmf.2/extensions/Echo/includes/EmailBatch.php(365): Wikimedia\Rdbms\Database->select(Array, Array, Array, 'MWEchoEmailBatc...', Array)
#5 /srv/mediawiki/php-1.35.0-wmf.2/extensions/Echo/maintenance/processEchoEmailBatch.php(44): MWEchoEmailBatch::getUsersToNotify(0, 300)
#6 /srv/mediawiki/php-1.35.0-wmf.2/maintenance/doMaintenance.php(99): ProcessEchoEmailBatch->execute()
#7 /srv/mediawiki/php-1.35.0-wmf.2/extensions/Echo/maintenance/processEchoEmailBatch.php(73): require_once('/srv/mediawiki/...')
#8 /srv/mediawiki/multiversion/MWScript.php(101): require_once('/srv/mediawiki/...')
#9 {main}

10.64.32.72 is db1133 the m5 host that used to hold labtestwiki - and I renamed those tables at: T236010 to see if something is still using that database, and looks like there is stuff still thinking that that database is or should be present in m5.
@Andrew I guess there are some leftovers somewhere that still think that labtestwiki lives in m5