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

Cache is not purging causing a lot of File Use activity with th IO #6950

Closed JoshWho closed 2 years ago

JoshWho commented 2 years ago

No clue what changed but I keep seeing multiple processes of Cache Purge that never ends and it makes the IO almost not usable when it does that.

JoshWho commented 2 years ago

It is like it just keeps running and never ends

DanielnetoDotCom commented 2 years ago

where are you seeing this, can you please screenshot?

JoshWho commented 2 years ago

30920113-ebf07be254b82859db089e6469e93344

JoshWho commented 2 years ago

6a1ecefa-e212-44f9-8054-f82879108461

I killed all the other ones to get stability back

DanielnetoDotCom commented 2 years ago

every time we delete the cache folder must be something on the log.

maybe for some reason, the cache is not being deleted and it is trying over and over;

try to manually delete the folder and also check if the script has the right permission to write on the videos folder.

check your logs

JoshWho commented 2 years ago

Is the cache still using the ssd? Second question is, does that folder ever delete (Expire) the data or is that only on reboot?

JoshWho commented 2 years ago
 [01-Aug-2022 15:24:24 America/Chicago] AVideoLog::SECURITY: isUntrustedRequest: "SAVE vast_campaigns_logs" SCRIPT_NAME: /plugin/AD_Server/log.php

 [01-Aug-2022 15:24:24 America/Chicago] AVideoLog::SECURITY: isUntrustedRequest: "SAVE vast_campaigns_logs" SCRIPT_NAME: /plugin/AD_Server/log.php

 [01-Aug-2022 15:24:24 America/Chicago] AVideoLog::SECURITY: isUntrustedRequest: "SAVE vast_campaigns_logs" SCRIPT_NAME: /plugin/AD_Server/log.php

 [01-Aug-2022 15:24:24 America/Chicago] AVideoLog::SECURITY: isUntrustedRequest: "SAVE vast_campaigns_logs" SCRIPT_NAME: /plugin/AD_Server/log.php

...
 [01-Aug-2022 15:20:31 America/Chicago] AVideoLog::SECURITY: ddosProtection:: progressive timeout timeoutReal = (5) active_connections = (25) maxCon = (25)  SCRIPT_NAME: /plugin/LiveLinks/getImage.php

Live Links is having trouble getting the thumbnails might be the ddos protection thing on there

JoshWho commented 2 years ago

That is all I see

DanielnetoDotCom commented 2 years ago

On this, any process should be able to lock a file. maybe another tool is locking a file inside the cache.

the update may resolve the isUntrustedRequest thing

the ddosProtection log may be some clue to whatever is happening.

JoshWho commented 2 years ago

Ok running the git pull now

JoshWho commented 2 years ago

Looks like it is working again. Thank you @DanielnetoDotCom

JoshWho commented 2 years ago

I had to run php /var/www/html/YouPHPTube/plugin/Cache/crontab.php

After I ran that everything went back to normal. I now have a crontab set to run it

I also have that new limit on the config now