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

Can't install Encoder #507

Closed guymass closed 1 year ago

guymass commented 1 year ago

I am trying to install a new encoder and I get errors regarding files which are not in my directory after I git cloned the encoder.

There was a bootstrap.js error about a wrong path pointing to ./view/js/ insted of /node_modules/dist/js/ This one i fixed manually. However there is a file named sweetalert.js and main.js which the server doesn't find. Please check the git package again to make sure all files that are required are there.

Here are screen shots: Screen Shot 5783-08-02 at 12 55 08 Screen Shot 5783-08-02 at 14 05 20

guymass commented 1 year ago

can't seem to install it I will see if I can copy from my other server which is a working older installation and see if that works.

DanielnetoDotCom commented 1 year ago

please check your apache log

guymass commented 1 year ago

it doesn't records anything. This server is behind a proxy but the installation works after I fixed all the errors and place all the missing files, but still after a successful installation I got the message indicating there is not permission on /var/www in the apache.conf file which there was. I already have one encoder running in this manner you can check https://encoder3.alive528.com, but now I want to install another encoder and I get all sorts of errors which are strange.

guymass commented 1 year ago

OK after installation I needed to upgrade my encoder I git pulled and wanted to update, it seems the update went fine and I got OK but when I refresh I gives me this error and puts me back on previous version: Screen Shot 5783-08-04 at 19 28 19

guymass commented 1 year ago

Screen Shot 5783-08-04 at 19 41 03 Screen Shot 5783-08-04 at 19 40 45

I think the database.sql file on the repository is old or outdated. I cannot upgrade my new encoder for some reason.

I am trying manually with this:

mysql encoder4 < updateDb.v4.0.sql -uencoder -p

guymass commented 1 year ago

I have all these updates, do I need to install them all? Screen Shot 5783-08-04 at 19 51 16

guymass commented 1 year ago

I run all installations and still it shows me I have 17 updates. How to fix this? Screen Shot 5783-08-04 at 19 40 45

Screen Shot 5783-08-04 at 20 17 51

guymass commented 1 year ago

Even after importing all databases with:

!/bin/bash

for file in updateDb*.sql; do echo "Importing $file" mysql -uencoder -ppassword encoder4 < "$file" done

Still it doesn't go away. This is by far the most strangest encoder install I had, usually it take me 10m to setup.

DanielnetoDotCom commented 1 year ago

because you have so many updates, I guess the best for you is to delete encoder/videos/configuration.php and database and make a clean encoder installation

guymass commented 1 year ago

I installed it already 3 times and every time I set a new database. So either the database installation is faulty or some other issue.

guymass commented 1 year ago

Are all those SQL update files required to be in the updates directory in the repository? Screen Shot 5783-08-11 at 1 54 00

After installing yet again, only after I move all SQL files out of the updates directory do the updates message stop. I cannot install any update, I can only import them one by one, if its actually needed.

I would prefer having a complete single SQL file to install and after installing database.sql none of the updated work unless I imports them manually. So I cannot update and the version of the encoder is not displayed anymore.

Screen Shot 5783-08-11 at 2 18 51

And Finally, because I cannot updated properly the admin of this section is closed for me:

Screen Shot 5783-08-11 at 2 23 13

guymass commented 1 year ago

Also I cannot save any of the allowed streamer sites at all. is there any way to get a complete V4 SQL databases so I will just import it completely without any updates?

DanielnetoDotCom commented 1 year ago

check your error logs

guymass commented 1 year ago

I did, there is nothing indicating any error, not in apache, mysql or any other. Its just something either about the database itself. Other wise why would it not install all the updates? something is missing either in the main database.sql or with the other files. For now the encoder is working so i dont mind as much. I will try maybe to import a database from another encoder and see hot it works.

DanielnetoDotCom commented 1 year ago

you can import the SQL files manually to create your database.

guymass commented 1 year ago

That is what I did but that also give errors depending on which file I am importing, and BTW do I need to import all of them in order by version number?

DanielnetoDotCom commented 1 year ago

no, the default database.sql is the latest, and no update is required.

guymass commented 1 year ago

then why all those updates are inside the updates/ folder waiting to be installed? any it could be maybe a problem with the installation of the server itself, maybe some other bug. I will close this for now.

DanielnetoDotCom commented 1 year ago

updates are only you have an old encoder and you want to migrate to the new one after the git pull

if it is a brand new install you do not need them