Steps to Reproduce:
php ./maintenance/runJobs.php'
on MediaWiki 1.31 (FreeBSD package mediawiki131-php73-1.31.6) with PostgreSQL
Actual Results:
Jobs to execute:
pgwiki=# select job_id, job_cmd, job_timestamp, job_attempts from mediawiki.job; job_id | job_cmd | job_timestamp | job_attempts --------+-------------------------+------------------------+-------------- 1 | refreshLinksPrioritized | 2020-01-04 05:11:56+00 | 0 2 | refreshLinksPrioritized | 2020-01-04 05:34:12+00 | 0 3 | refreshLinksPrioritized | 2020-01-04 05:35:26+00 | 0 4 | refreshLinksPrioritized | 2020-01-04 06:05:10+00 | 0 5 | refreshLinksPrioritized | 2020-01-04 06:52:20+00 | 0 6 | refreshLinksPrioritized | 2020-01-04 07:01:01+00 | 0 7 | refreshLinksPrioritized | 2020-01-04 07:27:10+00 | 0 8 | refreshLinksPrioritized | 2020-01-04 07:27:31+00 | 0 (8 rows)
LocalSettings.php (parts):
$wgSitename = "PostgreSQL wiki"; $wgMetaNamespace = "Project"; ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs ## (like /w/index.php/Page_title to /wiki/Page_title) please see: ## https://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = ""; $wgArticlePath = "/wiki/$1"; ## The protocol and server name to use in fully-qualified URLs $wgServer = "https://prehistoric.garden"; (...) $wgDBtype = "postgres"; $wgDBserver = "localhost"; $wgDBname = "pgwiki"; $wgDBuser = "mediawiki"; (...) $wgDebugLogPrefix = date( '[Y-m-d H:i:s] ' ); $wgDebugLogFile = "/var/log/php/mw-debug-{$wgDBname}.log";
Debug log:
[2020-02-09 23:21:57] IP: 127.0.0.1 [2020-02-09 23:21:57] Start command line script ./maintenance/runJobs.php [caches] cluster: APCUBagOStuff, WAN: mediawiki-main-default, stash: db-replicated, message: APCUBagOStuff, session: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreCDB [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection. [DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: using request info { "IPAddress": "127.0.0.1", "UserAgent": false, "ChronologyProtection": false, "ChronologyPositionIndex": 0 } [DBQuery] Schema "mediawiki" already in the search path [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: connected to database 0 at 'localhost'. [exception] [2b7718629e1bb9406cd6d7f8] [no req] MWException from line 547 of /usr/local/www/mediawiki/includes/SiteConfiguration.php: No such wiki 'pgwiki-mediawiki'. #0 /usr/local/www/mediawiki/includes/jobqueue/JobQueueGroup.php(453): SiteConfiguration->getConfig(string, array) #1 /usr/local/www/mediawiki/includes/libs/objectcache/WANObjectCache.php(1243): JobQueueGroup->{closure}(boolean, integer, array, NULL) #2 /usr/local/www/mediawiki/includes/libs/objectcache/WANObjectCache.php(1117): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array) #3 /usr/local/www/mediawiki/includes/jobqueue/JobQueueGroup.php(455): WANObjectCache->getWithSetCallback(string, integer, Closure, array) #4 /usr/local/www/mediawiki/includes/jobqueue/JobQueueGroup.php(324): JobQueueGroup->getCachedConfigVar(string) #5 /usr/local/www/mediawiki/includes/jobqueue/JobQueueGroup.php(425): JobQueueGroup->getQueueTypes() #6 /usr/local/www/mediawiki/includes/jobqueue/JobQueueGroup.php(369): JobQueueGroup->getCoalescedQueues() #7 /usr/local/www/mediawiki/includes/jobqueue/JobQueueGroup.php(254): JobQueueGroup->getQueuesWithJobs() #8 /usr/local/www/mediawiki/includes/jobqueue/JobRunner.php(165): JobQueueGroup->pop(integer, integer, array) #9 /usr/local/www/mediawiki/maintenance/runJobs.php(89): JobRunner->run(array) #10 /usr/local/www/mediawiki/maintenance/doMaintenance.php(94): RunJobs->execute() #11 /usr/local/www/mediawiki/maintenance/runJobs.php(122): require_once(string) #12 {main} [DBConnection] Wikimedia\Rdbms\{closure}: closing connection to database 'localhost'.
Expected Results:
Jobs should execute correctly