Page MenuHomePhabricator

Wikipedia export XML contains HTML error DBUnexpectedError
Closed, ResolvedPublic

Description

Author: twcharly

Description:
en.wikipedia.org - Special:Export - Shakara (album)

When exporting a page from Wikipedia via Special:Export with full history as XML some HTML error message is appended to that file. This bug is reproduceable and probably exists since around last Tuesday (2014-05-06).

Example: When exporting the article "Shakara (album)" in XML format the last lines look like this:


References

{{reflist}}

[[Category:Fela Kuti albums]]
[[Category:1972 albums]]
[[Category:Afrobeat albums]]
[[Category:EMI Records albums]]</text>

    <sha1>6wwfc8ti2jihcmsgaqu2zl9uwrixntx</sha1>
    <model>wikitext</model>
    <format>text/x-wiki</format>
  </revision>
</page>

</mediawiki>
<!DOCTYPE html>
<html><head><title>Internal error - Wikipedia</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>
<div class="errorbox">[90caf0e1] 2014-05-12 05:52:07: Fatal exception of type DBUnexpectedError</div>
<!-- Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information. --></body></html>


The full XML file is attached.


Version: 1.24rc
Severity: normal

Attached:

Details

Reference
bz65212

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:20 AM
bzimport set Reference to bz65212.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for taking the time to report this!

Created attachment 15354
WFM?

WFM

Attached:

twcharly wrote:

I am not sure when I have noticed this error on de.Wikipedia.org for the first time. Maybe it was not Tuesday but Thursday (the day when 1.24wmf3 has been deployed to de.wikipedia). I will look up the exact date.

However, I have used

  • different computers
  • different operating systems
  • different browsers
  • http and https
  • mainly de.wikipedia.org but later also en.wikipedia.org
  • on different days
  • and with many different pages

Just minutes ago I have tested it with "Suarez (band)", "Florian haller", "Bruce Ingram", "Liu Lijuan", "Subsurface (software)" from en.WP. All of them contained an error message:

Bruce Ingram:


{{DEFAULTSORT:Ingram, Bruce}}
[[Category:1877 births]]
[[Category:1963 deaths]]
[[Category:British magazine editors]]</text>

    <sha1>4i5pu8jnltsi1gqrbbg3aptqqgvgk3z</sha1>
    <model>wikitext</model>
    <format>text/x-wiki</format>
  </revision>
</page>

</mediawiki>
<!DOCTYPE html>
<html><head><title>Internal error - Wikipedia</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>
<div class="errorbox">[1ed96311] 2014-05-12 09:29:35: Fatal exception of type DBUnexpectedError</div>
<!-- Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information. --></body></html>


Florian haller:


“Uncle Haller”</text>

    <sha1>25bluw3qfj9390n72vxkvydf6meu47y</sha1>
    <model>wikitext</model>
    <format>text/x-wiki</format>
  </revision>
</page>

</mediawiki>
<!DOCTYPE html>
<html><head><title>Internal error - Wikipedia</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>
<div class="errorbox">[1633bb93] 2014-05-12 09:39:24: Fatal exception of type DBUnexpectedError</div>
<!-- Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information. --></body></html>


twcharly wrote:

The problem has been noticed for the first time at de.Wikipdia.org on Friday
2014-05-09 01:00 UTC

The problem has not been present at de.Wikipdia.org before Thursday
2014-05-08 21:11 UTC

HTH

twcharly wrote:

Sorry, that was CEST instead of UTC. Here are the corrcet times:

The problem has been noticed for the first time at de.Wikipdia.org on
Friday 2014-05-09 01:00 CEST

Thursday 2014-05-08 23:00 UTC

The problem has not been present at de.Wikipdia.org before
Thursday 2014-05-08 21:11 CEST

Thursday 2014-05-08 19:11 UTC

2014-05-12 09:29:35 mw1162 enwiki: [1ed96311] /w/index.php?title=Special:Export&action=submit Exception from line 1093 of /usr/local/apache/common-local/php-1.24wmf3/includes/db/Database.php: DB connection was already closed.
#0 /usr/local/apache/common-local/php-1.24wmf3/includes/db/Database.php(3492): DatabaseBase->query('COMMIT', 'DatabaseBase::c...')
#1 /usr/local/apache/common-local/php-1.24wmf3/includes/db/Database.php(3477): DatabaseBase->doCommit('DatabaseBase::c...')
#2 /usr/local/apache/common-local/php-1.24wmf3/includes/db/Database.php(937): DatabaseBase->commit('DatabaseBase::c...', 'flush')
#3 /usr/local/apache/common-local/php-1.24wmf3/includes/db/LoadBalancer.php(870): DatabaseBase->close()
#4 /usr/local/apache/common-local/php-1.24wmf3/includes/specials/SpecialExport.php(395): LoadBalancer->closeAll()
#5 /usr/local/apache/common-local/php-1.24wmf3/includes/specials/SpecialExport.php(179): SpecialExport->doExport('Bruce Ingram', Array, false, false)
#6 /usr/local/apache/common-local/php-1.24wmf3/includes/specialpage/SpecialPage.php(379): SpecialExport->execute(NULL)
#7 /usr/local/apache/common-local/php-1.24wmf3/includes/specialpage/SpecialPageFactory.php(503): SpecialPage->run(NULL)
#8 /usr/local/apache/common-local/php-1.24wmf3/includes/Wiki.php(285): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#9 /usr/local/apache/common-local/php-1.24wmf3/includes/Wiki.php(596): MediaWiki->performRequest()
#10 /usr/local/apache/common-local/php-1.24wmf3/includes/Wiki.php(448): MediaWiki->main()
#11 /usr/local/apache/common-local/php-1.24wmf3/index.php(46): MediaWiki->run()
#12 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apac...')
#13 {main}

  • This bug has been marked as a duplicate of bug 65100 ***