Re: Solution for the Scribunto MediaWiki Lua segmentation fault - "Lua error: Internal error: The interpreter exited with status 139".

2015-10-22 Thread Troels Emtekær Linnet
Hi Edward.

Brilliant work with the interpreter!

That must surely have been painful...

It is very problematic to test on the server, and it takes much more time!

To get server info:

Have you tried:
wiki.nmr-relax.com/phpinfo.php

The server is hosted at Gigahost.dk
https://gigahost.dk/features/specifications

Does this help you?

Or else I can write to them and ask.

Best
Troels


2015-10-21 20:07 GMT+02:00 Edward d'Auvergne :

> Hi Troels,
>
> I was wondering if you had some information about the operating system
> that the relax wiki server uses?  I am seeing a few of these errors
> with the new {{Infobox relax release}} templates:
>
> Lua error: Internal error: The interpreter exited with status 137.
>
> For example at:
>
> http://wiki.nmr-relax.com/Relax_3.1.7
> http://wiki.nmr-relax.com/Relax_4.0.0
>
> If there is no error, just jump between versions until the error
> appears.  The error is in the docs themselves (
> http://wiki.nmr-relax.com/Template:Infobox/doc ).  With some detailed
> OS info, I might be able to find a closer matching lua binary file to
> run with less errors on the server.
>
> Cheers,
>
> Edward
>
>
> On 21 October 2015 at 15:27, Edward d'Auvergne 
> wrote:
> > Hi,
> >
> > I have finally found a solution for the error:
> >
> > Lua error: Internal error: The interpreter exited with status 139.
> > No further details are available.
> >
> > Or when looking at the 'lua-error.log' file:
> >
> > Segmentation fault
> >
> > This was painful!  It doesn't help that there is no solution written
> > anywhere on the entire internet about this - just a few posts
> > reporting the problem but with no solutions.
> >
> > The problem is that the Lua binary file distributed with Scribunto
> > will not run on all Linux operating systems behind the server.
> > Instead a different Lua binary file is required.  For the current
> > relax wiki server behind http://wiki.nmr-relax.com , I downloaded the
> > lua-5.1.5_Linux26g4_64_bin.tar.gz file from
> >
> https://sourceforge.net/projects/luabinaries/files/5.1.5/Tools%20Executables/
> > (or https://sourceforge.net/projects/luabinaries/files/ ).  I then
> > unpacked the archive, uploaded the files to the server directory
> >
> extensions/Scribunto/engines/LuaStandalone/binaries/lua-5.1.5_Linux32_64_bin/,
> > and added these line to the LocalSettings.php file:
> >
> > # MediaWiki Extension:Scribunto
> > require_once "$IP/extensions/Scribunto/Scribunto.php";
> > $wgScribuntoDefaultEngine = 'luastandalone';
> > # Lua debugging time!
> > $wgShowExceptionDetails = true;
> > $wgScribuntoEngineConf['luastandalone']['errorFile'] =
> "$IP/lua-error.log";
> > $wgScribuntoEngineConf['luastandalone']['luaPath'] =
> >
> "$IP/extensions/Scribunto/engines/LuaStandalone/binaries/lua-5.1.5_Linux26g4_64_bin/lua5.1";
> >
> > Testing different Lua binary files, I was seeing:
> >
> > Lua error: Internal error: The interpreter exited with status 1.
> > Lua error: Internal error: The interpreter exited with status 2.
> > Lua error: Internal error: The interpreter exited with status 127.
> > Lua error: Internal error: The interpreter exited with status 137.
> >
> > The log messages are all below, to help people find this post and
> > solution.  In the end, the lua-5.1.5_Linux32_64_bin version worked,
> > and the test page shows that Scribunto is finally working:
> >
> > http://wiki.nmr-relax.com/Temp_lua_testing_page
> >
> > Regards,
> >
> > Edward
> >
> >
> > P. S. Here are a tonne of other Lua errors using different 5.1.4 and
> > 5.1.5 versions from
> > https://sourceforge.net/projects/luabinaries/files/ which are included
> > here to help someone web searching this to find a solution.  This
> > problem is very poorly documented!  The contents of the
> > 'lua-error.log' file from the testing is:
> >
> > Segmentation fault
> > Segmentation fault
> > Segmentation fault
> > Segmentation fault
> > Segmentation fault
> > Segmentation fault
> > Segmentation fault
> > Segmentation fault
> > exec: 1: /usr/bin/lua: not found
> > exec: 1: /usr/bin/lua: not found
> > exec: 1: /bin/lua: not found
> > exec: 1: /bin/lua: not found
> > exec: 1: /home/www/
> wiki.nmr-relax.com/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua
> :
> > Permission denied
> > exec: 1: /home/www/
> wiki.nmr-relax.com/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua
> :
> > Permission denied
> > exec: 1: /home/www/
> wiki.nmr-relax.com/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua
> :
> > Permission denied
> > exec: 1: /home/www/
> wiki.nmr-relax.com/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua
> :
> > Permission denied
> > Segmentation fault
> > Segmentation fault
> > /home/www/
> wiki.nmr-relax.com/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua5.2
> :
> > 

Wiki update - we now have collapsible elements, Infoboxes, and MessageBoxes!

2015-10-22 Thread Edward d'Auvergne
Hi all,

We now have 3 new features in the relax wiki!  I have managed to get
these running for relax by first testing them on the FlightGear wiki (
http://wiki.flightgear.org ).  There are other features that also come
with the new MediaWiki version, for example the builtin {{!}} template
for using the '|' character within articles to avoid special MediaWiki
syntax characters.



== Collapsible elements ==

Thanks to the MediaWiki update to 1.25.3 (
http://wiki.nmr-relax.com/Special:Version ), PHP Version 5.6.13 update
( http://wiki.nmr-relax.com/phpinfo.php ), and some hand fixes for the
Wiki JavaScript at http://wiki.nmr-relax.com/MediaWiki:Common.js , we
now have fully functional collapsible elements:

http://wiki.nmr-relax.com/Javascript_testing#NavFrame_test (test page).
http://wiki.nmr-relax.com/Template:Collapsible_script (the
template with examples).

This code is directly from the FlightGear wiki, as I wrote that code:

http://wiki.flightgear.org/Template:Collapsible_script

And here are some examples of the use of the new {{collapsible
script}} template, to de-clutter articles:

http://wiki.nmr-relax.com/Installation_linux#Testing_the_Python_installation

http://wiki.nmr-relax.com/Relax_disp.spin_lock_offset%2Bfield_figure#Script_to_produce_figure
http://wiki.nmr-relax.com/DPL94#Parameter_name_space_in_relax



== Infoboxes ==

We finally have Infoboxes!  These were first mentioned in the post:

[relax-devel] Creation of a relax wiki, by Troels Linnet on 24
June 2013 ( 
http://thread.gmane.org/gmane.science.nmr.relax.devel/4105/focus=4114
).

I have created this {{infobox relax release}} template as an example:

http://wiki.nmr-relax.com/Template:Infobox_relax_release

This is slowly being added to all the relax release articles, for example:

http://wiki.nmr-relax.com/Relax_3.3.0
http://wiki.nmr-relax.com/Relax_4.0.0
http://wiki.nmr-relax.com/Relax_3.3.9
http://wiki.nmr-relax.com/Relax_3.3.8
http://wiki.nmr-relax.com/Relax_3.2.0
http://wiki.nmr-relax.com/Relax_1.3.1

This took a while to get a functional Lua binary running on the
server!  However there is still a problem:  "Lua error: Internal
error: The interpreter exited with status 137."  This happens maybe
once in every three loadings (and almost always on
http://wiki.nmr-relax.com/Template:Infobox_relax_release as the
infobox is used twice in the article).  Logging the errors, I see:

[snip - lots of messages]
RX <== return
TX ==> call
Killed

From this I can only guess that the server that the wiki is running on
is killing the Lua interpreter before it can complete.  I have tried
all the $wgScribuntoEngineConf['luastandalone']['memoryLimit'],
'cpuLimit', and 'profilerPeriod' settings without a change in
behaviour, so this is looking like the server being very MediaWiki
unfriendly.



== MessageBoxes ==

I have taken the idea from the FlightGear wiki:

http://wiki.flightgear.org/Template:Note

And have improved on it with:

http://wiki.nmr-relax.com/Template:MessageBox
http://wiki.nmr-relax.com/Template:MessageBox/doc

See the documentation there for the very useful {{tip}}, {{note}},
{{caution}}, and {{warning}} templates, as well as {{stub}}.  These
will be very useful for conveying important information to the reader.

Regards,

Edward

___
relax (http://www.nmr-relax.com)

This is the relax-devel mailing list
relax-devel@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel


Re: Solution for the Scribunto MediaWiki Lua segmentation fault - "Lua error: Internal error: The interpreter exited with status 139".

2015-10-22 Thread Edward d'Auvergne
On 22 October 2015 at 11:18, Troels Emtekær Linnet
 wrote:
> Hi Edward.
>
> Brilliant work with the interpreter!
>
> That must surely have been painful...
>
> It is very problematic to test on the server, and it takes much more time!
>
> To get server info:
>
> Have you tried:
> wiki.nmr-relax.com/phpinfo.php
>
> The server is hosted at Gigahost.dk
> https://gigahost.dk/features/specifications
>
> Does this help you?
>
> Or else I can write to them and ask.

Hi Troels,

I'm about to send another message explaining all of our new features.
These would probably be quite useful for your other wikis as well,
including for the SBiN Lab.  My additions (those not copied from
MediaWiki or Wikipedia) are GPLv3+ licensed (or GPLv2+ licensed on the
FlightGear wiki), so if you need another licence for copying, just
ask.  I think that the problem is with the Gigahost.dk server setting,
however nothing in the specifications points to a time-out for killing
a process that would be what is almost always seen on
http://wiki.nmr-relax.com/Template:Infobox_relax_release . It
definitely less than 300 s, but that is the PHP kill time, not the
standalone executable kill time (which is not listed).  More details
will be in the next post.

Cheers!

Edward

___
relax (http://www.nmr-relax.com)

This is the relax-devel mailing list
relax-devel@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel