Page MenuHomePhabricator

All CI failing with “Service disabled: DBLoadBalancerFactory”
Closed, ResolvedPublic

Description

example log

13:03:32 INFO:backend.MySQL:Initializing MySQL data directory
13:03:41 INFO:backend.MySQL:Starting MySQL
13:03:41 INFO:backend.MySQL:Waiting for MySQL socket
13:03:42 INFO:backend.MySQL:Creating the wiki database and grant
13:03:42 INFO:backend.MySQL:MySQL is ready
13:03:42 INFO:mw.maintenance.install:php maintenance/install.php --scriptpath= --dbtype=mysql --dbname=wikidb --dbuser=wikiuser --dbpass=secret --dbserver=localhost:/workspace/db/quibble-mysql-v24ybd4l/socket --with-extensions --pass=testwikijenkinspass TestWiki WikiAdmin
13:03:42 Could not find the registration file for the extension "EducationProgram"
13:03:42 [b1e1d1a1d751580d8bede92d] [no req]   Wikimedia\Services\ServiceDisabledException from line 423 of /workspace/src/includes/libs/services/ServiceContainer.php: Service disabled: DBLoadBalancerFactory
13:03:42 Backtrace:
13:03:42 #0 /workspace/src/includes/MediaWikiServices.php(577): Wikimedia\Services\ServiceContainer->getService(string)
13:03:42 #1 /workspace/src/maintenance/doMaintenance.php(123): MediaWiki\MediaWikiServices->getDBLoadBalancerFactory()
13:03:42 #2 /workspace/src/maintenance/install.php(193): require_once(string)
13:03:42 #3 {main}
13:03:42 Traceback (most recent call last):
13:03:42   File "/usr/local/bin/quibble", line 11, in <module>
13:03:42     load_entry_point('quibble==0.0.0', 'console_scripts', 'quibble')()
13:03:42   File "/usr/local/lib/python3.5/dist-packages/quibble/cmd.py", line 465, in main
13:03:42     cmd.execute(plan)
13:03:42   File "/usr/local/lib/python3.5/dist-packages/quibble/cmd.py", line 440, in execute
13:03:42     command.execute()
13:03:42   File "/usr/local/lib/python3.5/dist-packages/quibble/commands.py", line 428, in execute
13:03:42     mwdir=self.mw_install_path
13:03:42   File "/usr/local/lib/python3.5/dist-packages/quibble/mediawiki/maintenance.py", line 63, in install
13:03:42     'Install failed with exit code: %s' % p.returncode)
13:03:42 Exception: Install failed with exit code: 255
13:03:42 INFO:backend.MySQL:Terminating MySQL

Not sure if the EducationProgram message is related – but that extension is supposed to be archived (T214457), so it’s probably best to remove from integration-config in any case.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 3 2019, 1:32 PM
Pablo-WMDE added a comment.EditedSep 3 2019, 2:14 PM

The ServiceDisabledException is possibly a manifestation of T229601: When installer fails, an extra message is shown: Service disabled: DBLoadBalancerFactory while CLI installation failed.
"Remove EducationProgram namespace configs from operations-mediawiki-config/" was added to T214457 todos 2 days ago indeed.
https://gerrit.wikimedia.org/r/534164 could be our ticket.

Change 534168 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[integration/config@master] Remove EducationProgram from parameter_functions.py

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

Change 534168 abandoned by Lucas Werkmeister (WMDE):
Remove EducationProgram from parameter_functions.py

Reason:
already done in I9893adb308, apparently

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

Jdforrester-WMF renamed this task from Wikibase CI failing with “Service disabled: DBLoadBalancerFactory” to All CI failing with “Service disabled: DBLoadBalancerFactory”.Sep 3 2019, 2:25 PM
Jdforrester-WMF claimed this task.
Jdforrester-WMF triaged this task as Unbreak Now! priority.
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptSep 3 2019, 2:25 PM

This theoretically is now fixed. Checking results of a few more runs to make sure.

Thanks people!

hashar closed this task as Resolved.EditedSep 3 2019, 2:42 PM
hashar added a subscriber: hashar.

The actual error was:

Could not find the registration file for the extension "EducationProgram"

Due to EducationProgram being cloned in but since it has been archived it is all empty!

The recent changes to CI for the new pipelines are likely at fault, but too complicated to quickly revert. :-(

Change 534195 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/core@master] Revert "Modify -—with-extensions to throw extension dependency errors"

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

Daimona added a subscriber: Daimona.Sep 3 2019, 4:49 PM

Change 534195 merged by jenkins-bot:
[mediawiki/core@master] Revert "Modify -—with-extensions to throw extension dependency errors"

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

Change 534199 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/core@wmf/1.34.0-wmf.21] Revert "Modify -—with-extensions to throw extension dependency errors"

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

Change 534199 merged by jenkins-bot:
[mediawiki/core@wmf/1.34.0-wmf.21] Revert "Modify -—with-extensions to throw extension dependency errors"

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

Jdforrester-WMF closed this task as Resolved.Sep 3 2019, 5:46 PM

OK, provisionally re-declaring as fixed. If anything breaks, please re-open.

DannyS712 added a subscriber: DannyS712.

[batch] remove patch for review tag from resolved tasks