WWBN / AVideo

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

Video deletion is almost impossible. #8459

Closed verticalhost closed 1 year ago

verticalhost commented 1 year ago

I have a problem that I can't trace. When a video needs to be deleted. I have a loading issue that loads endlessly without deleting the video file.

I was not able to know where to fixed this issue. I am using FTP storage as well.

image

DanielnetoDotCom commented 1 year ago

check the AVideo logs

https://github.com/WWBN/AVideo/wiki/How-to-find-errors-on-AVideo-Platform

verticalhost commented 1 year ago

`cat avideo.log [22-Sep-2023 14:03:52 America/Toronto] AVideoLog::DEBUG: removeVideoFiles: [v_230921183845_v25b8] SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:52 America/Toronto] AVideoLog::DEBUG: removeVideoFiles FTP SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:52 America/Toronto] AVideoLog::DEBUG: FTP:getClient finish SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:53 America/Toronto] AVideoLog::DEBUG: FTP:getClient finish SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:53 America/Toronto] AVideoLog::DEBUG: FTP:getClient finish SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:53 America/Toronto] AVideoLog::DEBUG: FTP:getClient finish SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:53 America/Toronto] AVideoLog::DEBUG: FTP:getClient finish SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:53 America/Toronto] AVideoLog::DEBUG: FTP:getClient finish SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:53 America/Toronto] AVideoLog::DEBUG: FTP:getClient finish SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:54 America/Toronto] AVideoLog::DEBUG: FTP:getClient finish SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:54 America/Toronto] AVideoLog::DEBUG: FTP:getClient finish SCRIPT_NAME: /objects/videoDelete.json.php [22-Sep-2023 14:03:54 America/Toronto] PHP Fatal error: Uncaught TypeError: pathinfo(): Argument #1 ($path) must be of type string, array given in /var/www/html/AVideo/plugin/FTP_Storage/FTP_Storage.php(18) : eval()'d code(1) : eval()'d code:145 Stack trace:

0 /var/www/html/AVideo/plugin/FTP_Storage/FTP_Storage.php(18) : eval()'d code(1) : eval()'d code(145): pathinfo()

1 /var/www/html/AVideo/objects/video.php(2784): FTP_Storage->removeFiles()

2 /var/www/html/AVideo/objects/video.php(2750): Video->removeVideoFiles()

3 /var/www/html/AVideo/objects/videoDelete.json.php(22): Video->delete()

4 {main}

thrown in /var/www/html/AVideo/plugin/FTP_Storage/FTP_Storage.php(18) : eval()'d code(1) : eval()'d code on line 145 [22-Sep-2023 14:03:54 America/Toronto] AVideoLog::ERROR: {"type":1,"message":"Uncaught TypeError: pathinfo(): Argument #1 ($path) must be of type string, array given in \/var\/www\/html\/AVideo\/plugin\/FTP_Storage\/FTP_Storage.php(18) : eval()'d code(1) : eval()'d code:145\nStack trace:\n#0 \/var\/www\/html\/AVideo\/plugin\/FTP_Storage\/FTP_Storage.php(18) : eval()'d code(1) : eval()'d code(145): pathinfo()\n#1 \/var\/www\/html\/AVideo\/objects\/video.php(2784): FTP_Storage->removeFiles()\n#2 \/var\/www\/html\/AVideo\/objects\/video.php(2750): Video->removeVideoFiles()\n#3 \/var\/www\/html\/AVideo\/objects\/videoDelete.json.php(22): Video->delete()\n#4 {main}\n thrown","file":"\/var\/www\/html\/AVideo\/plugin\/FTP_Storage\/FTP_Storage.php(18) : eval()'d code(1) : eval()'d code","line":145} SCRIPT_NAME: /objects/videoDelete.json.php root@gamegalaxy:/var/www/html/AVideo/videos# `

verticalhost commented 1 year ago

It seems the FTP modules was the issue in code. Maybe it needs to have update ?

DanielnetoDotCom commented 1 year ago

is the storage working properly?

can you check if the video was deleted even with this error?

verticalhost commented 1 year ago

Yeah the Storage are set correctly and it's reading the video perfect on website. And yes the video is deleting when i refresh the page.

DanielnetoDotCom commented 1 year ago

Not the video in the database, but the video file in the FTP storage

verticalhost commented 1 year ago

Some are stuck there

DanielnetoDotCom commented 1 year ago

I just sent FTP_Storage version 3.1, can you please download it again and check if is fine now?

verticalhost commented 1 year ago

i still see 3.0

DanielnetoDotCom commented 1 year ago

Sorry I said too earlier, now it is available on the marketplace

verticalhost commented 1 year ago

Mmm.. i dont know but i still have 3.0 XD

DanielnetoDotCom commented 1 year ago

Download it again from marketplace

verticalhost commented 1 year ago

I changed my DNS still 3.0 image

verticalhost commented 1 year ago

I changed my DNS still 3.0 image Is still there
https://youphp.tube/marketplace/

DanielnetoDotCom commented 1 year ago

did you download it again from the marketplace?

verticalhost commented 1 year ago

did you download it again from the marketplace?

Exact and i am still stuck on 3.0

DanielnetoDotCom commented 1 year ago

delete the FTP_Storage folder and upload again

verticalhost commented 1 year ago

Working but for some reason it deleting every video but only one left the 720 .

DanielnetoDotCom commented 1 year ago

humm, do you mean it delete all the videos but 720 no?

what other resolutions were deleted?

verticalhost commented 1 year ago

1080p - 1440p - 2160p all gone But only 720 p stay on fille zilla maybe it's be cause some one was watching this one at same time ?

DanielnetoDotCom commented 1 year ago

I do not think so, but there was any error in the logs?

verticalhost commented 1 year ago

i gonna re-try if it was my mistake.

verticalhost commented 1 year ago

ALL GOOD. It was my fault.

verticalhost commented 1 year ago

Thanks for this update very appreciate !