I'm trying to get Scribunto working and keep receiving this error when trying to use Modules:
Script error: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted.
Does this mean that proc_open is restricted on my server?
Thanks Bill
So I tried to go the luasandbox route in hopes that it would solve my problem. Followed the installation instructions which appeared to succeed, but am receiving this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/luasandbox.so' - /usr/lib64/php/modules/luasandbox.so: undefined symbol: isfinite in Unknown on line 0
I compiled luasandbox on the server with gcc 4.1.2. Am I missing a library that provides isfinite perhaps?
On Fri, May 9, 2014 at 6:05 PM, Bill Traynor btraynor@gmail.com wrote:
I'm trying to get Scribunto working and keep receiving this error when trying to use Modules:
Script error: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted.
Does this mean that proc_open is restricted on my server?
Thanks Bill
On 11/05/14 23:27, Bill Traynor wrote:
So I tried to go the luasandbox route in hopes that it would solve my problem. Followed the installation instructions which appeared to succeed, but am receiving this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/luasandbox.so' - /usr/lib64/php/modules/luasandbox.so: undefined symbol: isfinite in Unknown on line 0
I compiled luasandbox on the server with gcc 4.1.2. Am I missing a library that provides isfinite perhaps?
isfinite() is meant to be a macro defined by math.h, so if it is treated as a symbol rather than a macro, then maybe something was wrong with your math.h at compile time.
On Fri, May 9, 2014 at 6:05 PM, Bill Traynor btraynor@gmail.com wrote:
I'm trying to get Scribunto working and keep receiving this error when trying to use Modules:
Script error: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted.
Does this mean that proc_open is restricted on my server?
No, it means /dev/null is not writable (or possibly not readable).
-- Tim Starling
On Sun, May 11, 2014 at 6:31 PM, Tim Starling tstarling@wikimedia.org wrote:
On 11/05/14 23:27, Bill Traynor wrote:
So I tried to go the luasandbox route in hopes that it would solve my problem. Followed the installation instructions which appeared to succeed, but am receiving this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/luasandbox.so' - /usr/lib64/php/modules/luasandbox.so: undefined symbol: isfinite in Unknown on line 0
I compiled luasandbox on the server with gcc 4.1.2. Am I missing a library that provides isfinite perhaps?
isfinite() is meant to be a macro defined by math.h, so if it is treated as a symbol rather than a macro, then maybe something was wrong with your math.h at compile time.
I suspect an issue with the old RHEL5.6 version of gcc. Anyway, trying to move gcc forward in hopes it'll fix the issue.
On Fri, May 9, 2014 at 6:05 PM, Bill Traynor btraynor@gmail.com wrote:
I'm trying to get Scribunto working and keep receiving this error when trying to use Modules:
Script error: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted.
Does this mean that proc_open is restricted on my server?
No, it means /dev/null is not writable (or possibly not readable).
Looks right to me:
ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Mar 4 01:12 /dev/null
-- Tim Starling
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 12/05/14 09:26, Bill Traynor wrote:
On Fri, May 9, 2014 at 6:05 PM, Bill Traynor btraynor@gmail.com wrote:
I'm trying to get Scribunto working and keep receiving this error when trying to use Modules:
Script error: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted.
Does this mean that proc_open is restricted on my server?
No, it means /dev/null is not writable (or possibly not readable).
Looks right to me:
ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Mar 4 01:12 /dev/null
You could confirm it in strace, it will show you the exact open() call that failed. RHEL normally has SELinux enabled, doesn't it?
-- Tim Starling
Just to close the loop on this. I had to get the admin at the webhost to recompile the luasandbox code using a newer toolchain. They created a VM with a newer toolchain but the same version of PHP and rebuit luasandbox. Here's the steps:
# phpize Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525
# php -na Interactive shell
php > dl('luasandbox.so'); php > $extensions = get_loaded_extensions(); php > var_dump($extensions[29]); string(10) "luasandbox"
The VM was running CentOS release 6.5 (Final)
# php --version PHP 5.4.28 (cli) (built: May 2 2014 12:58:36)
# gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
When I then added the luasandbox line to LocalSettings.php, the Lua modules started working.
On Sun, May 11, 2014 at 9:03 PM, Tim Starling tstarling@wikimedia.org wrote:
On 12/05/14 09:26, Bill Traynor wrote:
On Fri, May 9, 2014 at 6:05 PM, Bill Traynor btraynor@gmail.com wrote:
I'm trying to get Scribunto working and keep receiving this error when trying to use Modules:
Script error: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted.
Does this mean that proc_open is restricted on my server?
No, it means /dev/null is not writable (or possibly not readable).
Looks right to me:
ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Mar 4 01:12 /dev/null
You could confirm it in strace, it will show you the exact open() call that failed. RHEL normally has SELinux enabled, doesn't it?
-- Tim Starling
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org