WWBN / AVideo-Encoder

Encoder Server for AVideo Platform Open-Source
https://platform.avideo.com
GNU Affero General Public License v3.0
152 stars 189 forks source link

upload error #75

Open joew-ck opened 6 years ago

joew-ck commented 6 years ago

Array ( [upl] => Array ( [name] => MOE TVC Clip#1 05Sept17.avi [type] => [tmp_name] => [error] => 1 [size] => 0 ) )

I have a youphptube site hosted on my server with its own youphptube-encoder when i try to upload a file in the youphptube-encoder i get the above error in any type of format mp4, avi, webm...etc Ive even tried to use the single upload mp4 feature on the youphptube and it just goes through without any errors displaying but the video doesnt show in the Video Manager

Ive checked the log files and it only displays:

[23-Jul-2018 08:16:26 Pacific/Honolulu] Start Login Request [23-Jul-2018 08:24:25 Pacific/Honolulu] Start Login Request [23-Jul-2018 08:31:40 Pacific/Honolulu] Start Login Request [23-Jul-2018 09:19:53 Pacific/Honolulu] Start Login Request [23-Jul-2018 09:23:28 Pacific/Honolulu] Start Login Request

Nothing relevant to the video upload

My max upload & max-filesize for php.ini is both 2GB

Is there anything i have missed out?

DanielnetoDotCom commented 6 years ago

Delete your streamer and Encoder log file, try to upload again, and share the full log file here

joew-ck commented 6 years ago

ok

youphptube.log from the encoder site has only one line after deleting

[23-Jul-2018 11:01:08 Pacific/Honolulu] http://cktube.education.gov.ck/ == http://cktube.education.gov.ck/

youphptube.log from the mainsite has the following 2 lines

[23-Jul-2018 11:00:47 Pacific/Honolulu] Start Login Request [23-Jul-2018 11:01:08 Pacific/Honolulu] Start Login Request

DanielnetoDotCom commented 6 years ago

check this https://github.com/DanielnetoDotCom/YouPHPTube/issues/888

DanielnetoDotCom commented 6 years ago

Also, check your apache log file and javascript errors

joew-ck commented 6 years ago

i checked the apache log and have this error [Tue Jul 24 09:12:33.683479 2018] [:error] [pid 17404] [client 10.50.1.29:57232] PHP Fatal error: require_once(): Failed opening required '/var/www/html/mysite/encoder/view/../videos/configuration.php' (include_path='.:/usr/share/php') in /var/www/html/mysite/encoder/view/index.php on line 18

if i open line 18 on ../view/index.php it refers to the path of the configuration file in videos/configuration.php

this is what i have in the videos/configuration.php file

<?php $global['webSiteRootURL'] = 'http://mytube.mywebsite.domain/encoder/'; $global['systemRootPath'] = '/var/www/html/mywebsite/encoder/';

$global['disableConfigurations'] = false; $global['disableBulkEncode'] = false;

$mysqlHost = 'localhost'; $mysqlUser = 'sqluser'; $mysqlPass = 'sqlpassword'; $mysqlDatabase = 'sqldatabase';

$global['allowed'] = array('mp4', 'avi', 'mov', 'mkv', 'flv', 'mp3', 'wav', 'm4v', 'webm', 'wmv', 'mpg', 'mpeg'); /**

require_once $global['systemRootPath'].'objects/include_config.php';

joew-ck commented 6 years ago
<?php
$global['webSiteRootURL'] = 'http://mytube.domain/encoder/';
$global['systemRootPath'] = '/var/www/html/mytube/encoder/';

$global['disableConfigurations'] = false;
$global['disableBulkEncode'] = false;

$mysqlHost = 'localhost';
$mysqlUser = 'sqluser';
$mysqlPass = 'sqlpassword';
$mysqlDatabase = 'sqldatabase';

$global['allowed'] = array('mp4', 'avi', 'mov', 'mkv', 'flv', 'mp3', 'wav', 'm4v', 'webm', 'wmv', 'mpg', 'mpeg');
/**
 * Do NOT change from here
 */

require_once $global['systemRootPath'].'objects/include_config.php';
DanielnetoDotCom commented 6 years ago

looks like file permission issue