Open Tomoli75 opened 6 years ago
Check your encoder log file
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
must be 5.6+ or later
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
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]
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
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
Daniel, the link you provided lacks any additional information. Maybe you meant to include another link?
I'm using php 7 if that's helpful.
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, 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.
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
@restriato I am glad you fix it
@mikeshoe is your streamer and encoder on the same server?
fixed