Page MenuHomePhabricator

MediaWiki files set up by role::mediawiki-install::labs don't have proper permissions
Closed, DeclinedPublic

Description

  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.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=60435
https://bugzilla.wikimedia.org/show_bug.cgi?id=56439
https://bugzilla.wikimedia.org/show_bug.cgi?id=72046

Details

Reference
bz62368

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:08 AM
bzimport added a project: Cloud-VPS.
bzimport set Reference to bz62368.
bzimport added a subscriber: Unknown Object (MLST).

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. ***
yuvipanda claimed this task.
yuvipanda subscribed.

Using that role has been unsupported since availability of labs-vagrant, instances should probably migrate.