Topic on Extension talk:Scribunto

Usakoi84 (talkcontribs)

Hi, I am attempting to get Infoboxes working on my newly installed MediaWiki.

I've dodged a few errors, but can't seem to get past these two (this page for example):

  • Lua error: Internal error: The interpreter exited with status 2.
  • Lua error: Internal error: Error reading from pipe.

This is the error log:

DEBUG: 1=7 2=8 3=102400 4='/home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/biaries/lua5_1_5_linux_64_generic/lua' '/home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/mw_main.lua' '/home/lightu7/public_html/wiki/extensions/Scribunto' '0' /home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: /Users/chet/src/bash/src/parse.y:2244: cannot allocate 512 bytes (53248 bytes allocated) DEBUG: 1=7 2=8 3=102400 4='/home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/biaries/lua5_1_5_linux_64_generic/lua' '/home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/mw_main.lua' '/home/lightu7/public_html/wiki/extensions/Scribunto' '1' /home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: /Users/chet/src/bash/src/parse.y:2244: cannot allocate 512 bytes (53248 bytes allocated) DEBUG: 1=7 2=8 3=102400 4='/home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/biaries/lua5_1_5_linux_64_generic/lua' '/home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/mw_main.lua' '/home/lightu7/public_html/wiki/extensions/Scribunto' '2' /home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: /Users/chet/src/bash/src/parse.y:2244: cannot allocate 512 bytes (53248 bytes allocated)

This is on my LocalSettings.php:

# Scribunto require_once "$IP/extensions/Scribunto/Scribunto.php"; $wgScribuntoDefaultEngine = 'luastandalone'; $wgScribuntoEngineConf['luastandalone']['luaPath'] = "$IP/extensions/Scribunto/engines/LuaStandalone/biaries/lua5_1_5_linux_64_generic/lua"; $wgScribuntoEngineConf['luastandalone']['errorFile'] = "$IP/extensions/Scribunto/engines/LuaStandalone/binaries/error.log"; $wgScribuntoEngineConf['luastandalone']['memoryLimit'] = 104857600;

I've also set the permissions on all binary files to 755.

Anyone know what I can do next? Thanks for the help!

Wmat (talkcontribs)
Usakoi84 (talkcontribs)

$wgMaxShellMemory = 104857600;

Getting the same error. :(

Usakoi84 (talkcontribs)

I think it has something to do with modules in general. Is there something I'm missing? I tried doing the basic "Hello World" module and it gave me the allocation error right away. Thanks again for the help!

Mr. Stradivarius (talkcontribs)

Looks like you have a typo in your LocalSettings.php.

['luastandalone']['luaPath'] = "$IP/extensions/Scribunto/engines/LuaStandalone/biaries/lua5_1_5_linux_64_generic/lua"

I am guessing that "biaries" should be "binaries". Does changing that fix your problem?

Usakoi84 (talkcontribs)

Good catch, but no. I changed it; didn't fix it. I removed the line from my LocalSettings to make sure there were no other typos; same error.

DEBUG: 1=7 2=8 3=102400 4='/home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua' '/home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/mw_main.lua' '/home/lightu7/public_html/wiki/extensions/Scribunto' '0' /home/lightu7/public_html/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: /Users/chet/src/bash/src/parse.y:2244: cannot allocate 512 bytes (53248 bytes allocated)

Usakoi84 (talkcontribs)

It does the debug message above three times when I load TemplateːInfobox. Not sure if this helps in solving?

Usakoi84 (talkcontribs)

I've noticed the difference between my SpecialːVersion and Wikipedia's is that it doesn't show Lua or LuaSandbox. I was under the impression that Lua came with Scribunto, but this may not be the case? Am I correct?? Do I need LuaSandbox?

Usakoi84 (talkcontribs)

SOLVEDǃǃ

  1. Make your php.ini file recursive.
  2. Edit the php.ini file and increase memory̠limit to 768.
  3. Go to your MediaWiki LocalSettings and doː
    1. $wgScribuntoEngineConf['luastandalone']['memoryLimit'] = 805306368;
    2. $wgMaxShellTime = 0;
    3. $wgMaxShellFileSize = 805306368;

This worked for me. Thanks for all the helpǃǃ

Reply to "2 Lua Errors"