Help:Lua debugging: Difference between revisions

Content deleted Content added
+section "Occasional timeout errors"
Occasional timeout errors: revised as "rare periods of 3x-4x slower server delay"
Line 54:
The Lua software was initially configured with a small, 10-second timeout limit, for the combined operation of all Lua code when formatting a page. By comparison, the markup-based templates have a 60-second timeout (6x higher time limit), and when the servers are slow, the markup-based templates could format perfectly, up through 59 seconds, but the Lua portions of templates will be stopped at the 10-second limit. The error message might be:
:: Lua 'script error': "The time allocated for running scripts has expired."
Unlike markup-based templates, the formatted page will contain "script error" for each further invoked Lua module, as text to store in the page-cache copy. The danger of the timeout limit occurs during the commonrare periods of 2x3x-4x slower server delay, where a 63-second Lua operation might slow to 12-second duration with busy servers, and thus garble the processing to store "script error" into the formatted page, for thousands of readers to view.
 
The overall effort appears unstable, or unreliable, as if Lua suddenly "gets too tired" and starts complaining by storing "scriptScript error" into the resultant page, where formatted text would have been expected instead. The timeout problem is somewhat rare, and when a formatted article contains "Script error" text inside the page, then perhaps edit the page slightly, to make a small change, to force the replacement of the page with a clean Lua run.
 
== Support ==