Forums
Hello,
I am using a Micro AWS Linux box
Linux ip-172-31-8-3 3.4.68-59.97.amzn1.x86_64 #1 SMP Tue Nov 5 07:40:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
I am having trouble with the VIDEO module which logs this error and now seems to recurse
but at the beginning it was failing to "Fork" within exec php instruction.
-- log --
php 01/03/2014 - 15:36 Warning : fopen(/tmp/_temp_1388759766-52c6cad601f1d... admin
php 01/03/2014 - 15:36 Warning : exec(): Unable to fork [/usr/bin/ffmpeg -h ... admin
php 01/03/2014 - 15:36 Warning : exec(): Unable to fork [/usr/bin/ffmpeg -h... admin
php 01/03/2014 - 15:36 Warning : exec(): Unable to fork [/usr/bin/ffmpeg ... admin
php 01/03/2014 - 15:36 Warning : exec(): Unable to fork [/usr/bin/ffmpeg ... admin
php 01/03/2014 - 15:36 Warning : fopen(/tmp/_temp_1388759765-52c6cad5eba19... admin
php 01/03/2014 - 15:36 Warning : exec(): Unable to fork [/usr/bin/ffmpeg ... admin
php 01/03/2014 - 15:36 Warning : exec(): Unable to fork [/usr/bin/ffmpeg ... admin
php 01/03/2014 - 15:36 Warning : fopen(/tmp/_temp_1388759765-52c6cad5e5275... admin
php 01/03/2014 - 15:36 Warning : exec(): Unable to fork [/usr/bin/ffmpeg ... admin
php 01/03/2014 - 15:36 Warning : exec(): Unable to fork [/usr/bin/ffmpeg ... admin
I have checked into php.ini and the SAFE_MODE is OFF, so exec should be allowed even outside apache directories
also /tmp is 777.
btw, i can run the following command within a sample .php file
Warning : exec(): Unable to fork [/usr/bin/ffmpeg -protocols 2>&1] dans PHPVideoToolkit->_captureExecBuffer() (ligne 532 dans /var/www/html/sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).
Warning : fopen(/tmp/_temp_1388759766-52c6cad601f1d.txt): failed to open stream: No such file or directory dans PHPVideoToolkit->_captureExecBuffer() (ligne 538 dans /var/www/html/sites/all/modules/video/libraries/phpvideotoolkit/phpvideotoolkit.php5.php).
see code mention by log :
private function _captureExecBuffer($command) { $buffer = array(); $err = 0; exec($command . ' 2>&1', $buffer, $err); // line 532
if ($err !== 127) { if (isset($buffer[0]) === FALSE) { $tmp_file = $this->_tmp_directory . '_temp_' . uniqid(time() . '-') . '.txt'; exec($command . ' &>' . $tmp_file, $buffer, $err); if ($handle = fopen($tmp_file, 'r')) { // line 538 $buffer = array(); while (!feof($handle)) { array_push($buffer, fgets($handle, 4096)); } fclose($handle); } @unlink($tmp_file); }
}
I wonder if it's a memory issue or some kind of restrictions left somewhere??
Many thanks in advance
Laurent.
Hi Laurent PRAT,
Fails at init
In reply to Fails at init by Laurent PRAT
me the same
Can you please go to admin
My temporary is /TMP, and it
In reply to Can you please go to admin by James Aparicio
/tmp is 777
Hi Laurent
In reply to Hi Laurent by James Aparicio
Log output requested
If you go to admin/config
still no trace of upload button
Can you post your browser
Console output : None
So after you created the
Uninstalling modules and