Last modified: 2012-04-12 13:55:21 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 T30752, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28752 - Update-script does not work properly when xcache is enabled
Update-script does not work properly when xcache is enabled
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.16.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-29 21:37 UTC by Johannes Weberhofer
Modified: 2012-04-12 13:55 UTC (History)
3 users (show)

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


Attachments

Description Johannes Weberhofer 2011-04-29 21:37:44 UTC
When xcache has been enabled, the update script called from the command line fails with errors:

============
?@server:~/public_html/wiki/maintenance$ php update.php
PHP Warning:  xcache_get(): xcache.var_size is either 0 or too small to enable var data caching in /home/xxxxxx/public_html/wiki/includes/BagOStuff.php on l                                                                             ine 552
PHP Warning:  xcache_set(): xcache.var_size is either 0 or too small to enable var data caching in /home/xxxxxx/public_html/wiki/includes/BagOStuff.php on l                                                                             ine 567

============

This seems to be an xcache-related problem; 

As this problem will not be fixed in xcache [http://xcache.lighttpd.net/ticket/228], I'd suggest to automatically disable all caches when scripts are invoked from command-line.
Comment 1 Chad H. 2011-04-29 22:40:48 UTC
We shouldn't disable all caches from the command line if they work. It only seems to be Xcache with the problem, so hacked it to not do anything when in CLI in r87145.
Comment 2 Aaron Schulz 2011-04-30 02:35:44 UTC
I think eaccelerator has this problem too.
Comment 3 Brion Vibber 2011-06-08 00:36:49 UTC
If caches don't get updated from a CLI script, there could be inconsistency problems.

Running a CLI script with webserver-only caching enabled probably should raise a giant fatal error to the effect of "YOU MIGHT BE TOTALLY SCREWED".

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


Navigation
Links