Page MenuHomePhabricator

math.sql does not exist
Closed, ResolvedPublic


When creating the fawiki on the beta cluster, the addWiki.php yield an error:

hashar@deployment-bastion:~$ mwscript extensions/WikimediaMaintenance/addWiki.php --wiki=aawiki fa fawiki fawiki
Creating database fawiki for fa.fawiki (فارسی)
Initialising tables
[2ca8d598] [no req] Exception from line 3790 of /mnt/srv/scap-stage-dir/php-master/includes/db/Database.php: Could not open "/mnt/srv/scap-stage-dir/php-master/extensions/Math/db/math.sql".

#0 /mnt/srv/scap-stage-dir/php-master/extensions/WikimediaMaintenance/addWiki.php(100): DatabaseBase->sourceFile(string)
#1 /mnt/srv/scap-stage-dir/php-master/maintenance/doMaintenance.php(109): AddWiki->execute()
#2 /mnt/srv/scap-stage-dir/php-master/extensions/WikimediaMaintenance/addWiki.php(275): require_once(string)
#3 /mnt/srv/scap-stage-dir/multiversion/MWScript.php(97): require_once(string)
#4 {main}

The parent directory has:

$ ls -l /mnt/srv/scap-stage-dir/php-master/extensions/Math/db/
total 32
-rw-r--r-- 1 mwdeploy mwdeploy 511 May 20 11:45 mathlatexml.mysql.sql
-rw-r--r-- 1 mwdeploy mwdeploy 495 May 21 08:54 mathlatexml.postgres.sql
-rw-r--r-- 1 mwdeploy mwdeploy 511 May 21 08:54 mathlatexml.sqlite.sql
-rw-rw-r-- 1 mwdeploy mwdeploy 321 Apr 21 17:04 math.mssql.sql
-rw-r--r-- 1 mwdeploy mwdeploy 633 May 21 08:54 math.mysql.sql
-rw-rw-r-- 1 mwdeploy mwdeploy 346 Apr 21 17:04
-rw-r--r-- 1 mwdeploy mwdeploy 252 May 21 08:54 math.postgres.sql
-rw-r--r-- 1 mwdeploy mwdeploy 633 May 21 08:54 math.sqlite.sql

The git working directory is clean and last commit is:

commit 972cee0f98c0808985144012245c6a11d723ce7d
Author: physikerwelt <>
Date: Wed May 21 10:16:15 2014 +0000

There is a glitch somewhere :-)

Version: unspecified
Severity: normal
See Also:



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:22 AM
bzimport added a project: Math.
bzimport set Reference to bz65761.

physik wrote:

I feel sorry. That's my fault.
I was thinking that the database updates are using the
MathHooks::onLoadExtensionSchemaUpdates hook.
This commit I4f4d31c281257014734e9e3a8d7f1506855ea6d9 renames math.sql to math.mysql.php

Change 135414 had a related patch set uploaded by Physikerwelt:
Fix: rename math table

Change 135414 merged by jenkins-bot:
Fix: rename math table

No need to feel sorry :-) Specially when you fix the glitch on spot! Thank you!