Page MenuHomePhabricator

503 Error when saving a long page with lots of templates on ml.wp
Open, MediumPublic


While saving any edit on [[:ml:കേരളത്തിലെ പക്ഷികളുടെ പട്ടിക]], gives a "Wikimedia error" with a message like this

Our servers are currently experiencing a technical problem. This is probably temporary and should be fixed soon. Please try again in a few minutes.
If you report this error to the Wikimedia System Administrators, please include the details below.

Request: POST, from via cp1053 frontend ([]:80), Varnish XID 165009938
Forwarded for:,
Error: 503, Service Unavailable at Sun, 24 Nov 2013 07:30:01 GMT

The page is significantly large, and uses some templates repeatedly for formatting purpose. However other wikimedia wikis have larger pages. Although saving gives an error message, page gets saved and can be load separately.

Version: unspecified
Severity: normal
See Also:



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:41 AM
bzimport set Reference to bz57499.
bzimport added a subscriber: Unknown Object (MLST).

Not much to do here I guess - either splitting the page or converting more templates to use Lua.

Was reminded of T42260. Wondering if this is a dup of T21262.

I didn't observe any particular lag on loading or rendering the page while opening the page normally.

Created attachment 13925
profile info for oldid=1873448

(In reply to comment #2)

I didn't observe any particular lag on loading or rendering the page while
opening the page normally.

That's normal. When opening the page normally, you get an old saved (cached) version, instead of the webservers actually rendering the page at the same time as you request it.

Attached is the profiling data I tried to get for that page. Which didn't seem to give much info, on account of a bunch of things appearing to be double counted?!...

The template ഫലകം:കേരളത്തിലെ_പക്ഷികളുടെ_പട്ടിക_-_ഉള്ളടക്കം seemed to represent a quarter of the time spent (6.5 s) - which while still a lot, not really that much. Possibly something to do with parsing image parameter regexes maybe? This bug seems to be much more likely (although I'm still not sure) to be something on our end, as opposed to a get the users to convert the templates to lua type of bug.


I just moved some part of the content (36,808 bytes) to a new template for easy editing ([[:ml:ഫലകം:കേപപ]]). While saving the original page [[:ml:കേരളത്തിലെ പക്ഷികളുടെ പട്ടിക]] with including new template, it didn't give that 503 error. It just appeared that error was caused by the 'page size', and not by the repetitive use of templates (infact I just added one more template).