AVideo-Encoder icon indicating copy to clipboard operation
AVideo-Encoder copied to clipboard

Installation error

Open gbrn opened this issue 2 years ago • 13 comments

@DanielnetoDotCom

I can't get past this "Processing..." bar, it doesn't show any error. How can I know what's going on? image

gbrn avatar Jun 04 '22 07:06 gbrn

Please check Apache error log

DanielnetoDotCom avatar Jun 04 '22 15:06 DanielnetoDotCom

[Sat Jun 04 15:21:56.045878 2022] [mpm_prefork:notice] [pid 27741] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sat Jun 04 15:21:56.045952 2022] [core:notice] [pid 27741] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jun 04 15:22:00.528196 2022] [php7:warn] [pid 27746] [client 177.149.157.189:52656] PHP Warning:  require_once(/var/www/html/AVideo-Encoder/view/../videos/configuration.php): failed to open stream: No such file or directory in /var/www/html/AVideo-Encoder/view/index.php on line 18
[Sat Jun 04 15:22:00.528253 2022] [php7:error] [pid 27746] [client 177.149.157.189:52656] PHP Fatal error:  require_once(): Failed opening required '/var/www/html/AVideo-Encoder/view/../videos/configuration.php' (include_path='.:/usr/share/php') in /var/www/html/AVideo-Encoder/view/index.php on line 18
[Sat Jun 04 15:22:00.712728 2022] [php7:warn] [pid 27746] [client 177.149.157.189:52656] PHP Warning:  mkdir(): Permission denied in /var/www/html/AVideo-Encoder/objects/functions.php on line 275
[Sat Jun 04 15:22:04.555679 2022] [php7:warn] [pid 27749] [client 207.241.232.90:56666] PHP Warning:  mkdir(): Permission denied in /var/www/html/AVideo-Encoder/objects/functions.php on line 275
[Sat Jun 04 16:01:01.076662 2022] [mpm_prefork:notice] [pid 27741] AH00169: caught SIGTERM, shutting down
[Sat Jun 04 16:01:01.215115 2022] [mpm_prefork:notice] [pid 27978] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sat Jun 04 16:01:01.215188 2022] [core:notice] [pid 27978] AH00094: Command line: '/usr/sbin/apache2'

gbrn avatar Jun 04 '22 16:06 gbrn

@DanielnetoDotCom I have already done and redone all the steps of the wiki and videos for installation. I have mounted and unmounted the server and the problem is always the same. I'm using AWS. An attempt to get a solution from the public encoder, because I'm not able to use it due to current problems.

gbrn avatar Jun 04 '22 17:06 gbrn

seems to me you are missing some permisisons

try this

mkdir /var/www/html/AVideo-Encoder/videos

chmod -R 777 /var/www/html/AVideo-Encoder/videos

make sure the database is not created on the MySQL and let the script installer create it

DanielnetoDotCom avatar Jun 06 '22 13:06 DanielnetoDotCom

Yes, I run the permissions on the initial install.

But about the MySQL database, there's a detail, I'm using a database from another server, outside of AWS. But I'm letting the script create everything, I just indicate the URL, database name, username, password.

Do you think this works?

Have you ever tested an installation on AWS?

gbrn avatar Jun 06 '22 15:06 gbrn

But about the MySQL database, there's a detail, I'm using a database from another server, outside of AWS. But I'm letting the script create everything, I just indicate the URL, database name, username, password.

Try to modify the script to point to the remote database

Have you ever tested an installation on AWS?

Yes, I did install encoders on AWS many times

DanielnetoDotCom avatar Jun 06 '22 15:06 DanielnetoDotCom

As for modifying the Script, you say after running the installer? Why can't I find the files created on installation. Apparently it doesn't quite create the files.

gbrn avatar Jun 06 '22 17:06 gbrn

Sorry, forget about modifying, I got confused on the issue.

you should be able to install using a separate server for the database.

DanielnetoDotCom avatar Jun 06 '22 17:06 DanielnetoDotCom

@DanielnetoDotCom Doing a search in Issues, I saw that these errors are recurrent.

I'm using Ubuntu 18... I'll try with Ubuntu 20.

Could you tell me why these specific errors happen?

PHP Warning: require_once(/var/www/html/AVideo-Encoder/view/../videos/configuration.php): failed to open stream: No such file or directory in /var/www/html/AVideo-Encoder/view/index.php on line 18

PHP Fatal error: require_once(): Failed opening required '/var/www/html/AVideo-Encoder/view/../videos/configuration.php' (include_path='.:/usr/share/php') in /var/www/html/AVideo-Encoder/view/index.php on line 18

PHP Warning: mkdir(): Permission denied in /var/www/html/AVideo-Encoder/objects/functions.php on line 275

gbrn avatar Jun 06 '22 20:06 gbrn

That is why I wrote you this

https://github.com/WWBN/AVideo-Encoder/issues/438#issuecomment-1147439172

DanielnetoDotCom avatar Jun 06 '22 20:06 DanielnetoDotCom

Now using a new Ubuntu 20 server... same error...

I executed all the permissions given, configured Apache as requested:

/var/www/html/AVideo-Encoder$ ls -l
total 96
-rwxrwxrwx 1 root     root        23 Jun  6 20:44 CNAME
-rwxrwxrwx 1 root     root      2964 Jun  6 20:44 Dockerfile
-rwxrwxrwx 1 root     root     34520 Jun  6 20:44 LICENSE
-rwxrwxrwx 1 root     root      8580 Jun  6 20:44 README.md
-rwxrwxrwx 1 root     root        26 Jun  6 20:44 _config.yml
drwxrwxrwx 3 root     root      4096 Jun  6 20:44 deploy
-rwxrwxrwx 1 root     root      3797 Jun  6 20:44 index.php
drwxrwxrwx 2 root     root      4096 Jun  6 20:44 install
drwxrwxrwx 2 root     root      4096 Jun  6 20:44 model
drwxrwxrwx 2 root     root      4096 Jun  6 20:44 nbproject
drwxrwxrwx 2 root     root      4096 Jun  6 20:44 objects
drwxrwxrwx 2 root     root      4096 Jun  6 20:44 update
drwxrwxrwx 2 www-data www-data  4096 Jun  6 20:51 videos
drwxrwxrwx 8 root     root      4096 Jun  6 20:44 view

Can you help me to verify if these permissions are enough for the system?

PHP Warning: require_once(/var/www/html/AVideo-Encoder/view/../videos/configuration.php): failed to open stream: No such file or directory in /var/www/html/AVideo-Encoder/view/index.php on line 18

PHP Fatal error: require_once(): Failed opening required '/var/www/html/AVideo-Encoder/view/../videos/configuration.php' (include_path='.:/usr/share/php') in /var/www/html/AVideo-Encoder/view/index.php on line 18

PHP Warning: mkdir(): Permission denied in /var/www/html/AVideo-Encoder/objects/functions.php on line 275

gbrn avatar Jun 06 '22 22:06 gbrn

the permission seems to be correct. so I am not sure what is failing

check the videos/cofiguration.php file permission.

DanielnetoDotCom avatar Jun 07 '22 14:06 DanielnetoDotCom

I have the same Issue but what i have seen is following Message in the console from Web Browser:

Access to XMLHttpRequest at 'https://tv.xxx.de/login' from origin 'https://encoder.xxx.de' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'https://encoder.xxx.de, *', but only one is allowed.

LightRO avatar Oct 01 '22 09:10 LightRO