Topic on Project:Support desk

Infobox problem on ARMv5

4
CharlesSpencer (talkcontribs)

I have a Synology RS812 NAS, which runs DSM (a form of Ubuntu I think) via BusyBox v.1.16.1, on a Marvell Kirkwood mv6282 1.6Ghz ARM processor (Marvell ARMADA 300). uname -a reports Linux <Hostname> 2.6.32.12 #5592 armv5tel GNU/Linux synology_88f6282_rs812. I have fully updated the OS, and have installed MediaWiki (and dependencies) from the default Synology repository. I've enabled both Parser Functions and Scribunto extensions. My Special:Version reports as follows:

MediaWiki 1.23.10 PHP 5.5.28 MariaDB 5.5.43 Lua 5.1.5 - so lua's definitely working/correctly installed.

I've added:

require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php"); require_once( "$IP/extensions/Scribunto/Scribunto.php"); $wgScribuntoDefaultEngine = 'luastandalone'; $wgScribuntoEngineConf['luastandalone']['errorFile'] = 'lua error log.txt'; $wgScribuntoEngineConf['luastandalone']['memoryLimit'] = 209715200; # bytes $wgMaxShellMemory = 204800; # in KB

to LocalSettings.php and raised the memory_limit in etc/php/php.ini to 384M

I have exported from Wikipedia/Imported into my local Wiki all the modules and templates I should need for Infoboxes, but all I ever get is a Lua script error where I should have an infobox - always 

'/volume1/web/MediaWiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua: line 1: syntax error: unexpected "("'

in the log file, with a "Lua error: Internal error: The interpreter exited with status 2." pop-up when I click on the red Script error on the page where the infobox should be. Raising the memory_limit in etc/php/php.ini is the supposed canonical cure for that, but it doesn't seem to work for me.

I thought I'd try to upgrade the lua binaries, since 5.1.5 is not cutting edge, but I can't seem to find a repository of arm5vtel lua binaries to do that.

What am I doing wrong? Hope someone can help! My expertise extends to following instructions, but not to cross-compiling lua for armv5 processors at a guess, unless some kind soul is REALLY happy to hold my hand!

Thanks

Charles ~~~~

Ciencia Al Poder (talkcontribs)

This line seems relevant:

'/volume1/web/MediaWiki/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua: line 1: syntax error: unexpected "("'

A debug log may show more information. See Manual:How to debug

193.108.78.10 (talkcontribs)

Hi. Thanks for your reply. The line you cite comes from the debug log. Unfortunately, I am not competent to debug lua, and anyway, my thinking was that it could not fundamentally be lua script syntax-related, since all the scripts have been copied unmodified from Wikipedia where they demonstrably work! Maybe the syntax error demonstrates that I have not correctly copied all the scripts?

62.81.165.199 (talkcontribs)

This SO question seems relevant. Apparently, the lua binary included with Scribunto is not ok with Raspberry Pi, which may be a similar problem with a synology.

Basically, try to install lua from your distribution and set $wgScribuntoEngineConf['luastandalone']['luaPath'] to the path of the lua executable and see if that works.

Reply to "Infobox problem on ARMv5"