Last modified: 2012-12-02 10:13:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43645, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41645 - Wikibase updater eats all memory in Jenkins
Wikibase updater eats all memory in Jenkins
Status: VERIFIED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-01 17:12 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-12-02 10:13 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2012-11-01 17:12:06 UTC
For some unknown reason the Ext-Wikibase job can start eating all memory and send gallium to swap.  When running update.php, it eventually stop at:

 5:55:24      [exec] ...site_identifiers table already exists.

The PHP process then eat as much memory as it can before getting killed by Linux OOM catcher. The command line for one the process was:

php /var/lib/jenkins/jobs/Ext-Wikibase/workspace/maintenance/update.php --quick --conf /var/lib/jenkins/jobs/MediaWiki-Tests-Extensions/workspace/LocalSettings.php


Will have to investigate.

I have disabled the Ext-Wikibase job as a workaround.
Comment 1 Antoine "hashar" Musso (WMF) 2012-11-01 17:47:59 UTC
Might be a race condition with the sqlite database. Need to double check which file is used, they should be different for each job though they are always named my_wiki.sqlite.
Comment 2 Daniel Kinzler 2012-11-07 15:51:53 UTC
could also be language objects being loaded, see Bug 41103. but that's a wild guess.
Comment 3 Jeroen De Dauw 2012-11-10 15:14:01 UTC
Going on the last log entry I would guess that the issue is happening during the importing of sites from meta. No idea why it would happen there though.
Comment 4 Daniel Kinzler 2012-11-11 21:49:13 UTC
I think the updater should not automatically pull stuff from meta. Instead, it should import site info from the interwiki table. That would provide a clean upgrade path for existing wikis.
Comment 5 Antoine "hashar" Musso (WMF) 2012-11-13 20:46:57 UTC
You could try out writing to stdout to debug the thing in Jenkins.  I might also want to set some $wgDebug variable to investigate what is going on.

I wanted to run trace on a faulty process but it needs root access apparently :-(
Comment 6 Daniel Kinzler 2012-11-20 09:52:54 UTC
I removed some code from the updater routine for wikibase, see patch I3335b5f9. It's possible that this fixes the issue, though I don't know why and how it would cause PHP to run out of memory.

There was some code in there that would download the site matrix from meta and initialized the sites table based on that. Instead, the sites table should be initialized based on any existing entries in the interwiki table, see bug 42201.
Comment 7 abraham.taherivand 2012-11-29 15:08:38 UTC
jenkins is running
Comment 8 Antoine "hashar" Musso (WMF) 2012-12-02 10:13:35 UTC
I am still not sure what caused this issue but it is definitely fixed :-)  Thanks!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links