Page MenuHomePhabricator

beta votewiki: Fatal error: Uncaught ExtensionDependencyError: TheWikipediaLibrary requires CentralAuth to be installed.
Closed, ResolvedPublic

Description

taavi@deployment-deploy01:~$ mwscript shell.php --wiki=votewiki
Fatal error: Uncaught ExtensionDependencyError: TheWikipediaLibrary requires CentralAuth to be installed.
TheWikipediaLibrary requires GlobalPreferences to be installed.
 in /srv/mediawiki-staging/php-master/includes/registration/ExtensionRegistry.php:406
Stack trace:
#0 /srv/mediawiki-staging/php-master/includes/registration/ExtensionRegistry.php(230): ExtensionRegistry->readFromQueue(Array)
#1 /srv/mediawiki-staging/php-master/includes/Setup.php(166): ExtensionRegistry->loadFromQueue()
#2 /srv/mediawiki-staging/php-master/maintenance/doMaintenance.php(90): require_once('/srv/mediawiki-...')
#3 /srv/mediawiki-staging/php-master/maintenance/shell.php(106): require_once('/srv/mediawiki-...')
#4 /srv/mediawiki-staging/multiversion/MWScript.php(116): require_once('/srv/mediawiki-...')
#5 {main}
  thrown in /srv/mediawiki-staging/php-master/includes/registration/ExtensionRegistry.php on line 406

started happening after 4fedb3b (T282143) was merged. Also reproducible when viewing https://vote.wikimedia.beta.wmflabs.org/

Event Timeline

Added this to the tracker task, since we should clearly only deploy this to projects with the listed dependencies available.

jsn.sherman added a subscriber: Samwalton9-WMF.

@Samwalton9 Per https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment#Process, it looks like we're supposed to be white/blacklisting projects to deploy this to. Right now we have this set to deploy everywhere by default.

It looks like it's on us (The-Wikipedia-Library) to either choose whitelisted projects to deploy to start with or to identify the projects not using globalpreferences and centralauth and disable the extension in wmf-config. It should be a relatively small number.

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

[operations/mediawiki-config@master] [BETA CLUSTER] Disable `TheWikipediaLibrary` for votewiki

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

I'm not sure of the best way to go find which extensions are available for each project, so blacklisting this one seemed like a good place to start.

oh, duh, the best place to look is probably the file I just edited.

Change 692353 abandoned by Jsn.sherman:

[operations/mediawiki-config@master] [BETA CLUSTER] Disable `TheWikipediaLibrary` for votewiki

Reason:

taking a more general approach instead

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

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

[operations/mediawiki-config@master] [BETA CLUSTER] TheWikipediaLibrary requires CentralAuth and GlobalPreferences

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

Change 692356 merged by jenkins-bot:

[operations/mediawiki-config@master] [BETA CLUSTER] TheWikipediaLibrary requires CentralAuth and GlobalPreferences

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

Urbanecm subscribed.
urbanecm@deployment-deploy01:~$ mwscript shell.php --wiki=votewiki
Psy Shell v0.10.5 (PHP 7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b+wmf1+icu63 — cli) by Justin Hileman
>>> ^D
Exit:  Ctrl+D
urbanecm@deployment-deploy01:~$

Does what I would expect it to do.