Topic on Project:Support desk

[RESOLVED] Infobox problems

13
Ig1234 (talkcontribs)

Hey,

I've been trying all sorts of things but still can't get the infobox template the work.

I've copied all the information to Common.css, I've imported all the correct templates from Wikipedia (including changing all incidents of ‘text/plain’ with ‘CONTENT_FORMAT_TEXT’), I've installed Parserfunctions, then, after upgrading to 1.22, Scribunto, but I'm still getting a big red "Script Error" - when clicked "Lua error: Internal error: The interpreter exited with status 2."

See - http://attwiki.org/Infoboxtest

What exactly have I missed, or what has gone wrong?

Thanks!

MarkAHershberger (talkcontribs)

Do you have command line access to the server? If you do, then what happens when you execute the lua binary in the Scribunto directory?

Otherwise, check the permissions on the lua binary. They need to be set to 755 or +x.

Finally, try the debug log. If you add

 $wgScribuntoEngineConf['luastandalone']['errorFile'] = "$IP/images/temp/lua.log";

to your LocalSettings.php, does anything show up in the file? If so, what is the last bit?

Ig1234 (talkcontribs)

Thanks Mark.

Sorry I only just noticed your reply, I'll look at what you said when I get back from work tomorrow and see what happens.

Ig1234 (talkcontribs)

Hey,

You'll have to forgive my ignorance.

I can probably get command line access (I'm using Dreamhost) but I fear my ignorance will mess things up in trying to use Putty etc. so I may have to ignore that.

I remember changing the permissions on the lua binary before. I've changed them for everything within the standalone binaries folder but it doesn't appear to make a difference.

Again... ignorance - how do I access the debug log from that line in LocalSettings.php?

Ig1234 (talkcontribs)

...bump.

88.130.119.179 (talkcontribs)
Ig1234 (talkcontribs)

I'm an idiot. Thanks.

This is the output of the debug log:

/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: ../bash/parse.y:2228: cannot allocate 512 bytes (49152 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: ../bash/parse.y:2228: cannot allocate 512 bytes (49152 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xmalloc: ../bash/subst.c:7606: cannot allocate 112 bytes (45056 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: ../bash/print_cmd.c:1498: cannot allocate 256 bytes (53248 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xmalloc: ../bash/subst.c:3503: cannot allocate 519 bytes (49152 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: ../bash/print_cmd.c:1498: cannot allocate 256 bytes (53248 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xmalloc: ../bash/subst.c:3503: cannot allocate 519 bytes (45056 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xmalloc: ../bash/subst.c:3503: cannot allocate 519 bytes (45056 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xmalloc: ../bash/subst.c:3503: cannot allocate 519 bytes (45056 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: ../bash/print_cmd.c:1498: cannot allocate 256 bytes (53248 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: ../bash/parse.y:2228: cannot allocate 512 bytes (49152 bytes allocated)
/home/danlee68/attwiki.org/wiki/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xrealloc: ../bash/print_cmd.c:1498: cannot allocate 256 bytes (49152 bytes allocated)
Ciencia Al Poder (talkcontribs)
Ig1234 (talkcontribs)

I've set it to a higher value, but it doesn't appear to make a difference. Is there a particularly high value that it should be set to?

Ciencia Al Poder (talkcontribs)

What's the size of bytes allocated in the error log now?

I'd try to increase it to 20MB for example, and if the error disappears you can adjust it to a more reasonable level if needed.

109.230.45.242 (talkcontribs)

no value helps. same errors, over and over: /home/bicyclesworkintheworld/bicyclesworkintheworld.com/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: xmalloc: ../bash/subst.c:3503: cannot allocate 663 bytes (45056 bytes allocated)


numbers change with change of bytes in LocalSettings for shellmemory, but otherwise does not work

109.230.45.242 (talkcontribs)
109.230.45.242 (talkcontribs)
   $wgScribuntoEngineConf['luastandalone']['memoryLimit'] = 805306368;
   $wgMaxShellTime = 0;
   $wgMaxShellFileSize = 805306368;
Reply to "[RESOLVED] Infobox problems"