WWBN / AVideo-Encoder

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

Encoder says that it couldn't find the streamer site. #45

Open Tomoli75 opened 6 years ago

Tomoli75 commented 6 years ago

fixed

DanielnetoDotCom commented 6 years ago

Check your encoder log file

DanielnetoDotCom commented 6 years ago

Make sure you have this on your php.ini file

allow_url_fopen = On
allow_url_include = On

Also read this https://github.com/DanielnetoDotCom/YouPHPTube-Encoder/issues/40

DanielnetoDotCom commented 6 years ago

must be 5.6+ or later

DanielnetoDotCom commented 6 years ago

If you are using cpanel, you will need to find a way to make sure it is enabled.

allow_url_fopen = On allow_url_include = On

I have seen this many times when you are using CPanel

mikeshoe commented 5 years ago

I'm getting the same error message. I'm deploying the streamer app at http://localhost:8080/ and encoder at http://localhost:8080/encoder/ within the same apache instance on my localhost. I can hit both apps but when I try to login to the encoder site with the value http://localhost:8080/ in the YouPHPTube Streamer Site field, I get the infamous "We could not find your streamer site!". I have both allow_url_fopen & allow_url_include set to On. Here are the encoder logs.

[25-Sep-2018 16:28:58 UTC] http://localhost:8080/ == http://localhost:8080/ [25-Sep-2018 16:28:58 UTC] PHP Warning: file_get_contents(http://localhost:8080/login): failed to open stream: Cannot assign requested address in /var/www/html/encoder/objects/functions.php on line 28 [25-Sep-2018 16:28:58 UTC] PHP Warning: file_get_contents(http://localhost:8080/login): failed to open stream: Cannot assign requested address in /var/www/html/encoder/objects/functions.php on line 43 [25-Sep-2018 16:28:58 UTC] Get Login fail, try again [25-Sep-2018 16:28:58 UTC] PHP Warning: file_get_contents(http://localhost:8080/login): failed to open stream: Cannot assign requested address in /var/www/html/encoder/objects/Login.php on line 40 [25-Sep-2018 16:28:58 UTC] Error on Login context [25-Sep-2018 16:28:58 UTC] http://localhost:8080/login [25-Sep-2018 16:28:58 UTC]

restriato commented 5 years ago

I also have this same error in two different installations, when I try to enter the encoder it gives this message: We could not find your streamer site! I already erased the encoder and installed again and the error continues

DanielnetoDotCom commented 5 years ago

try this https://github.com/DanielnetoDotCom/YouPHPTube-Encoder/issues?utf8=%E2%9C%93&q=We+could+not+find+your+streamer+site

restriato commented 5 years ago

Php.ini already has these settings allow_url_fopen = On allow_url_include = On and I do not use cpanel

The strange thing is that until yesterday was working .. did not change anything ... and today when I went to give this error

mikeshoe commented 5 years ago

Daniel, the link you provided lacks any additional information. Maybe you meant to include another link?

mikeshoe commented 5 years ago

I'm using php 7 if that's helpful.

restriato commented 5 years ago

the error that appears in youphptube.log is PHP Warning: file_get_contents (): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in / var / www / html

mikeshoe commented 5 years ago

restriato, are you running the streamer and encoder on the same host & same apache instance? I don't see that error in my logs but I'm calling localhost so there isn't really a lookup. Both the streamer app and encoder app are on the same vm.

restriato commented 5 years ago

Yes!

I found the mistake! In the resolv.conf file, it has google DNS, in Brazil this DNS is not working, I replaced it with openDNS and it worked screenshot_47 screenshot_48

DanielnetoDotCom commented 5 years ago

@restriato I am glad you fix it

@mikeshoe is your streamer and encoder on the same server?