Jump to content

Topic on Extension talk:Scribunto/Flow

LuaInterpreterNotExecutableError

4
Medicinestorm (talkcontribs)

I would love to use Scribunto modules, but any time I try to invoke (or even view a module page) I get an error:

Fatal exception of type "MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaInterpreterNotExecutableError"

Is there some troubleshooting steps I could take to help me determine what I'm missing?


Version information is:

  • MediaWiki 1.41.0
  • PHP 8.3.4 (litespeed)
  • Scribunto – (4b702cb) 21:44, 19 December 2023 (came packaged with MW)

PhpInfo says:

  • PCRE 10+
  • mbstring enabled

And I set permissions on extensions/Scribunto/includes/Engines/LuaStandalone/binaries/<all OS>/lua to 755

Localsettings.php says

wfLoadExtension( 'Scribunto' ); 
$wgScribuntoDefaultEngine = 'luastandalone';
134.53.242.49 (talkcontribs)

Were you able to solve this issue? I'm currently running into the same problem and have not been able to find any solution.

Medicinestorm (talkcontribs)

No. This issue still occurs.

BCMatsuyama (talkcontribs)

Hey mate. This might not fix your problem because you actually did what I did to fix it, but it might help someone else and this is the only page that shows up when I Googled this error. (I barely know how any of this stuff works but I fixed the problem for myself after a frustrating day of messing around)

  1. I set the four debug configuration options in Manual:How to debug to "true"
  2. After doing that, when trying to edit a Module my error changed from Fatal exception of type "MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaInterpreterNotExecutableError" to /index.php?title=Module:Infobox&action=submit MediaWiki\Extension\Scribunto\Engines\LuaCommon\LuaInterpreterNotExecutableError: The lua binary (/home/caseambe/public_html/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable. and the backtrace
  3. I went to that file in my cpanel file manager and found that the permissions of the "lua" file itself was set to 0644 (I was looking at the permissions of the folder one level up it was contained in before). I set this to 0755 and it immediately fixed my problem.


Here is my version information:

MediaWiki 1.42.3
PHP 8.1.31 (litespeed)
ICU 64.2
MariaDB 10.5.27-MariaDB-cll-lve
Lua 5.1.5
Reply to "LuaInterpreterNotExecutableError"