WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.86k stars 966 forks source link

Error 502 Bad Gateway #8623

Open michelefaccini opened 7 months ago

michelefaccini commented 7 months ago

Only the index page is found but with no css all the other file are simply not found even if they are in the right place I suspect this is a .htaccess issue on my Synology NAS. The installation didn't give me any fault. Please,I need help on how to eventually tweak the .htaccess file

Warning: Undefined array key "systemRootPath" in /volume1/web/sito2/music videos/locale/function.php on line 206 Warning: Undefined array key "systemRootPath" in /volume1/web/sito2/music videos/locale/function.php on line 215 Warning: Undefined array key "systemRootPath" in /volume1/web/sito2/music videos/locale/function.php on line 223

Where can I set systemRootPath ? Pages are not found because the path seems to be empty.

michelefaccini commented 7 months ago

I fixed the problem setting the systemRootPath as the line below in the configuration.php file.

$global['systemRootPath']= dirname(___DIR___,2).'/AVideo-master/';

Now I have a Bad Gateway 502 error if I try to sign in. The sign up runs well because the new user is added to the database.

Is it possibly something related to the .htaccess file ?

michelefaccini commented 7 months ago

errore AVideo

michelefaccini commented 7 months ago

errore AVideo_2

michelefaccini commented 7 months ago

I don't understand because the .htaccess file is set to permit cross origin

# Set Access-Control-Allow-Origin for multiple file types
<FilesMatch "\.(php|ico|pdf|flv|jpg|jpeg|png|gif|swf|ts|webp|mp3|mp4|woff2|css|html|htm|key|m3u8)$">
    Header set Access-Control-Allow-Origin "*"
</FilesMatch>
michelefaccini commented 7 months ago

The log file 👍 errore AVideo_3

michelefaccini commented 7 months ago

Nobody out there ?

DanielnetoDotCom commented 7 months ago

This is an error regarding your custom configuration nas and proxy

I must be able to reproduce to be able to help

michelefaccini commented 7 months ago

Hi Daniel, I'm looking forward to use your amazing script. I'm afraid to mess up my Synology NAS because I'm not at all an expert. I have never configured a proxy on my NAS neither I do know how that works.... I will google a little bit. Thanks for the tip.

michelefaccini commented 7 months ago

Can a redirect upon an existing redirect generate a bad gateway error ?. Is it an infinite loop ?

Il Gio 16 Nov 2023, 11:23 Daniel Neto @.***> ha scritto:

This is an error regarding your custom configuration nas and proxy

I must be able to reproduce to be able to help

— Reply to this email directly, view it on GitHub https://github.com/WWBN/AVideo/issues/8623#issuecomment-1814164543, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASNFPGT6NJAX4VU3QVT2TB3YEXSSTAVCNFSM6AAAAAA7IUYPMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGE3DINJUGM . You are receiving this because you modified the open/close state.Message ID: @.***>

DanielnetoDotCom commented 7 months ago

As another tip

if is error 500 it may be an AVideo code error or may be related to the NAS configuration if is error 502 or 503 it is your proxy configuration

michelefaccini commented 7 months ago

It is a 502 error.I do not have a proxy server. I don't know how to solve... Is it possible to open a ticket and pay for the service ?

DanielnetoDotCom commented 7 months ago
  1. Comprehensive Installation Services: Please note that I do not provide partial installation services. To ensure the highest quality and efficiency, my services encompass a full installation procedure.

  2. Hourly Consultation Option: If you prefer a more flexible approach, I offer my services on an hourly basis. However, I must inform you that in such cases, I cannot guarantee the successful completion of the installation within a specific time frame. This is due to the variable nature of technical challenges that might arise during the process.

  3. Recommended Approach - Clean Installation: In my professional opinion, the most effective and reliable method to install AVideo is through a clean installation. This would require:

    • A fresh installation of Ubuntu, free from any pre-existing control panels, Apache, or MySQL installations.
    • If you intend to use your NAS with AVideo, it is crucial to ensure that the NAS drive is properly mounted and configured before the installation.
  4. Basic Installation Service: Once the above prerequisites are met, you can engage my services for a basic installation of AVideo. This approach significantly increases the likelihood of a seamless and successful installation, providing you with a robust and properly functioning AVideo setup.

michelefaccini commented 7 months ago

errore AVideo_4

michelefaccini commented 7 months ago

At login form, nothing is sent ? Or because there are no credentials with the XMLHttpRequest ?

, Qt = ce.ajaxSettings.xhr(); le.cors = !!Qt && "withCredentials"in Qt,

michelefaccini commented 7 months ago

The server (that the POST request is sent to) needs to include the Access-Control-Allow-Headers header (etc) in its response. Putting them in your request from the client has no effect. You should remove the 'Access-Control-Allow-...' headers from your POST request.

This is because it is up to the server to specify that it accepts cross-origin requests (and that it permits the Content-Type request header, and so on) – the client cannot decide for itself that a given server should allow CORS.

The requestor (web browser) may 'preflight' test what the server's Same Origin Policy is by sending an 'OPTIONS' request (ie not the 'POST' or 'GET' request you intend). If the response to the 'OPTIONS' request contains 'Access-Control-Allow-...' headers that permit the headers, origin, or methods your request is using, then the requester/browser will send your 'POST' or 'GET' request.

michelefaccini commented 7 months ago

For cross-domain requests, setting the content type to anything other than application/x-www-form-urlencoded, multipart/form-data, or text/plain will trigger the browser to send a preflight OPTIONS request to the server.

michelefaccini commented 7 months ago

I managed to fix the error modifying the function allowOrigin()

DanielnetoDotCom commented 7 months ago

what did you change in the allowOrigin()?