Last modified: 2014-10-14 18:24:31 UTC
1) Follow points 2-4 https://wikitech.wikimedia.org/wiki/Help:Single_Node_MediaWiki (without hostname, just for internal use) 2) Try and run a maintenance script, or something else Observed: PHP Warning: DOMDocument::load(): I/O warning : failed to load external entity "/srv/mediawiki/languages/data/plurals.xml" in /srv/mediawiki/includes/cache/LocalisationCache.php on line 640 PHP Warning: DOMDocument::load(): I/O warning : failed to load external entity "/srv/mediawiki/languages/data/plurals-mediawiki.xml" in /srv/mediawiki/includes/cache/LocalisationCache.php on line 640 And rebuildLocalisationCache.php --force doesn't help. nemobis@dumps-stats:/srv/mediawiki/languages$ ls -lh data/ total 28K -rw-r--r-- 1 root root 3.7K Mar 6 17:12 plurals-mediawiki.xml -rwxr-xr-x 1 root root 21K Mar 6 17:12 plurals.xml nemobis@dumps-stats:/srv/mediawiki/languages$ sudo chmod 755 data/* nemobis@dumps-stats:/srv/mediawiki/languages$ ls -lh data/ total 28K -rwxr-xr-x 1 root root 3.7K Mar 6 17:12 plurals-mediawiki.xml -rwxr-xr-x 1 root root 21K Mar 6 17:12 plurals.xml And then everything works. Expected: permissions are set correctly since the beginnin.
Actually, I lied, that didn't fix the error completely. However that permissions inconsistency is ugly.
I went rogue: $ sudo find . -type f ! -perm 755 -exec chmod 755 {} + And I've not seen the error in the last 1000 pages imported by importDump. So I have no idea where the error was but it definitely was due to permissions.
*** Bug 60435 has been marked as a duplicate of this bug. ***
https://gerrit.wikimedia.org/r/#/c/79955/ (pending review) may help, but not tested yet.