Topic on Project:Support desk

Scribunto / Lua error: Cannot create process.

26
Ausrpdesigns (talkcontribs)

Problems installing Scribunto / Lua. Hi guys, another lua Scribunto issue. Please help! I have done my research and tried a number of things, see below. Looks like php related error.

  • CentOS
  • MediaWiki 1.20.2
  • PHP 5.3.23
  • Lua 5.1.4
  1. I have Chmod 755 extensions/Scribunto files and dirs.
  2. Chmod all lua locations /usr/bin/lua /usr/lib/lua
  3. Scribunto showing installed on Special:Version
  4. PCRE version 8.33

LocalSettings.php fragment

 
require_once( "$IP/extensions/Scribunto/Scribunto.php" );
$wgScribuntoDefaultEngine = 'luastandalone';
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/extensions/Scribunto/engines/LuaStandalone/biaries/lua5_1_5_linux_32_generic';
$wgShowExceptionDetails = true;
  • Phpinfo - disable_functions = no value
  • D/L Scribunto mediawiki again, re-installed, same issue.

ERROR - Lua error: Cannot create process.

Backtrace:
#0 /var/www/vhosts/mywiki.org/httpdocs/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(136): ScribuntoEngineBase->newException('scribunto-luast...')
#1 /var/www/vhosts/mywiki.org/httpdocs/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(60): Scribunto_LuaStandaloneInterpreter->__construct(Object(Scribunto_LuaStandaloneEngine), Array)
#2 /var/www/vhosts/mywiki.org/httpdocs/wiki/extensions/Scribunto/engines/LuaCommon/LuaCommon.php(69): Scribunto_LuaStandaloneEngine->newInterpreter()
#3 /var/www/vhosts/mywiki.org/httpdocs/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(8): Scribunto_LuaEngine->load()
#4 /var/www/vhosts/mywiki.org/httpdocs/wiki/extensions/Scribunto/engines/LuaStandalone/LuaStandaloneEngine.php(26): Scribunto_LuaStandaloneEngine->load()
#5 /var/www/vhosts/mywiki.org/httpdocs/wiki/extensions/Scribunto/common/Hooks.php(210): Scribunto_LuaStandaloneEngine->getLimitReport()
#6 [internal function]: ScribuntoHooks::reportLimits(Object(Parser), 'NewPP limit rep...')
#7 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/Hooks.php(216): call_user_func_array('ScribuntoHooks:...', Array)
#8 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/GlobalFunctions.php(3823): Hooks::run('ParserLimitRepo...', Array)
#9 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/parser/Parser.php(492): wfRunHooks('ParserLimitRepo...', Array)
#10 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/WikiPage.php(3110): Parser->parse('{{pp-move-indef...', Object(Title), Object(ParserOptions), true, true, 3990)
#11 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/PoolCounter.php(209): PoolWorkArticleView->doWork()
#12 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/Article.php(631): PoolCounterWork->execute()
#13 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/actions/ViewAction.php(37): Article->view()
#14 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/Wiki.php(427): ViewAction->show()
#15 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/Wiki.php(304): MediaWiki->performAction(Object(Article))
#16 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/Wiki.php(536): MediaWiki->performRequest()
#17 /var/www/vhosts/mywiki.org/httpdocs/wiki/includes/Wiki.php(446): MediaWiki->main()
#18 /var/www/vhosts/mywiki.org/httpdocs/wiki/index.php(59): MediaWiki->run()
#19 {main}

Thanks!

MarkAHershberger (talkcontribs)

The path you're giving in $wgScribuntoEngineConf['luastandalone']['luaPath'] is probably wrong. Could you try:

$wgScribuntoEngineConf['luastandalone']['luaPath'] = "$IP/extensions/Scribunto/engines/LuaStandalone/biaries/lua5_1_5_linux_32_generic";
MarkAHershberger (talkcontribs)

In fact, what happens if you just delete that line?

Ausrpdesigns (talkcontribs)

Thanks for quick reply! I corrected the line, no luck. I removed it, same errors.

MarkAHershberger (talkcontribs)

could you try replacing the line?

Ausrpdesigns (talkcontribs)

Yes already replaced it as advised. Now getting -

Lua error: Internal error: The interpreter exited with status 126.


Also placed the error log output in localsettings -

$wgScribuntoEngineConf['luastandalone']['errorFile'] = '/tmp/lua-error.log';

In this -

.../wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: line 6:
.../wiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic: is a directory
.../wiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic: cannot execute: Success

I have made all the files executable(755).

Thx

Ausrpdesigns (talkcontribs)

Hello? Is there any support for this guys? Multiple posts around the web with same issues, all with no resolutions...

MarkAHershberger (talkcontribs)

"multiple posts around the web" means nothing to me. I only answer questions here. And Scribunto is relatively new, so there aren't a lot of people answering questions about it. I'm not sure what else I can say without offending you, so I'll just stop.

Ausrpdesigns (talkcontribs)

I'm not having a go at you mate. Its just frustrating the lack of support 'around the web'.. I appreciate your help.

MarkAHershberger (talkcontribs)

The error message was giving you a clue. It says "...lua5_1_5_linux_32_generic: is a directory" and "...lua5_1_5_linux_32_generic: cannot execute".

This indicates that it is trying to execute the bit in 'luaPath'. So the bit I gave you wasn't quite right. Change it to

$wgScribuntoEngineConf['luastandalone']['luaPath'] = "$IP/extensions/Scribunto/engines/LuaStandalone/biaries/lua5_1_5_linux_32_generic/lua";
Ausrpdesigns (talkcontribs)

You made a mistake '/biaries/'.. should be '/binaries/' :P

Ok different errors now. The page is getting

"Lua error: Internal error: The interpreter exited with status 1." - following the same #1 - #22 errors as stated before.

Log file -

.../lua5_1_5_linux_32_generic/lua: /lib/libc.so.6: version `GLIBC_2.7' not found (required by .../lua5_1_5_linux_32_generic/lua)
.../lua5_1_5_linux_32_generic/lua: /lib/libc.so.6: version `GLIBC_2.11' not found (required by .../lua5_1_5_linux_32_generic/lua)

analyzing & researching the errors now.

Thanks for your help so far.

MarkAHershberger (talkcontribs)

You don't say what version of CentOS you have, but this looks like you are using a version other than the one that matches the included binaries.

Do you have lua in /usr/bin/lua? You may need to point $wgScribuntoEngineConf['luastandalone']['luaPath'] there.

Ausrpdesigns (talkcontribs)

Cool its working! kinda.. I tried - $IP/usr/bin/lua"; that failed as it was attempting to look inside the wiki directory, got it working with - '/usr/bin/lua';

Now getting "Script error: No such module." on pages.. Imported all pages Template:Infoxbox & Module:Infobox from Wikipedia again and tacking down the remaining missing mods.

Cheers

Lestatdelc~mediawikiwiki (talkcontribs)

It sounds like we were/are having the same issues. Can you spell out all the setting you have used to get it to work?

This post was posted by Lestatdelc~mediawikiwiki, but signed as Lestatdelc.

MarkAHershberger (talkcontribs)

What problem do you currently have?

Lestatdelc~mediawikiwiki (talkcontribs)
MarkAHershberger (talkcontribs)

do you still see this problem? If so, start a new thread with your description, please.

MarkAHershberger (talkcontribs)

Let me know if you have any problems getting all the modules in place.

Ausrpdesigns (talkcontribs)

Ok so there’s still plenty of 'Script Errors' where Lua is calling modules. I tried to re-import them from Wikipedia (With all 3 options ticked on export page) with no luck. I then tried to visit the modules pages e.g. 'Module:Coordinates' and the page was blank.. So I enabled error reporting in Localsettings.php, it was complaining about GeSHi extension. I downloaded GeSHi again and imported it, can access module pages fine, re-imported modules. However same module errors. Any ideas?

Found a few threads but no help –

A few examples - Lua error in Module:Coordinates at line 22: attempt to index field 'title' (a nil value). Backtrace:

   (tail call): ?
   Module:Coordinates:22: in main chunk
   (tail call): ?
   (tail call): ?
   [C]: in function "xpcall"
   MWServer.lua:73: in function "handleCall"
   MWServer.lua:266: in function "dispatch"
   MWServer.lua:51: in function "dispatch"
   (tail call): ?
   mw.lua:248: ?
   Module:Infobox:313: in function "preprocessArgs"
   Module:Infobox:366: in function "chunk"
   mw.lua:425: in function "chunk"
   (tail call): ?
   [C]: in function "xpcall"
   MWServer.lua:73: in function "handleCall"
   MWServer.lua:266: in function "dispatch"
   MWServer.lua:33: in function "execute"
   mw_main.lua:7: in main chunk
   [C]: ?


Lua error in Module:Namespace_detect at line 250: attempt to index field 'text' (a nil value).

Backtrace:

   (tail call): ?
   Module:Namespace_detect:250: in function "chunk"
   mw.lua:425: in function "chunk"
   (tail call): ?
   [C]: in function "xpcall"
   MWServer.lua:73: in function "handleCall"
   MWServer.lua:266: in function "dispatch"
   MWServer.lua:33: in function "execute"
   mw_main.lua:7: in main chunk
   [C]: ?
Ausrpdesigns (talkcontribs)

Hi Mark,

Any ideas?

MarkAHershberger (talkcontribs)

Sorry, Life happened.

Could you let paste wikitext that is giving you this error?

It may be some incompatibility between your /usr/bin/lua and the lua that Scribunto expects. What lua version shows up on your [[Special:Version]] page?

Ausrpdesigns (talkcontribs)

ah I hate when that happens. Well it doesn't like most modules. I have tried uploading the fresh exports from wikipedia (templates included) but no change. The Scribunto extension page suggests to update the Scribunto extension. No change. Lua error in Module:Footnotes at line 147: attempt to call method 'extensionTag' (a nil value). Backtrace:

   (tail call): ?
   Module:Footnotes:147: in function "chunk"
   mw.lua:425: in function "chunk"
   (tail call): ?
   [C]: in function "xpcall"
   MWServer.lua:73: in function "handleCall"
   MWServer.lua:266: in function "dispatch"
   MWServer.lua:33: in function "execute"
   mw_main.lua:7: in main chunk
   [C]: ?

Lua error in Module:Namespace_detect at line 224: attempt to index field 'text' (a nil value). Backtrace:

   (tail call): ?
   Module:Namespace_detect:224: in function "chunk" 

The Special:version page doesn't show Lua. Strangely only Scribunto.. Is this because I'm using the standalone? or this could be my issue? If I run Lua on my server - Lua 5.1.4.

MarkAHershberger (talkcontribs)

Could you point me to the file you're trying to import? Would you be willing to try the MediaWiki 1.22rc1 that I just put out or (at least) MW 1.21?

There have been a few updates in Scribunto. Since MW 1.20 is about to go out of maintenance, I think it is worth your while to upgrade.

Ausrpdesigns (talkcontribs)

So I installed 1.21, installed the correct Scribunto version. failed with 'ERROR - Lua error: Cannot create process.'

1.22 came out few days ago so I'm just upgrading the 1.21 and see how I go. Is there anything in 1.22 to improve the Scribunto/Lua issues people are having?

Enemyx (talkcontribs)

setenforce 0

64.236.4.25 (talkcontribs)

Hi,

I am using:

  • MediaWiki 1.24alpha
  • PHP 5.3.21 (apache2handler)
  • MySQL 5.5.29-log
  • Lua 5.1.5
  • Scribunto - Master

I have Chmod 755 extensions/Scribunto files and dirs Scribunto showing installed on Special:Version


The last dumps from mediawiki.

I am always getting the 'Script Error' display on the pages.

There are 2 kinds of messages:

1) Script error: No such module "Module_name".

2) Lua error in package.lua at line 80: module `Module:Convert/text' not found. Backtrace:

(tail call): ?
[C]: in function "error"
package.lua:80: in function "load"
package.lua:99: ?
(tail call): ?
(tail call): ?
mw.lua:704: in function "loadData"
Module:Convert:91: in function "set_config"
Module:Convert:3230: in function "chunk"
mw.lua:468: ?
(tail call): ?
[C]: in function "xpcall"
MWServer.lua:87: in function "handleCall"
MWServer.lua:301: in function "dispatch"
MWServer.lua:40: in function "execute"
mw_main.lua:7: in main chunk
[C]: ?

I tried different combinations but no luck so far.

If I add to the LocalSettings_en.php:

$wgScribuntoEngineConf['luastandalone']['luaPath'] = 'usr/bin/lua' or $wgScribuntoEngineConf['luastandalone']['luaPath'] ='...Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua'

The Lua version disapear frm the 'Special:Version' site.

Adding this line to the LocalSettings_en.php:

$wgScribuntoEngineConf['luastandalone']['errorFile'] = '/data/servers/wikimirror_mediawiki_renderer_apache/lua.log';

RX <== loadString
TX ==> return
RX <== return
TX ==> call
RX <== return
TX ==> error
RX <== getStatus
TX ==> return
RX <== loadString
TX ==> return
RX <== getStatus

Any ideas how to make it works?

Thanks in advance

Reply to "Scribunto / Lua error: Cannot create process."