Page MenuHomePhabricator

Math tags not rendering on Beta Cluster due to Mathoid not working(?)
Closed, ResolvedPublic

Description

Steps to reproduce:

1.Open math dialog
2.Type something in the textbox to add a math node

Math node is failing to get parsed, not getting rendered, showing error in the console " "TypeError: this.model is null"

Event Timeline

Ryasmeen raised the priority of this task from to Needs Triage.
Ryasmeen updated the task description. (Show Details)
Ryasmeen added a project: VisualEditor.
Ryasmeen added a subscriber: Ryasmeen.
Ryasmeen renamed this task from [Regression wmf.13] Math node is failing to parse, not getting rendered, showing error in the console " "TypeError: this.model is null" to [Regression wmf.13] Math node is failing to get parsed, not getting rendered, showing error in the console " "TypeError: this.model is null" .Feb 9 2016, 8:40 PM
Ryasmeen updated the task description. (Show Details)
Ryasmeen set Security to None.

Looks like the math service (Mathoid) isn't running on beta.

Esanders renamed this task from [Regression wmf.13] Math node is failing to get parsed, not getting rendered, showing error in the console " "TypeError: this.model is null" to [Regression wmf.13] Math tags not rendering on beta labs.Feb 10 2016, 12:49 AM
Esanders edited projects, added Mathoid, Beta-Cluster-Infrastructure; removed VisualEditor.
Jdforrester-WMF renamed this task from [Regression wmf.13] Math tags not rendering on beta labs to Math tags not rendering on Beta Cluster due to Mathoid not working(?).Feb 10 2016, 12:54 AM
Jdforrester-WMF triaged this task as High priority.

I confirmed Mathoid is running on deployment-mathoid.deployment-prep.eqiad.wmflabs (IP: 10.68.20.104):

$ netstat -nlp | grep 10042
tcp        0      0 0.0.0.0:10042           0.0.0.0:*               LISTEN      29929/nodejs

Perhaps a configuration issue?

While trying to save a page with the <math> tag, I got:

Exception encountered, of type "UnexpectedValueException"
[fadf8d84] /w/index.php?title=User:Mobrovac-WMF/Probna&action=submit UnexpectedValueException from line 47 of /srv/mediawiki/php-master/includes/EventRelayerGroup.php: No config for 'default'
Backtrace:
#0 /srv/mediawiki/php-master/includes/deferred/CdnCacheUpdate.php(112): EventRelayerGroup->getRelayer(string)
#1 /srv/mediawiki/php-master/includes/deferred/CdnCacheUpdate.php(79): CdnCacheUpdate::purge(array)
#2 /srv/mediawiki/php-master/extensions/Math/MathTexvc.php(357): CdnCacheUpdate->doUpdate()
#3 /srv/mediawiki/php-master/extensions/Math/Math.hooks.php(221): MathTexvc->writeCache()
#4 /srv/mediawiki/php-master/includes/parser/Parser.php(4248): MathHooks::mathTagHook(string, array, Parser)
#5 /srv/mediawiki/php-master/includes/parser/Preprocessor_Hash.php(1133): Parser->extensionSubstitution(array, PPFrame_Hash)
#6 /srv/mediawiki/php-master/includes/parser/Parser.php(3353): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#7 /srv/mediawiki/php-master/includes/parser/Parser.php(1244): Parser->replaceVariables(string)
#8 /srv/mediawiki/php-master/includes/parser/Parser.php(441): Parser->internalParse(string)
#9 /srv/mediawiki/php-master/includes/content/WikitextContent.php(331): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#10 /srv/mediawiki/php-master/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
#11 /srv/mediawiki/php-master/includes/page/WikiPage.php(2172): AbstractContent->getParserOutput(Title, NULL, ParserOptions)
#12 /srv/mediawiki/php-master/extensions/SpamBlacklist/SpamBlacklistHooks.php(52): WikiPage->prepareContentForEdit(WikitextContent)
#13 /srv/mediawiki/php-master/includes/Hooks.php(195): SpamBlacklistHooks::filterMergedContent(RequestContext, WikitextContent, Status, string, User, boolean)
#14 /srv/mediawiki/php-master/includes/EditPage.php(1537): Hooks::run(string, array)
#15 /srv/mediawiki/php-master/includes/EditPage.php(1924): EditPage->runPostMergeFilters(WikitextContent, Status, User)
#16 /srv/mediawiki/php-master/includes/EditPage.php(1391): EditPage->internalAttemptSave(NULL, boolean)
#17 /srv/mediawiki/php-master/includes/EditPage.php(577): EditPage->attemptSave(NULL)
#18 /srv/mediawiki/php-master/includes/actions/EditAction.php(59): EditPage->edit()
#19 /srv/mediawiki/php-master/includes/actions/SubmitAction.php(38): EditAction->show()
#20 /srv/mediawiki/php-master/includes/MediaWiki.php(501): SubmitAction->show()
#21 /srv/mediawiki/php-master/includes/MediaWiki.php(286): MediaWiki->performAction(Article, Title)
#22 /srv/mediawiki/php-master/includes/MediaWiki.php(736): MediaWiki->performRequest()
#23 /srv/mediawiki/php-master/includes/MediaWiki.php(517): MediaWiki->main()
#24 /srv/mediawiki/php-master/index.php(43): MediaWiki->run()
#25 /srv/mediawiki/w/index.php(3): include(string)
#26 {main}

Smells like a cache invalidation issue. @aaron, got any thoughts on this?

Change 269594 had a related patch set uploaded (by Aaron Schulz):
Fix EventRelayerGroup constructor

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

Change 269594 merged by jenkins-bot:
Fix EventRelayerGroup constructor

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

greg added a subscriber: greg.

Change 269594 merged by jenkins-bot:
Fix EventRelayerGroup constructor

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

Did that fix the issue? I also changed this to not a Beta Cluster itself issue, but something you found in BC.

Mathoid is working now. Still getting an exception but that's a VE issue.

Confirmed. Math and Mathoid are working properly in BC.

mobrovac removed a project: Patch-For-Review.
mobrovac removed a subscriber: gerritbot.