Page MenuHomePhabricator

Content Translation: Error while publishing: parsoidserver (reference section missing)
Closed, ResolvedPublic1 Estimated Story Points

Description

URL: http://en.wikipedia.beta.wmflabs.org/wiki/Special:ContentTranslation?page=California&from=en&to=gu&targettitle=%E0%AA%95%E0%AB%87%E0%AA%B2%E0%AA%BF%E0%AA%AB%E0%AB%8B%E0%AA%B0%E0%AB%8D%E0%AA%A8%E0%AA%BF%E0%AA%AF%E0%AA%BE&draft=81300&debug=true

Console output:

[CX] Error while publishing: parsoidserver

Object {sourceLanguage: "en", targetLanguage: "gu", sourceTitle: "California", sourceRevision: "653552743", targetTitle: "કેલિફોર્નિયા"…}
error: Object
error: Object
   *: "See http://en.wikipedia.beta.wmflabs.org/w/api.php for API usage"
   code: "parsoidserver"
   info: "↵<?xml version="1.0" encoding="utf-8"?>↵<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"↵ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">↵<html>↵  <head>↵    <title>503 Service Unavailable</title>↵  </head>↵  <body>↵    <h1>Error 503 Service Unavailable</h1>↵    <p>Service Unavailable</p>↵    <h3>Guru Meditation:</h3>↵    <p>XID: 1299956861</p>↵    <hr>↵    <p>Varnish cache server</p>↵  </body>↵</html>↵"
   proto__: Object
   servedby: "deployment-mediawiki01"
   __proto__: Object
   sourceLanguage: "en"
   sourceRevision: "653552743"
   sourceTitle: "California"
   targetLanguage: "gu"
   targetTitle: "કેલિફોર્નિયા"

Event Timeline

KartikMistry raised the priority of this task from to Needs Triage.
KartikMistry updated the task description. (Show Details)
KartikMistry added a subscriber: KartikMistry.

Can you retry this. Error message says parsoid was unavailable

OK. This happened because of,

  1. I clicked on first paragraph, translated it.
  2. Without adding reference section, tried Publishing.

Once done with References, it was published without error.

Yes, this is related to not having the references content to serialize.

[fatal/request][enwiki/Main Page] extension src id mw-reference-text-cite_note-PopEst-4 points to non-existent element for:  <span about="#mwt31" class="reference" data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;id&quot;:&quot;mw-reference-text-cite_note-PopEst-4&quot;,&quot;html&quot;:&quot;&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;PopEst&quot;}}" data-parsoid="{&quot;dsr&quot;:[6870,7231,19,6]}" id="cxcite_ref-PopEst_4-1" rel="dc:references" typeof="mw:Extension/ref" data-sourceid="cite_ref-PopEst_4-1"><a href="#cite_note-PopEst-4">[4]</a></span> [reference #cite_note-PopEst-4 not found]
Stack:
  WikitextSerializer.WSP._buildExtensionWT (/home/subbu/work/wmf/parsoid/lib/mediawiki.WikitextSerializer.js:607:16)

So, either:
(a) provide the content of <references /> section so that element ids used in <ref>s can be resolved
(b) OR, inline the html into the <ref> data-mw .. i.e. replace body.id with body.html

@ssastry The 503 from Varnish isn't too helpful there. I'm surprised that the backend's 500 page isn't delivered.

https://github.com/wikimedia/operations-puppet/blob/6f56475e5237656ebac4c61ce8037a9a6e2dd61c/manifests/role/cache.pp#L1588

Will investigate.

The 503 from Varnish isn't too helpful there.

Content-Length mismatch as usual?

OK. This happened because of,

  1. I clicked on first paragraph, translated it.
  2. Without adding reference section, tried Publishing.

References section should get automatically added to translation whenever you add a section with atleast one reference. Didn't that happened to you?

References section should get automatically added to translation whenever you add a section with atleast one reference. Didn't that happened to you?

It did not happen to me.

Amire80 triaged this task as Medium priority.Mar 31 2015, 1:24 PM
Amire80 added a subscriber: Amire80.

Is this still happening?

Is this still happening?

Yes! It was only reported two working days ago, why do you expect it to be fixed?

Because Kartik wrote "OK. Seems working now." - or did he refer to something else?

The page he linked included references section, so I assume he means "it works if the reference section is included".

Change 201105 had a related patch set uploaded (by Santhosh):
Improve automatic adding of reference list

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

Pginer-WMF moved this task from Backlog to In Progress on the LE-Sprint-85 board.
Pginer-WMF moved this task from In Progress to In Review on the LE-Sprint-85 board.
Pginer-WMF edited a custom field.
KartikMistry renamed this task from Content Translation: Error while publishing article in Gujarati Beta to Content Translation: Error while publishing: parsoidserver.Apr 1 2015, 1:06 PM
Nikerabbit renamed this task from Content Translation: Error while publishing: parsoidserver to Content Translation: Error while publishing: parsoidserver (reference section missing).Apr 1 2015, 2:20 PM

Change 201105 merged by jenkins-bot:
Improve automatic adding of reference list

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

Arrbee added a subscriber: Arrbee.