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

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

Open Tomoli75 opened this issue 7 years ago • 14 comments

fixed

Tomoli75 avatar Mar 28 '18 09:03 Tomoli75

Check your encoder log file

DanielnetoDotCom avatar Mar 28 '18 17:03 DanielnetoDotCom

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 avatar Apr 02 '18 15:04 DanielnetoDotCom

must be 5.6+ or later

DanielnetoDotCom avatar Apr 02 '18 16:04 DanielnetoDotCom

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

DanielnetoDotCom avatar Apr 03 '18 16:04 DanielnetoDotCom

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]

mikeshoe avatar Sep 25 '18 16:09 mikeshoe

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

restriato avatar Sep 25 '18 18:09 restriato

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

DanielnetoDotCom avatar Sep 25 '18 18:09 DanielnetoDotCom

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

restriato avatar Sep 25 '18 18:09 restriato

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

mikeshoe avatar Sep 25 '18 18:09 mikeshoe

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

mikeshoe avatar Sep 25 '18 18:09 mikeshoe

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

restriato avatar Sep 25 '18 20:09 restriato

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.

mikeshoe avatar Sep 25 '18 20:09 mikeshoe

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

restriato avatar Sep 25 '18 20:09 restriato

@restriato I am glad you fix it

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

DanielnetoDotCom avatar Sep 26 '18 15:09 DanielnetoDotCom