WWBN / AVideo

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

sharing live stream on fb not scrape image again #6449

Open partystreamsk opened 2 years ago

partystreamsk commented 2 years ago

hi ,last time when we solve was ok but after some git pulls , again not work the social share image. shareissue

please check.

DanielnetoDotCom commented 2 years ago

Share the link here so I can check

partystreamsk commented 2 years ago

https://partystream.tv/live/0/MaloFunAcademy?live_schedule=30

DanielnetoDotCom commented 2 years ago

I could confirm your URL has problems

I made a test on one of my test sites and it works fine

image

image

you may want to check your apache error and access log and your avideo log when facebook tries to retreive your og tags information

partystreamsk commented 2 years ago

It was worked before. you solved this on last paid support. I see that you added a new features of prerol poster. maybe after that is issue? how can solve it?

DanielnetoDotCom commented 2 years ago

I do not think this issue is related.

the tested site is also running the latest with all updates

if you do not provide the requested logs I cannot help you

partystreamsk commented 2 years ago

[01-Apr-2022 18:05:52 Europe/Bratislava] AVideoLog::DEBUG: getImage: live does not start yet SCRIPT_NAME: /plugin/Live/getImage.php [01-Apr-2022 18:05:50 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:50 Europe/Bratislava] AVideoLog::DEBUG: User::canWatchVideo Video is empty (0) SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:50 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:47 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:47 Europe/Bratislava] AVideoLog::DEBUG: User::canWatchVideo Video is empty (0) SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:47 Europe/Bratislava] AVideoLog::DEBUG: isLiveAndIsReadyFromKey the key 623f977f56dae is not present on the stats SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:47 Europe/Bratislava] AVideoLog::DEBUG: Live::isLiveFromKey is NOT online [623f977f56dae] SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:47 Europe/Bratislava] AVideoLog::DEBUG: Live::isLiveFromKey namesFound [] SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:47 Europe/Bratislava] AVideoLog::DEBUG: LiveTransmitionHistory::getActiveLiveFromUser: SELECT FROM live_transmitions_history WHERE finished IS NULL AND users_id = ? AND key = ? ORDER BY created DESC LIMIT 1 formats=is [1,"623f98928a302"] SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:47 Europe/Bratislava] AVideoLog::DEBUG: LiveTransmitionHistory::getActiveLiveFromUser: SELECT FROM live_transmitions_history WHERE finished IS NULL AND users_id = ? AND key = ? ORDER BY created DESC LIMIT 1 formats=is [1,"623f977f56dae"] SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:47 Europe/Bratislava] AVideoLog::DEBUG: Live::getStatsObject[0] 4: cache not found SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:47 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:42 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:42 Europe/Bratislava] AVideoLog::DEBUG: User::canWatchVideo Video is empty (0) SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:42 Europe/Bratislava] AVideoLog::DEBUG: User::canWatchVideo Video is empty (0) SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:42 Europe/Bratislava] AVideoLog::DEBUG: isLiveAndIsReadyFromKey the key 623f977f56dae is not present on the stats SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:42 Europe/Bratislava] AVideoLog::DEBUG: Live::isLiveFromKey is NOT online [623f977f56dae] SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:42 Europe/Bratislava] AVideoLog::DEBUG: Live::isLiveFromKey namesFound [] SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:42 Europe/Bratislava] AVideoLog::DEBUG: Live::getStatsObject[0] 4: cache not found SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:42 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 16:05:42 UTC] AVideoLog::DEBUG: success 1 SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 16:05:42 UTC] AVideoLog::DEBUG: user::recreateLoginFromCookie: do cookie-login: admin result: 0 SCRIPT_NAME: /plugin/Live/index.php [01-Apr-2022 18:05:40 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /view/index.php

DanielnetoDotCom commented 2 years ago

nothing there.

also check access log and apache log at the same time facebook tries to retrieve your tags

partystreamsk commented 2 years ago

apache logs

partystreamsk commented 2 years ago

no errors too.

DanielnetoDotCom commented 2 years ago

Sorry as long as I cannot reproduce and there is no clue I cannot help you

DanielnetoDotCom commented 2 years ago

I suspect is something related with your control panel

partystreamsk commented 2 years ago

From last time , when it worked i didnt change nothing , just done git pulls.

partystreamsk commented 2 years ago

videos and recordings are scraping fine.

DanielnetoDotCom commented 2 years ago

definitely I do not know what is the problem, try making another git pull and upload a new image and check if makes any difference

partystreamsk commented 2 years ago

Last gitpul is this, already done before : 2022-04-01 15:02 https://github.com/WWBN/AVideo/issues/6395#issu

partystreamsk commented 2 years ago

uploaded different image, cleared cache , but nothing helps. Its super strange because https://partystream.tv/plugin/Live/getImage.php?u=admin&format=jpg&live_schedule=30 i can open normaly

DanielnetoDotCom commented 2 years ago

I also can open fine

i do not know what to do

DanielnetoDotCom commented 2 years ago

Hold on I was comparing the wrong header

DanielnetoDotCom commented 2 years ago

Here are the correct headers to compare

image

the response header is what is important for you

DanielnetoDotCom commented 2 years ago

try to check those

Connection: Keep-Alive
Content-Encoding: gzip
Transfer-Encoding: chunked
Vary: Accept-Encoding
partystreamsk commented 2 years ago

thanks, i will try to check

partystreamsk commented 2 years ago

@DanielnetoDotCom i dont know what you do but now after git pull of today, everything works fine. Thank you for fixing

DanielnetoDotCom commented 2 years ago

Awesome thanks for the update

partystreamsk commented 2 years ago

Daniel, again after git pull there is a issue with facebook scrape image on sheduled lives.

DanielnetoDotCom commented 2 years ago

I have inspected the link https://partystream.tv/live/0/MaloFunAcademy?live_schedule=38 on https://developers.facebook.com/tools/debug/

that is the image that you suppose to have on your schedule

https://partystream.tv/plugin/Live/getImage.php?u=admin&format=jpg&live_schedule=38

but it is returning a blank page

check your log file. also try to submit a custom poster and see if it changes

partystreamsk commented 2 years ago

Hi, just uploaded an custom image. Now on https://partystream.tv/plugin/Live/getImage.php?u=admin&format=jpg&live_schedule=38 it shows image but on facebook is error like when i opened this discussion. partyerr Provided og:image URL, https://partystream.tv/plugin/Live/getImage.php?u=admin&format=jpg&live_schedule=38 could not be processed as an image. It may be corrupted or may have an invalid format.

partystreamsk commented 2 years ago

LOG : [23-Apr-2022 14:46:22 Europe/Bratislava] AVideoLog::DEBUG: Live::getStatsObject[0] 4: cache not found SCRIPT_NAME: /view/iframe.php [23-Apr-2022 14:46:15 Europe/Bratislava] AVideoLog::DEBUG: verifyToken token timout time = 1650717975; obj->time = 1650654537; obj->timeout = 1650697737 SCRIPT_NAME: /var/www/vhosts/www.mysite.com/httpdocs/plugin/YPTSocket/server.php [23-Apr-2022 14:46:15 Europe/Bratislava] AVideoLog::DEBUG: verifyToken token timout time = 1650717975; obj->time = 1650654540; obj->timeout = 1650697740 SCRIPT_NAME: /var/www/vhosts/www.mysite.com/httpdocs/plugin/YPTSocket/server.php [23-Apr-2022 14:45:25 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:45:25 Europe/Bratislava] AVideoLog::DEBUG: User::canWatchVideo Video is empty (0) SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:45:25 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:31 Europe/Bratislava] AVideoLog::DEBUG: verifyToken token timout time = 1650717871; obj->time = 1650654540; obj->timeout = 1650697740 SCRIPT_NAME: /var/www/vhosts/www.mysite.com/httpdocs/plugin/YPTSocket/server.php [23-Apr-2022 14:44:30 Europe/Bratislava] AVideoLog::DEBUG: verifyToken token timout time = 1650717870; obj->time = 1650654537; obj->timeout = 1650697737 SCRIPT_NAME: /var/www/vhosts/www.mysite.com/httpdocs/plugin/YPTSocket/server.php [23-Apr-2022 14:44:29 Europe/Bratislava] AVideoLog::DEBUG: getImage: live does not start yet SCRIPT_NAME: /plugin/Live/getImage.php [23-Apr-2022 14:44:27 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:27 Europe/Bratislava] AVideoLog::DEBUG: User::canWatchVideo Video is empty (0) SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:27 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:23 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:23 Europe/Bratislava] AVideoLog::DEBUG: User::canWatchVideo Video is empty (0) SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:23 Europe/Bratislava] AVideoLog::DEBUG: isLiveAndIsReadyFromKey the key 62629ba82eaaa is not present on the stats SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:23 Europe/Bratislava] AVideoLog::DEBUG: Live::isLiveFromKey is NOT online [62629ba82eaaa] SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:23 Europe/Bratislava] AVideoLog::DEBUG: Live::isLiveFromKey namesFound [] SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:23 Europe/Bratislava] AVideoLog::DEBUG: Live::getStatsObject[0] 4: cache not found SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:23 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:44:14 Europe/Bratislava] AVideoLog::DEBUG: getImage: live does not start yet SCRIPT_NAME: /plugin/Live/getImage.php [23-Apr-2022 14:44:13 Europe/Bratislava] AVideoLog::DEBUG: getImage: live does not start yet SCRIPT_NAME: /plugin/Live/getImage.php [23-Apr-2022 14:44:12 Europe/Bratislava] AVideoLog::DEBUG: getImage: live does not start yet SCRIPT_NAME: /plugin/Live/getImage.php [23-Apr-2022 14:44:12 Europe/Bratislava] AVideoLog::DEBUG: getImage: live does not start yet SCRIPT_NAME: /plugin/Live/getImage.php [23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: deleteALLCache end in 0.0086009502410889 seconds SCRIPT_NAME: /plugin/Live/uploadPoster.json.php [23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: rm -fR /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache6263f49bb3bb8 > /dev/null 2>&1 & echo $!; SCRIPT_NAME: /plugin/Live/uploadPoster.json.php [23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: deleteALLCache 2 rmdir /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache6263f49bb3bb8 SCRIPT_NAME: /plugin/Live/uploadPoster.json.php [23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: deleteALLCache rename(/var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache/, /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache6263f49bb3bb8) SCRIPT_NAME: /plugin/Live/uploadPoster.json.php [23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: deleteALLCache starts SCRIPT_NAME: /plugin/Live/uploadPoster.json.php [23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: clearCache end in 0.0028412342071533 seconds SCRIPT_NAME: /plugin/Live/uploadPoster.json.php [23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: rrmdir: could not delete folder /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache/firstpage/ SCRIPT_NAME: /plugin/Live/uploadPoster.json.php [23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: clearCache starts SCRIPT_NAME: /plugin/Live/uploadPoster.json.php [23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: rrmdir: could not delete folder /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache/getstats/ SCRIPT_NAME: /plugin/Live/uploadPoster.json.php [23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: deleteStatsCache: /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache/getstats/ [{"file":"\/var\/www\/vhosts\/www.mysite.com\/httpdocs\/plugin\/Live\/uploadPoster.json.php","line":53,"function":"deleteStatsCache","class":"Live","type":"::"}] SCRIPT_NAME: /plugin/Live/uploadPoster.json.php *** SCRIPT_NAME: /plugin/Live/uploadPoster.json.php function: deleteStatsCache Line: {53} File: {/var/www/vhosts/www.mysite.com/httpdocs/plugin/Live/uploadPoster.json.php} function: _error_log_debug Line: {2712} File: {/var/www/vhosts/www.mysite.com/httpdocs/plugin/Live/Live.php} Live::deleteStatsCache


[23-Apr-2022 14:44:11 Europe/Bratislava] AVideoLog::DEBUG: [23-Apr-2022 14:43:51 Europe/Bratislava] AVideoLog::DEBUG: getRTMPLink: rtmp://www.mysite.com:1934/live?s=TE9URjZKT0JkVi9XUTh5SXpINHdEdz09&webSiteRootURL=aHR0cHM6Ly9wYXJ0eXN0cmVhbS50di8/622a480bf3444-1 SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:43:46 Europe/Bratislava] AVideoLog::DEBUG: getImage: live does not start yet SCRIPT_NAME: /plugin/Live/getImage.php [23-Apr-2022 14:43:37 Europe/Bratislava] AVideoLog::DEBUG: getImage: live does not start yet SCRIPT_NAME: /plugin/Live/getImage.php [23-Apr-2022 14:43:25 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:43:25 Europe/Bratislava] AVideoLog::DEBUG: User::canWatchVideo Video is empty (0) SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:43:25 Europe/Bratislava] AVideoLog::DEBUG: User::canWatchVideo Video is empty (0) SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:43:25 Europe/Bratislava] AVideoLog::DEBUG: isLiveAndIsReadyFromKey the key 62629ba82eaaa is not present on the stats SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:43:25 Europe/Bratislava] AVideoLog::DEBUG: Live::isLiveFromKey is NOT online [62629ba82eaaa] SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:43:25 Europe/Bratislava] AVideoLog::DEBUG: Live::isLiveFromKey namesFound [] SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:43:25 Europe/Bratislava] AVideoLog::DEBUG: Live::getStatsObject[0] 4: cache not found SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:43:25 Europe/Bratislava] AVideoLog::DEBUG: CustomizeUser::canShareVideosFromVideo canShareVideosFromUser() = false SCRIPT_NAME: /plugin/Live/index.php [23-Apr-2022 14:43:20 Europe/Bratislava] AVideoLog::DEBUG: im_resizeV2: /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/_jpg_6263f46851919.jpg, /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/og_200X200.jpg, 200, 200, 100 SCRIPT_NAME: /view/iframe.php [23-Apr-2022 14:43:19 Europe/Bratislava] AVideoLog::DEBUG: clearCache end in 0.0035059452056885 seconds SCRIPT_NAME: /objects/configurationClearCache.json.php [23-Apr-2022 14:43:19 Europe/Bratislava] AVideoLog::DEBUG: rrmdir: could not delete folder /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache/firstpage/ SCRIPT_NAME: /objects/configurationClearCache.json.php [23-Apr-2022 14:43:19 Europe/Bratislava] AVideoLog::DEBUG: clearCache starts SCRIPT_NAME: /objects/configurationClearCache.json.php [23-Apr-2022 14:43:18 Europe/Bratislava] AVideoLog::DEBUG: deleteALLCache end in 0.00079083442687988 seconds SCRIPT_NAME: /objects/configurationClearCache.json.php [23-Apr-2022 14:43:18 Europe/Bratislava] AVideoLog::DEBUG: deleteALLCache 2 rmdir /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache6263f466a10cd SCRIPT_NAME: /objects/configurationClearCache.json.php [23-Apr-2022 14:43:18 Europe/Bratislava] AVideoLog::DEBUG: deleteALLCache rename(/var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache/, /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/YPTObjectCache6263f466a10cd) SCRIPT_NAME: /objects/configurationClearCache.json.php [23-Apr-2022 14:43:18 Europe/Bratislava] AVideoLog::DEBUG: deleteALLCache starts SCRIPT_NAME: /objects/configurationClearCache.json.php [23-Apr-2022 14:43:18 Europe/Bratislava] AVideoLog::DEBUG: clearCache end in 0.16991710662842 seconds SCRIPT_NAME: /objects/configurationClearCache.json.php [23-Apr-2022 14:43:18 Europe/Bratislava] AVideoLog::DEBUG: rrmdir: do not delete videos or cache folder /var/www/vhosts/www.mysite.com/httpdocs/videos/cache/ SCRIPT_NAME: /objects/configurationClearCache.json.php [23-Apr-2022 14:43:18 Europe/Bratislava] AVideoLog::DEBUG: clearCache starts SCRIPT_NAME: /objects/configurationClearCache.json.php

partystreamsk commented 2 years ago

I dont know whats happened but again after git pull works fine. Now i will do backup of site so if git pull mess up sharing of live i will restore backup.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.