Thread:Project:Support desk/luasandbox - version

How do I get the version of luasandbox which wikipedia use (1.9-1)? If I just install luasandbox from git I get version 2.0-4 and I cant find any tags in the git repo.

I have used Scribunto and luasandbox before, but after upgrading to php 5.5 I get the error (even that it looks like its installad in special:version) when I run "php runJobs.php":

2014-08-06 21:02:15 refreshLinks Template:all pages=array(1) rootJobSignature=0dd740a55c910d4ed7dac576a944a0d57ca0ee00 rootJobTimestamp=20140806143205 masterPos= STARTING [b5d08c9c] [no req]  Exception from line 220 of /var/www/extensions/Scribunto/engines/LuaSandbox/Engine.php: The luasandbox extension is not present, this engine cannot be used. Backtrace:
 * 1) 0 /var/www/extensions/Scribunto/engines/LuaSandbox/Engine.php(207): Scribunto_LuaSandboxInterpreter->__construct(Scribunto_LuaSandboxEngine, array)
 * 2) 1 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(87): Scribunto_LuaSandboxEngine->newInterpreter
 * 3) 2 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(189): Scribunto_LuaEngine->load
 * 4) 3 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(763): Scribunto_LuaEngine->getInterpreter
 * 5) 4 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(775): Scribunto_LuaModule->getInitChunk
 * 6) 5 /var/www/extensions/Scribunto/common/Hooks.php(108): Scribunto_LuaModule->invoke(string, PPTemplateFrame_DOM)
 * 7) 6 [internal function]: ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_DOM, array)
 * 8) 7 /var/www/done/includes/parser/Parser.php(3716): call_user_func_array(string, array)
 * 9) 8 /var/www/done/includes/parser/Parser.php(3434): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)
 * 10) 9 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
 * 11) 10 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
 * 12) 11 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
 * 13) 12 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
 * 14) 13 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPFrame_DOM)
 * 15) 14 /var/www/done/includes/parser/Parser.php(3244): PPFrame_DOM->expand(PPNode_DOM, integer)
 * 16) 15 /var/www/done/includes/parser/Parser.php(1239): Parser->replaceVariables(string)
 * 17) 16 /var/www/done/includes/parser/Parser.php(405): Parser->internalParse(string)
 * 18) 17 /var/www/done/includes/content/WikitextContent.php(327): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
 * 19) 18 /var/www/done/includes/content/AbstractContent.php(486): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
 * 20) 19 /var/www/done/includes/jobqueue/jobs/RefreshLinksJob.php(156): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
 * 21) 20 /var/www/done/includes/jobqueue/jobs/RefreshLinksJob.php(93): RefreshLinksJob->runForTitle(Title)
 * 22) 21 /var/www/done/maintenance/runJobs.php(108): RefreshLinksJob->run
 * 23) 22 /var/www/done/maintenance/doMaintenance.php(109): RunJobs->execute
 * 24) 23 /var/www/done/maintenance/runJobs.php(280): require_once(string)
 * 25) 24 {main}

---

When I remove $wgScribuntoDefaultEngine = 'luasandbox' from LocalSetting.php I get the following error message:

2014-08-06 21:07:05 refreshLinks Template:all pages=array(1) rootJobSignature=f899e119eee4a01a4ead765b0491de6c5e2141fe rootJobTimestamp=20140806143207 masterPos= STARTING [4edd60dd] [no req]  Exception from line 220 of /var/www/extensions/Scribunto/engines/LuaSandbox/Engine.php: The luasandbox extension is not present, this engine cannot be used. Backtrace:
 * 1) 0 /var/www/extensions/Scribunto/engines/LuaSandbox/Engine.php(207): Scribunto_LuaSandboxInterpreter->__construct(Scribunto_LuaSandboxEngine, array)
 * 2) 1 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(87): Scribunto_LuaSandboxEngine->newInterpreter
 * 3) 2 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(189): Scribunto_LuaEngine->load
 * 4) 3 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(763): Scribunto_LuaEngine->getInterpreter
 * 5) 4 /var/www/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(775): Scribunto_LuaModule->getInitChunk
 * 6) 5 /var/www/extensions/Scribunto/common/Hooks.php(108): Scribunto_LuaModule->invoke(string, PPTemplateFrame_DOM)
 * 7) 6 [internal function]: ScribuntoHooks::invokeHook(Parser, PPTemplateFrame_DOM, array)
 * 8) 7 /var/www/done/includes/parser/Parser.php(3716): call_user_func_array(string, array)
 * 9) 8 /var/www/done/includes/parser/Parser.php(3434): Parser->callParserFunction(PPTemplateFrame_DOM, string, array)
 * 10) 9 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
 * 11) 10 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
 * 12) 11 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
 * 13) 12 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
 * 14) 13 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
 * 15) 14 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
 * 16) 15 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
 * 17) 16 /var/www/done/includes/parser/Parser.php(3586): PPFrame_DOM->expand(PPNode_DOM)
 * 18) 17 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPTemplateFrame_DOM)
 * 19) 18 /var/www/done/includes/parser/Preprocessor_DOM.php(1615): PPFrame_DOM->expand(PPNode_DOM, integer)
 * 20) 19 /var/www/done/includes/parser/Parser.php(3583): PPTemplateFrame_DOM->cachedExpand(string, PPNode_DOM)
 * 21) 20 /var/www/done/includes/parser/Preprocessor_DOM.php(1175): Parser->braceSubstitution(array, PPFrame_DOM)
 * 22) 21 /var/www/done/includes/parser/Parser.php(3244): PPFrame_DOM->expand(PPNode_DOM, integer)
 * 23) 22 /var/www/done/includes/parser/Parser.php(1239): Parser->replaceVariables(string)
 * 24) 23 /var/www/done/includes/parser/Parser.php(405): Parser->internalParse(string)
 * 25) 24 /var/www/done/includes/content/WikitextContent.php(327): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
 * 26) 25 /var/www/done/includes/content/AbstractContent.php(486): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
 * 27) 26 /var/www/done/includes/jobqueue/jobs/RefreshLinksJob.php(156): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
 * 28) 27 /var/www/done/includes/jobqueue/jobs/RefreshLinksJob.php(93): RefreshLinksJob->runForTitle(Title)
 * 29) 28 /var/www/done/maintenance/runJobs.php(108): RefreshLinksJob->run
 * 30) 29 /var/www/done/maintenance/doMaintenance.php(109): RunJobs->execute
 * 31) 30 /var/www/done/maintenance/runJobs.php(280): require_once(string)
 * 32) 31 {main}