Last modified: 2014-09-30 07:11:51 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 T68212, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66212 - Clearing large (39k+) watchlist @ Special:EditWatchlist/clear fails, HTTP error 503
Clearing large (39k+) watchlist @ Special:EditWatchlist/clear fails, HTTP err...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Watchlist (Other open bugs)
1.24rc
All All
: High normal with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 68559 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-05 19:59 UTC by UP
Modified: 2014-09-30 07:11 UTC (History)
5 users (show)

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


Attachments

Description UP 2014-06-05 19:59:03 UTC
Background: Grow tired of not being able to edit massive (41k+) watchlist by normal means (clicky-clicky or raw) (see bug #39510). Manually whittle watchlist down to 39k+ entries. Dig out https://commons.wikimedia.org/w/api.php?action=query&generator=watchlistraw&gwrlimit=max and hand-craft a list of watchlist entries to be kept after a watchlist purge.

The act: go to https://commons.wikimedia.org/wiki/Special:EditWatchlist/clear and click the button. Watch nothing happen. Get following error message:

Request: POST http://commons.wikimedia.org/wiki/Special:EditWatchlist/clear, from 10.64.0.104 via cp1055 cp1055 ([10.64.32.107]:3128), Varnish XID 3575162694
Forwarded for: 84.250.106.149, 91.198.174.103, 208.80.154.134, 10.64.0.104
Error: 503, Service Unavailable at Thu, 05 Jun 2014 19:07:13 GMT
Comment 1 Jesús Martínez Novo (Ciencia Al Poder) 2014-06-05 20:11:24 UTC
If you try it again, does it happen consistently?

A /clear is supposed to be more lightweight, but still, the problem may be in the database server, because it needs to remove 41k+ rows of a large table on a single transaction, although a database server error should normally trigger the usual WSOD ("this site is experiencing technical difficulties")
Comment 2 UP 2014-06-06 00:59:06 UTC
(In reply to Jesús Martínez Novo (Ciencia Al Poder) from comment #1)
> If you try it again, does it happen consistently?
> 
> A /clear is supposed to be more lightweight, but still, the problem may be
> in the database server, because it needs to remove 41k+ rows of a large
> table on a single transaction, although a database server error should
> normally trigger the usual WSOD ("this site is experiencing technical
> difficulties")

Yes, I've tried about five times now, about three or four hours apart.
Comment 3 UP 2014-06-06 15:02:50 UTC
Would it be possible to make a .js action thingy (to use on personal .js files) for the /clear page that removes, say, the first 2500 lines of the list at a time, until the bug gets a proper fix?
Comment 4 Andre Klapper 2014-06-06 15:16:31 UTC
What exactly is the difference to bug 39510?
Comment 5 UP 2014-06-06 16:50:44 UTC
@Andre Klapper, #39510 is about editing the watchlist, this is about clearing it. Those are two different tools. (Three actually but it seems original reporter for #39510 didn't specify which of the editing tools was failing for them, if not both.)

On a semi-related note, I'm on my way to do an experiment to see what thresholds I can get for edit tools (and possibly the clear tool) failing. I'll be back soon.
Comment 6 Jesús Martínez Novo (Ciencia Al Poder) 2014-06-06 16:53:03 UTC
(In reply to UP from comment #3)
> Would it be possible to make a .js action thingy (to use on personal .js
> files) for the /clear page that removes, say, the first 2500 lines of the
> list at a time, until the bug gets a proper fix?

You can use this script to unwatch items of your watchlist in batch:

https://www.mediawiki.org/wiki/User:Ciencia_Al_Poder/unwatchapi.js

Just preview that script in your personal JS. The progress is written in the browser's debug console
Comment 7 Brion Vibber 2014-06-06 17:37:28 UTC
Sounds like we might need to break large very deletions into batches or something. Bah.
Comment 8 Merlijn van Deen (test) 2014-07-13 18:32:25 UTC
Note that /clear *does not clear, but just responds with /raw*!

Jesús' workaround is one option; I have provided a pywikibot-based option in https://bugzilla.wikimedia.org/show_bug.cgi?id=64074 .
Comment 9 Merlijn van Deen (test) 2014-07-13 18:34:20 UTC
...or rather, that was what I remembered from when I looked at it back then. There seems to be a button now :-)
Comment 10 Andre Klapper 2014-07-25 14:46:22 UTC
*** Bug 68559 has been marked as a duplicate of this bug. ***
Comment 11 UP 2014-09-30 07:11:51 UTC
I've been whittling my watchlist down (originally +39K), just broke 36K and raw editing works fine now. I'll assume the list could be emptied as well. Normal edit still fails.

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


Navigation
Links