Last modified: 2014-10-14 18:24:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 62368 - MediaWiki files set up by role::mediawiki-install::labs don't have proper permissions
MediaWiki files set up by role::mediawiki-install::labs don't have proper per...
Status: NEW
Product: Wikimedia Labs
Classification: Unclassified
Infrastructure (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-07 11:07 UTC by Nemo
Modified: 2014-10-14 18:24 UTC (History)
4 users (show)

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


Attachments

Description Nemo 2014-03-07 11:07:21 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.
Comment 1 Nemo 2014-03-07 11:09:56 UTC
Actually, I lied, that didn't fix the error completely. However that permissions inconsistency is ugly.
Comment 2 Nemo 2014-03-07 11:56:40 UTC
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.
Comment 3 Nemo 2014-03-07 11:56:56 UTC
*** Bug 60435 has been marked as a duplicate of this bug. ***
Comment 4 Matthew Flaschen 2014-03-08 08:47:24 UTC
https://gerrit.wikimedia.org/r/#/c/79955/ (pending review) may help, but not tested yet.

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


Navigation
Links