WWBN / AVideo-Encoder

Encoder Server for AVideo Platform Open-Source
https://platform.avideo.com
GNU Affero General Public License v3.0
152 stars 189 forks source link

I keep having constant encoder issues now for some reason. Now Large uploads keep failing #419

Closed JoshWho closed 2 years ago

JoshWho commented 3 years ago

Not sure what changed but now having issues with large uploads over 1 gig

JoshWho commented 3 years ago

My videos directory i do not think had the correct permissions. The log in one of them had no recent dates had stuff from 2020 in it.

JoshWho commented 3 years ago

I have a couple of test running but It looks like it is working will report back when they finish.

JoshWho commented 3 years ago

Found the error

[05-Nov-2021 17:34:23 America/Chicago] Encoder::sendFileToDownload [file=/var/www/html/YouPHPTube/upl4/videos/avideoTmpFile_94_streamers_id_431HD.mp4], [download=https://ww2.joshwhotv.com/upl4/videos/avideoTmpFile_94_streamers_id_431HD.mp4] [05-Nov-2021 17:45:19 America/Chicago] Encoder::sendFileToDownload {"error":true,"format":"mp4","file":"\/var\/www\/html\/YouPHPTube\/upl4\/videos\/avideoTmpFile_94_streamers_id_431__HD.mp4","resolution":"HD","videoDownloadedLink":"","target":"https:\/\/www.joshwhotv.com\/aVideoEncoder.json","postFields":13,"videoFileSize":"3.93GB","response_raw":"array(4) {\n [\"type\"]=>\n int(1)\n [\"message\"]=>\n string(1024) \"Uncaught BackblazeB2\Exceptions\B2Exception: Received error from B2: incident id b9eb51e6b8d0-9a08c482f3b673ca in \/var\/www\/html\/YouPHPTube\/vendor\/gliterd\/backblaze-b2\/src\/ErrorHandler.php:43\nStack trace:\n#0 \/var\/www\/html\/YouPHPTube\/vendor\/gliterd\/backblaze-b2\/src\/Http\/Client.php(34): BackblazeB2\ErrorHandler::handleErrorResponse(Object(GuzzleHttp\Psr7\Response))\n#1 \/var\/www\/html\/YouPHPTube\/vendor\/gliterd\/backblaze-b2\/src\/Client.php(225): BackblazeB2\Http\Client->guzzleRequest('POST', 'https:\/\/pod-000...', Array)\n#2 \/var\/www\/html\/YouPHPTube\/plugin\/Blackblaze_B2\/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(365): BackblazeB2\Client->upload(Array)\n#3 \/var\/www\/html\/YouPHPTube\/plugin\/Blackblaze_B2\/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(306): Blackblaze_B2->copy_to_B2('\/var\/www\/html\/Y...', 'video_211105165...')\n#4 \/var\/www\/html\/YouPHPTube\/objects\/functions.php(1920): Blackblaze_B2->move_uploaded_file('\/var\/www\/html\/Y...', 'video_211105165...')\n#5 \/var\/www\/html\/YouPHPTube\/objects\/aVideoE\"\n [\"file\"]=>\n string(73) \"\/var\/www\/html\/YouPHPTube\/vendor\/gliterd\/backblaze-b2\/src\/ErrorHandler.php\"\n [\"line\"]=>\n int(43)\n}\n{\"error\":true,\"msg\":\"Under Maintanance\"}","response":null,"msg":"cURL error (1):\n Unsupported protocol \n \/var\/www\/html\/YouPHPTube\/upl4\/videos\/avideoTmpFile_94_streamers_id_431__HD.mp4 \n (https:\/\/www.joshwhotv.com\/aVideoEncoder.json)\n "} [05-Nov-2021 17:45:19 America/Chicago] Encoder::sendFileToDownload response fail array(4) { ["type"]=> int(1) ["message"]=> string(1024) "Uncaught BackblazeB2\Exceptions\B2Exception: Received error from B2: incident id b9eb51e6b8d0-9a08c482f3b673ca in /var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/ErrorHandler.php:43 Stack trace:

0 /var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/Http/Client.php(34): BackblazeB2\ErrorHandler::handleErrorResponse(Object(GuzzleHttp\Psr7\Response))

1 /var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/Client.php(225): BackblazeB2\Http\Client->guzzleRequest('POST', 'https://pod-000...', Array)

2 /var/www/html/YouPHPTube/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(365): BackblazeB2\Client->upload(Array)

3 /var/www/html/YouPHPTube/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(306): Blackblaze_B2->copy_to_B2('/var/www/html/Y...', 'video_211105165...')

4 /var/www/html/YouPHPTube/objects/functions.php(1920): Blackblaze_B2->move_uploaded_file('/var/www/html/Y...', 'video_211105165...')

5 /var/www/html/YouPHPTube/objects/aVideoE"

["file"]=> string(73) "/var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/ErrorHandler.php" ["line"]=> int(43) } {"error":true,"msg":"Under Maintanance"} [{"file":"\/var\/www\/html\/YouPHPTube\/upl4\/objects\/Encoder.php","line":1218,"function":"sendFileToDownload","class":"Encoder","type":"::","args":["\/var\/www\/html\/YouPHPTube\/upl4\/videos\/avideoTmpFile_94_streamers_id_431HD.mp4",{"videos_id":47699,"video_id_hash":"RGJXMCtjbitjQXFzRlkvYUFXYThSRnlkanladVg3OHlqYXI5VU5nMXR6dz0="},"mp4",{},"HD"]},{"file":"\/var\/www\/html\/YouPHPTube\/upl4\/objects\/Encoder.php","line":878,"function":"sendFileChunk","class":"Encoder","type":"::","args":["\/var\/www\/html\/YouPHPTube\/upl4\/videos\/avideoTmpFile_94_streamers_id_431HD.mp4",{"videos_id":47699,"video_id_hash":"RGJXMCtjbitjQXFzRlkvYUFXYThSRnlkanladVg3OHlqYXI5VU5nMXR6dz0="},"mp4",{},"HD"]},{"file":"\/var\/www\/html\/YouPHPTube\/upl4\/objects\/Encoder.php","line":964,"function":"multiResolutionSend","class":"Encoder","object":{},"type":"->","args":["HD","mp4",{"videos_id":47699,"video_id_hash":"RGJXMCtjbitjQXFzRlkvYUFXYThSRnlkanladVg3OHlqYXI5VU5nMXR6dz0="}]},{"file":"\/var\/www\/html\/YouPHPTube\/upl4\/objects\/Encoder.php","line":768,"function":"send","class":"Encoder","object":{},"type":"->","args":[]},{"file":"\/var\/www\/html\/YouPHPTube\/upl4\/view\/run.php","line":6,"function":"run","class":"Encoder","type":"::","args":[]}] [05-Nov-2021 17:45:19 America/Chicago] Encoder:sendFileChunk(/var/www/html/YouPHPTube/upl4/videos/avideoTmpFile_94_streamers_id_431HD.mp4,47699, mp4, object, HD, 0) [05-Nov-2021 17:45:19 America/Chicago] Encoder::sendFileChunk file=/var/www/html/YouPHPTube/upl4/videos/avideoTmpFile_94_streamers_id_431HD.mp4 [05-Nov-2021 17:45:27 America/Chicago] getSpritsFromVideo: /usr/bin/php "/var/www/html/YouPHPTube/upl4/objects/createSpiritsFromVideo.php" "https://static.joshwhotv.com/file/joshwhotv/video_210620215142_55ae_HD.mp4" "6.54" "150" "84" "/var/www/html/YouPHPTube/upl4/videos/sprit_3eebbd9ccc6da46a545385163a244cde.jpg" "100" "3eebbd9ccc6da46a545385163a244cde" [05-Nov-2021 17:45:27 America/Chicago] CreateSpirits: creating directory /var/www/html/YouPHPTube/upl4/videos/thumbs_3eebbd9ccc6da46a545385163a244cde/ [05-Nov-2021 17:45:27 America/Chicago] CreateSpirits: ffmpeg -i "https://static.joshwhotv.com/file/joshwhotv/video_210620215142_55ae_HD.mp4" -map 0:v:0 -vf fps=1/6.54 -s 150x84 "/var/www/html/YouPHPTube/upl4/videos/thumbs_3eebbd9ccc6da46a545385163a244cde/out%03d.png" 2>&1 [05-Nov-2021 17:45:45 America/Chicago] CreateSpirits: removing directory /var/www/html/YouPHPTube/upl4/videos/thumbs_3eebbd9ccc6da46a545385163a244cde/ [05-Nov-2021 17:46:36 America/Chicago] getSpritsFromVideo: /usr/bin/php "/var/www/html/YouPHPTube/upl4/objects/createSpiritsFromVideo.php" "https://static.joshwhotv.com/file/joshwhotv/video_211105173744_vef2e_HD.mp4" "4.82" "150" "84" "/var/www/html/YouPHPTube/upl4/videos/sprit_39ca5f8c587a6b61c9476691542e7057.jpg" "100" "39ca5f8c587a6b61c9476691542e7057" [05-Nov-2021 17:46:36 America/Chicago] CreateSpirits: creating directory /var/www/html/YouPHPTube/upl4/videos/thumbs_39ca5f8c587a6b61c9476691542e7057/ [05-Nov-2021 17:46:36 America/Chicago] CreateSpirits: ffmpeg -i "https://static.joshwhotv.com/file/joshwhotv/video_211105173744_vef2e_HD.mp4" -map 0:v:0 -vf fps=1/4.82 -s 150x84 "/var/www/html/YouPHPTube/upl4/videos/thumbs_39ca5f8c587a6b61c9476691542e7057/out%03d.png" 2>&1 [05-Nov-2021 17:47:29 America/Chicago] CreateSpirits: removing directory /var/www/html/YouPHPTube/upl4/videos/thumbs_39ca5f8c587a6b61c9476691542e7057/ [05-Nov-2021 17:47:32 America/Chicago] getSpritsFromVideo: /usr/bin/php "/var/www/html/YouPHPTube/upl4/objects/createSpiritsFromVideo.php" "https://static.joshwhotv.com/file/joshwhotv/_YPTuniqid_5c92b15ac349d3.53799347_Low.mp4" "26.99" "150" "84" "/var/www/html/YouPHPTube/upl4/videos/sprit_b78dbf93a07a284f5086fcfb72b282c0.jpg" "100" "b78dbf93a07a284f5086fcfb72b282c0" [05-Nov-2021 17:47:32 America/Chicago] CreateSpirits: creating directory /var/www/html/YouPHPTube/upl4/videos/thumbs_b78dbf93a07a284f5086fcfb72b282c0/ [05-Nov-2021 17:47:32 America/Chicago] CreateSpirits: ffmpeg -i "https://static.joshwhotv.com/file/joshwhotv/_YPTuniqid_5c92b15ac349d3.53799347_Low.mp4" -map 0:v:0 -vf fps=1/26.99 -s 150x84 "/var/www/html/YouPHPTube/upl4/videos/thumbs_b78dbf93a07a284f5086fcfb72b282c0/out%03d.png" 2>&1 [05-Nov-2021 17:48:23 America/Chicago] CreateSpirits: removing directory /var/www/html/YouPHPTube/upl4/videos/thumbs_b78dbf93a07a284f5086fcfb72b282c0/ [05-Nov-2021 17:51:38 America/Chicago] AVideo-Streamer countCURLOPT_READFUNCTION = (4121505) chunk answer {"file":"\/tmp\/YTPChunk_CHiXTN","filesize":4220419467} [05-Nov-2021 17:51:38 America/Chicago] cURL success, Local file: 3.93GB => Transferred file 3.93GB [05-Nov-2021 17:51:38 America/Chicago] {"error":false,"file":"\/var\/www\/html\/YouPHPTube\/upl4\/videos\/avideoTmpFile_94_streamers_id_431HD.mp4","filesize":4220419467,"response":{"file":"\/tmp\/YTPChunk_CHiXTN","filesize":4220419467},"target":"https:\/\/www.joshwhotv.com\/aVideoEncoderChunk.json","response_raw":"{\"file\":\"\\/tmp\\/YTPChunk_CHiXTN\",\"filesize\":4220419467}"} [05-Nov-2021 17:51:38 America/Chicago] Encoder::sendFile videos_id=47699, format=mp4 [05-Nov-2021 17:51:38 America/Chicago] Encoder::sendFile sending file to https://www.joshwhotv.com/aVideoEncoder.json from [05-Nov-2021 17:55:51 America/Chicago] getReturn_vars {"videos_id":47699,"video_id_hash":"RGJXMCtjbitjQXFzRlkvYUFXYThSRnlkanladVg3OHlqYXI5VU5nMXR6dz0="} [05-Nov-2021 17:55:51 America/Chicago] Duration found: 3:59:37 [05-Nov-2021 17:55:51 America/Chicago] getImage: file exists /var/www/html/YouPHPTube/upl4/videos/94_tmpFile.mp4.jpg [05-Nov-2021 17:55:51 America/Chicago] sendImages: {"error":false,"file":"\/var\/www\/html\/YouPHPTube\/upl4\/videos\/94_tmpFile.mp4","target":"https:\/\/www.joshwhotv.com\/objects\/aVideoEncoderReceiveImage.json.php","postFields":11,"response_raw":"{\"error\":false,\"video_id\":47699,\"jpgDest\":\"\\/var\\/www\\/html\\/YouPHPTube\\/videos\\/video_211105165747_vc22d\\/video_211105165747_vc22d.jpg\",\"jpgDestSize\":34195,\"gifDest\":\"\\/var\\/www\\/html\\/YouPHPTube\\/videos\\/video_211105165747_vc22d\\/video_211105165747_vc22d.gif\",\"gifDestSize\":952849,\"webpDest\":\"\\/var\\/www\\/html\\/YouPHPTube\\/videos\\/video_211105165747_vc22d\\/video_211105165747_vc22d.webp\",\"webpDestSize\":648674,\"video_id_hash\":\"RGJXMCtjbitjQXFzRlkvYUFXYThSRnlkanladVg3OHlqYXI5VU5nMXR6dz0=\"}","response":{"error":false,"video_id":47699,"jpgDest":"\/var\/www\/html\/YouPHPTube\/videos\/video_211105165747_vc22d\/video_211105165747_vc22d.jpg","jpgDestSize":34195,"gifDest":"\/var\/www\/html\/YouPHPTube\/videos\/video_211105165747_vc22d\/video_211105165747_vc22d.gif","gifDestSize":952849,"webpDest":"\/var\/www\/html\/YouPHPTube\/videos\/video_211105165747_vc22d\/video_211105165747_vc22d.webp","webpDestSize":648674,"video_id_hash":"RGJXMCtjbitjQXFzRlkvYUFXYThSRnlkanladVg3OHlqYXI5VU5nMXR6dz0="}} [05-Nov-2021 17:55:51 America/Chicago] AVideo-Encoder Format::run(/var/www/html/YouPHPTube/upl4/videos/94_tmpFile.mp4, 94) [05-Nov-2021 17:55:51 America/Chicago] run:runMultiResolution [05-Nov-2021 17:55:51 America/Chicago] run:runMultiResolution"76" [05-Nov-2021 17:55:51 America/Chicago] run:runMultiResolution[6,7,8,88,89,90] [05-Nov-2021 17:55:51 America/Chicago] AVideo-Encoder Format::runMultiResolution(/var/www/html/YouPHPTube/upl4/videos/94_tmpFile.mp4, 94, 76) [05-Nov-2021 17:55:52 America/Chicago] Duration found: 3:59:37 [05-Nov-2021 17:55:52 America/Chicago] /var/www/html/YouPHPTube/upl4/videos/avideoTmpFile_94_streamers_id_431HD.mp4 already done, skip [05-Nov-2021 17:55:52 America/Chicago] PHP Notice: Undefined property: stdClass::$code in /var/www/html/YouPHPTube/upl4/objects/Encoder.php on line 762 [05-Nov-2021 17:55:52 America/Chicago] getReturn_vars {"videos_id":47699,"video_id_hash":"RGJXMCtjbitjQXFzRlkvYUFXYThSRnlkanladVg3OHlqYXI5VU5nMXR6dz0="} [05-Nov-2021 17:55:52 America/Chicago] Encoder::send() order_id=76 [05-Nov-2021 17:55:52 America/Chicago] Encoder::multiResolutionSend(HD, mp4, 47699)

JoshWho commented 3 years ago

From what I am seeing it looks like the log is showing that it is trying to grab the mp4 from a avideo directory and not from my actual website. I just 000 all the main files in that directory and hope it starts using my website again.

DanielnetoDotCom commented 3 years ago

Fixed, this , I updated for you upl4 you can update the others

JoshWho commented 3 years ago

Thank you Daniel. Super awesome!

JoshWho commented 2 years ago

This is still a ongoing issue. I do not know why but it just keeps happening and I use just 3 encoders now, all on their own servers and I just keep getting broken.

I think this has something to do with Backblaze not transferring all the way or something. The old fix where it use to just download it it seems like it doesn't work or the encoder is not directing something right. Some times it takes 3 tries then it will finally submit correctly without doing anything extra other than clicking retry on the encoder.

JoshWho commented 2 years ago

If I turn off the Auto delete it keeps the temp file for me to retry. Is there a way for it to check Backblaze before it deletes to see if it transferred?

DanielnetoDotCom commented 2 years ago

yes, try to turn off the autodelete. but the important is to make it possible to reproduce or inspect the error.

JoshWho commented 2 years ago

PHP Notice: Undefined property: stdClass::$code in /var/www/html/YouPHPTube/Encoder2/objects/Encoder.php on line 769

JoshWho commented 2 years ago

[07-Dec-2021 11:02:22 America/Chicago] login.json: Login::run [07-Dec-2021 11:02:22 America/Chicago] Login::run (zadmin, , https://www.joshwhotv.com/, false) [07-Dec-2021 11:02:22 America/Chicago] Login::run request login user (zadmin) [07-Dec-2021 11:02:22 America/Chicago] Login::run request login complete user (zadmin) [07-Dec-2021 11:02:22 America/Chicago] Login::run got an object [07-Dec-2021 11:02:22 America/Chicago] createIfNotExists:: zadmin [07-Dec-2021 11:02:22 America/Chicago] Verification Start https://www.joshwhotv.com/ [07-Dec-2021 11:02:22 America/Chicago] Verification Creating the Cache https://www.joshwhotv.com/ [07-Dec-2021 11:02:22 America/Chicago] Verification Response (https://search.avideo.com/verify.php?url=https%3A%2F%2Fwww.joshwhotv.com%2F): {"msg":["https:\/\/www.joshwhotv.com\/ Site verified"],"isPrivate":false,"verified":true,"status":"a"} [07-Dec-2021 11:02:22 America/Chicago] Login:: almost done [07-Dec-2021 11:02:22 America/Chicago] Login:: done session_id = 9eedae97a67b45f98820cfdaeebb377b session_login [07-Dec-2021 11:05:14 America/Chicago] https://www.joshwhotv.com/ == https://www.joshwhotv.com/ [07-Dec-2021 11:05:14 America/Chicago] login.json: Login::run [07-Dec-2021 11:05:14 America/Chicago] Login::run (Handsome Truth, , https://www.joshwhotv.com/, false) [07-Dec-2021 11:05:14 America/Chicago] Login::run request login user (Handsome Truth) [07-Dec-2021 11:05:14 America/Chicago] Login::run request login complete user (Handsome Truth) [07-Dec-2021 11:05:14 America/Chicago] Login::run got an object [07-Dec-2021 11:05:14 America/Chicago] createIfNotExists:: Handsome Truth [07-Dec-2021 11:05:14 America/Chicago] Verification Start https://www.joshwhotv.com/ [07-Dec-2021 11:05:14 America/Chicago] Verification GetFrom Cache https://www.joshwhotv.com/ [07-Dec-2021 11:05:14 America/Chicago] Verification Response (): {"msg":["https:\/\/www.joshwhotv.com\/ Site verified"],"isPrivate":false,"verified":true,"status":"a"} [07-Dec-2021 11:05:14 America/Chicago] Login:: almost done [07-Dec-2021 11:05:14 America/Chicago] Login:: done session_id = 4cf1318c5dc2f466cd556f446a1ee2a4 session_login [07-Dec-2021 12:46:29 America/Chicago] Upload.php will let function decide decideFormatOrder [07-Dec-2021 12:46:29 America/Chicago] decideFormatOrder: {"file":"224th GTV.mp4","audioOnly":"false","spectrum":"false","webm":"false","override_status":"","update_video_id":0,"inputHLS":"false","inputLow":"false","inputSD":"false","inputHD":"true","inputAutoHLS":"false","inputAutoMP4":"false","inputAutoWebm":"false","inputAutoAudio":"false","title":"224th GOYIMTV.COM LIVESTREAM: HT on Omegle!","description":"","categories_id":0,"PHPSESSID":"4cf1318c5dc2f466cd556f446a1ee2a4"} [07-Dec-2021 12:46:29 America/Chicago] decideFormatOrder: MP4 HD [07-Dec-2021 12:46:29 America/Chicago] AVideo-Encoder Format::getFromOrder(76) [07-Dec-2021 12:46:29 America/Chicago] Encoder::sendFile videos_id=0, format=mp4 [07-Dec-2021 12:46:29 America/Chicago] Encoder::sendFile sending file to https://www.joshwhotv.com/aVideoEncoder.json from [07-Dec-2021 12:46:29 America/Chicago] Encoder::sendFile 1 {"videos_id":0,"video_id_hash":""} [07-Dec-2021 12:46:29 America/Chicago] Encoder::sendFile 2 [{"file":"\/var\/www\/html\/YouPHPTube\/Encoder2\/view\/upload.php","line":110,"function":"sendFile","class":"Encoder","type":"::","args":["",{"videos_id":0,"video_id_hash":""},"mp4",{}]},{"file":"\/var\/www\/html\/YouPHPTube\/Encoder2\/view\/jquery-file-upload\/server\/php\/fileuploadchunkdone.php","line":30,"args":["\/var\/www\/html\/YouPHPTube\/Encoder2\/view\/upload.php"],"function":"require_once"}] [07-Dec-2021 12:46:29 America/Chicago] AVideo-Streamer answer 1 {"error":false,"video_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="} [07-Dec-2021 12:46:29 America/Chicago] {"error":false,"format":"mp4","file":"","resolution":"","videoDownloadedLink":null,"target":"https:\/\/www.joshwhotv.com\/aVideoEncoder.json","postFields":16,"response_raw":"{\"error\":false,\"video_id\":49606,\"video_id_hash\":\"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0=\"}","response":{"error":false,"video_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="}} [07-Dec-2021 13:02:35 America/Chicago] getReturn_vars {"videos_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="} [07-Dec-2021 13:02:35 America/Chicago] downloadFile: start queue_id = 26 url = https://www.joshwhotv.com/Encoder2/videos/original_224thGTV_YPTuniqid_61afac05291a15.87531263 pathFileName = /var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4 [07-Dec-2021 13:02:35 America/Chicago] downloadFile: not using getYoutubeDl [07-Dec-2021 13:02:35 America/Chicago] downloadFile: this file was uploaded from file and thus is in the videos [07-Dec-2021 13:02:35 America/Chicago] downloadFile: downloadedFile = /var/www/html/YouPHPTube/Encoder2/videos/original_224thGTV_YPTuniqid_61afac05291a15.87531263 | url = https://www.joshwhotv.com/Encoder2/videos/original_224thGTV_YPTuniqid_61afac05291a15.87531263 [07-Dec-2021 13:02:38 America/Chicago] Try to get UTF8 decode URL https://www.joshwhotv.com/Encoder2/videos/original_224thGTV_YPTuniqid_61afac05291a15.87531263 [07-Dec-2021 13:02:38 America/Chicago] downloadFile: {"error":false,"filename":"26_tmpFile.mp4","pathFileName":"\/var\/www\/html\/YouPHPTube\/Encoder2\/videos\/26_tmpFile.mp4","msg":"We downloaded the file with success"} [07-Dec-2021 13:02:38 America/Chicago] Duration found: 3:13:42 [07-Dec-2021 13:02:38 America/Chicago] getImage: ffmpeg -ss 00:10:00 -i "/var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4" -vframes 1 -y "/var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4.jpg" [07-Dec-2021 13:02:39 America/Chicago] getImage: takes 0.1604368686676 sec to complete [07-Dec-2021 13:02:39 America/Chicago] getGif: takes 0.67763495445251 sec to complete [07-Dec-2021 13:02:40 America/Chicago] getWebpImage: takes 0.1031641960144 sec to complete [07-Dec-2021 13:02:40 America/Chicago] getWebpImage: Image error : ffmpeg -y -ss 00:10:00 -t 3 -i /var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4 -vcodec libwebp -lossless 1 -vf fps=10,scale=640:-1 -q 60 -preset default -loop 0 -an -vsync 0 /var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4.webp ["ffmpeg version N-99048-g3c7cad69f2-patrickz Copyright (c) 2000-2020 the FFmpeg developers"," built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)"," configuration: --disable-shared --enable-static --enable-pthreads --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-filters --enable-openssl --enable-runtime-cpudetect --extra-version=patrickz"," libavutil 56. 58.100 \/ 56. 58.100"," libavcodec 58.105.100 \/ 58.105.100"," libavformat 58. 54.100 \/ 58. 54.100"," libavdevice 58. 11.101 \/ 58. 11.101"," libavfilter 7. 87.100 \/ 7. 87.100"," libswscale 5. 8.100 \/ 5. 8.100"," libswresample 3. 8.100 \/ 3. 8.100"," libpostproc 55. 8.100 \/ 55. 8.100","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\/var\/www\/html\/YouPHPTube\/Encoder2\/videos\/26_tmpFile.mp4':"," Metadata:"," major_brand : isom"," minor_version : 512"," compatible_brands: isomiso2avc1mp42"," encoder : Lavf55.33.100"," media_type : 0"," season_number : 0"," episode_sort : 0"," hd_video : 0"," iTunMOVI : <?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE plist PUBLIC \"-\/\/Apple Computer\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\"><plist version=\"1.0\">studio<\/key>studio<\/string>cast<\/key>name<"," Duration: 03:13:42.96, start: 0.000000, bitrate: 1306 kb\/s"," Stream #0:0(und): Video: h264 (High) (avc1 \/ 0x31637661), yuv420p(tv, bt709), 1280x720, 1202 kb\/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)"," Metadata:"," handler_name : VideoHandler"," Stream #0:1(und): Audio: aac (LC) (mp4a \/ 0x6134706D), 44100 Hz, stereo, fltp, 98 kb\/s (default)"," Metadata:"," handler_name : SoundHandler","Unknown encoder 'libwebp'"] [07-Dec-2021 13:02:40 America/Chicago] sendImages: {"error":false,"file":"\/var\/www\/html\/YouPHPTube\/Encoder2\/videos\/26_tmpFile.mp4","target":"https:\/\/www.joshwhotv.com\/objects\/aVideoEncoderReceiveImage.json.php","postFields":11,"response_raw":"{\"error\":false,\"video_id\":49606,\"jpgDest\":\"\\/var\\/www\\/html\\/YouPHPTube\\/videos\\/video_211207124629_v982d\\/video_211207124629_v982d.jpg\",\"jpgDestSize\":96808,\"gifDest\":\"\\/var\\/www\\/html\\/YouPHPTube\\/videos\\/video_211207124629_v982d\\/video_211207124629_v982d.gif\",\"gifDestSize\":954673,\"webpDest\":\"\\/var\\/www\\/html\\/YouPHPTube\\/videos\\/video_211207124629_v982d\\/video_211207124629_v982d.webp\",\"webpDestSize\":2095341,\"video_id_hash\":\"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0=\"}","response":{"error":false,"video_id":49606,"jpgDest":"\/var\/www\/html\/YouPHPTube\/videos\/video_211207124629_v982d\/video_211207124629_v982d.jpg","jpgDestSize":96808,"gifDest":"\/var\/www\/html\/YouPHPTube\/videos\/video_211207124629_v982d\/video_211207124629_v982d.gif","gifDestSize":954673,"webpDest":"\/var\/www\/html\/YouPHPTube\/videos\/video_211207124629_v982d\/video_211207124629_v982d.webp","webpDestSize":2095341,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="}} [07-Dec-2021 13:02:40 America/Chicago] AVideo-Encoder Format::run(/var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4, 26) [07-Dec-2021 13:02:40 America/Chicago] run:runMultiResolution [07-Dec-2021 13:02:40 America/Chicago] run:runMultiResolution"76" [07-Dec-2021 13:02:40 America/Chicago] run:runMultiResolution[6,7,8,88,89,90] [07-Dec-2021 13:02:40 America/Chicago] AVideo-Encoder Format::runMultiResolution(/var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4, 26, 76) [07-Dec-2021 13:02:40 America/Chicago] AVideo-Encoder Format::getFromOrder(12) [07-Dec-2021 13:02:40 America/Chicago] AVideo-Encoder Format::exec [8, /var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4, /var/www/html/YouPHPTube/Encoder2/videos/avideoTmpFile_26_streamers_id_7HD.mp4, 26] code=(ffmpeg -i {$pathFileName} -vf scale=-2:720 -movflags faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y {$destinationFile}) [07-Dec-2021 13:02:40 America/Chicago] AVideo-Encoder Format::exec Start Encoder [ffmpeg -i /var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4 -vf scale=-2:720 -movflags faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube/Encoder2/videos/avideoTmpFile_26_streamers_id_7__HD.mp4] [07-Dec-2021 13:03:59 America/Chicago] https://www.joshwhotv.com/ == https://www.joshwhotv.com/ [07-Dec-2021 13:03:59 America/Chicago] login.json: Login::run [07-Dec-2021 13:03:59 America/Chicago] Login::run (zadmin, ***, https://www.joshwhotv.com/, false) [07-Dec-2021 13:03:59 America/Chicago] Login::run request login user (zadmin) [07-Dec-2021 13:04:00 America/Chicago] Login::run request login complete user (zadmin) [07-Dec-2021 13:04:00 America/Chicago] Login::run got an object [07-Dec-2021 13:04:00 America/Chicago] createIfNotExists:: zadmin [07-Dec-2021 13:04:00 America/Chicago] Verification Start https://www.joshwhotv.com/ [07-Dec-2021 13:04:00 America/Chicago] Verification Creating the Cache https://www.joshwhotv.com/ [07-Dec-2021 13:04:00 America/Chicago] Verification Response (https://search.avideo.com/verify.php?url=https%3A%2F%2Fwww.joshwhotv.com%2F): {"msg":["https:\/\/www.joshwhotv.com\/ Site verified"],"isPrivate":false,"verified":true,"status":"a"} [07-Dec-2021 13:04:00 America/Chicago] Login:: almost done [07-Dec-2021 13:04:00 America/Chicago] Login:: done session_id = 9eedae97a67b45f98820cfdaeebb377b session_login [07-Dec-2021 13:34:11 America/Chicago] getReturn_vars {"videos_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="} [07-Dec-2021 13:34:11 America/Chicago] Encoder::send() order_id=76 [07-Dec-2021 13:34:11 America/Chicago] Encoder::multiResolutionSend(HD, mp4, 49606) [07-Dec-2021 13:39:07 America/Chicago] Duration found: 3:13:42 [07-Dec-2021 13:39:07 America/Chicago] Encoder::sendFileToDownload [file=/var/www/html/YouPHPTube/Encoder2/videos/avideoTmpFile_26_streamers_id_7HD.mp4], [download=https://www.joshwhotv.com/Encoder2/videos/avideoTmpFile_26_streamers_id_7__HD.mp4] [07-Dec-2021 13:41:24 America/Chicago] Encoder::sendFileToDownload {"error":false,"format":"mp4","file":"\/var\/www\/html\/YouPHPTube\/Encoder2\/videos\/avideoTmpFile_26_streamers_id_7__HD.mp4","resolution":"HD","videoDownloadedLink":"","target":"https:\/\/www.joshwhotv.com\/aVideoEncoder.json","postFields":13,"videoFileSize":"1.70GB","response_raw":"{\"error\":false,\"video_id\":49606,\"video_id_hash\":\"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0=\"}","response":{"error":false,"video_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="}} [07-Dec-2021 13:41:24 America/Chicago] Encoder:sendFileChunk no need, we could download [07-Dec-2021 13:41:24 America/Chicago] Encoder::run: Autodelete Not active [07-Dec-2021 13:41:24 America/Chicago] getReturn_vars {"videos_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="} [07-Dec-2021 13:41:24 America/Chicago] AVideo-Encoder sending confirmation to https://www.joshwhotv.com/objects/aVideoEncoderNotifyIsDone.json.php [07-Dec-2021 13:41:25 America/Chicago] AVideo-Streamer confirmation answer {"error":false,"video_id":49606} [07-Dec-2021 13:41:25 America/Chicago] {"error":false,"target":"https:\/\/www.joshwhotv.com\/objects\/aVideoEncoderNotifyIsDone.json.php","postFields":{"videos_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0=","user":"Handsome Truth","password":"ba3fa007137b6d23285c3b82a9d9fdd4","fail":0},"response_raw":"{\"error\":false,\"video_id\":49606}","response":{"error":false,"video_id":49606}} [07-Dec-2021 13:42:56 America/Chicago] getReturn_vars {"videos_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="} [07-Dec-2021 13:42:56 America/Chicago] Duration found: 3:13:42 [07-Dec-2021 13:42:56 America/Chicago] getImage: file exists /var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4.jpg [07-Dec-2021 13:42:57 America/Chicago] getWebpImage: takes 0.15167808532715 sec to complete [07-Dec-2021 13:42:57 America/Chicago] getWebpImage: Image error : ffmpeg -y -ss 00:10:00 -t 3 -i /var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4 -vcodec libwebp -lossless 1 -vf fps=10,scale=640:-1 -q 60 -preset default -loop 0 -an -vsync 0 /var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4.webp ["ffmpeg version N-99048-g3c7cad69f2-patrickz Copyright (c) 2000-2020 the FFmpeg developers"," built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)"," configuration: --disable-shared --enable-static --enable-pthreads --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-filters --enable-openssl --enable-runtime-cpudetect --extra-version=patrickz"," libavutil 56. 58.100 \/ 56. 58.100"," libavcodec 58.105.100 \/ 58.105.100"," libavformat 58. 54.100 \/ 58. 54.100"," libavdevice 58. 11.101 \/ 58. 11.101"," libavfilter 7. 87.100 \/ 7. 87.100"," libswscale 5. 8.100 \/ 5. 8.100"," libswresample 3. 8.100 \/ 3. 8.100"," libpostproc 55. 8.100 \/ 55. 8.100","Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\/var\/www\/html\/YouPHPTube\/Encoder2\/videos\/26_tmpFile.mp4':"," Metadata:"," major_brand : isom"," minor_version : 512"," compatible_brands: isomiso2avc1mp42"," encoder : Lavf55.33.100"," media_type : 0"," season_number : 0"," episode_sort : 0"," hd_video : 0"," iTunMOVI : <?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE plist PUBLIC \"-\/\/Apple Computer\/\/DTD PLIST 1.0\/\/EN\" \"http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd\"><plist version=\"1.0\">studio<\/key>studio<\/string>cast<\/key>name<"," Duration: 03:13:42.96, start: 0.000000, bitrate: 1306 kb\/s"," Stream #0:0(und): Video: h264 (High) (avc1 \/ 0x31637661), yuv420p(tv, bt709), 1280x720, 1202 kb\/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)"," Metadata:"," handler_name : VideoHandler"," Stream #0:1(und): Audio: aac (LC) (mp4a \/ 0x6134706D), 44100 Hz, stereo, fltp, 98 kb\/s (default)"," Metadata:"," handler_name : SoundHandler","Unknown encoder 'libwebp'"] [07-Dec-2021 13:42:57 America/Chicago] sendImages: {"error":false,"file":"\/var\/www\/html\/YouPHPTube\/Encoder2\/videos\/26_tmpFile.mp4","target":"https:\/\/www.joshwhotv.com\/objects\/aVideoEncoderReceiveImage.json.php","postFields":11,"response_raw":"{\"error\":false,\"video_id\":49606,\"jpgDest\":\"\\/var\\/www\\/html\\/YouPHPTube\\/videos\\/video_211207124629_v982d\\/video_211207124629_v982d.jpg\",\"jpgDestSize\":96808,\"gifDest\":\"\\/var\\/www\\/html\\/YouPHPTube\\/videos\\/video_211207124629_v982d\\/video_211207124629_v982d.gif\",\"gifDestSize\":954673,\"webpDest\":\"\\/var\\/www\\/html\\/YouPHPTube\\/videos\\/video_211207124629_v982d\\/video_211207124629_v982d.webp\",\"webpDestSize\":2095341,\"video_id_hash\":\"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0=\"}","response":{"error":false,"video_id":49606,"jpgDest":"\/var\/www\/html\/YouPHPTube\/videos\/video_211207124629_v982d\/video_211207124629_v982d.jpg","jpgDestSize":96808,"gifDest":"\/var\/www\/html\/YouPHPTube\/videos\/video_211207124629_v982d\/video_211207124629_v982d.gif","gifDestSize":954673,"webpDest":"\/var\/www\/html\/YouPHPTube\/videos\/video_211207124629_v982d\/video_211207124629_v982d.webp","webpDestSize":2095341,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="}} [07-Dec-2021 13:42:57 America/Chicago] AVideo-Encoder Format::run(/var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4, 26) [07-Dec-2021 13:42:57 America/Chicago] run:runMultiResolution [07-Dec-2021 13:42:57 America/Chicago] run:runMultiResolution"76" [07-Dec-2021 13:42:57 America/Chicago] run:runMultiResolution[6,7,8,88,89,90] [07-Dec-2021 13:42:57 America/Chicago] AVideo-Encoder Format::runMultiResolution(/var/www/html/YouPHPTube/Encoder2/videos/26_tmpFile.mp4, 26, 76) [07-Dec-2021 13:42:57 America/Chicago] Duration found: 3:13:42 [07-Dec-2021 13:42:57 America/Chicago] /var/www/html/YouPHPTube/Encoder2/videos/avideoTmpFile_26_streamers_id_7__HD.mp4 already done, skip [07-Dec-2021 13:42:57 America/Chicago] PHP Notice: Undefined property: stdClass::$code in /var/www/html/YouPHPTube/Encoder2/objects/Encoder.php on line 769 [07-Dec-2021 13:42:57 America/Chicago] getReturn_vars {"videos_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="} [07-Dec-2021 13:42:57 America/Chicago] Encoder::send() order_id=76 [07-Dec-2021 13:42:57 America/Chicago] Encoder::multiResolutionSend(HD, mp4, 49606)

JoshWho commented 2 years ago

I noticed also the Cache doesn't purge once it finishes

DanielnetoDotCom commented 2 years ago

I can see errors in backblaze transfer

I still not sure what is the error. But I guess backblaze has a max file size to transfer

you should keep one of this files on the encoder and try to resubmit. And capture only the real error. You have dumped a large log what makes harder to find the issue

JoshWho commented 2 years ago

I thought if Backblaze failed it downloaded it instead?

JoshWho commented 2 years ago

I am pretty sure this a is a Backblaze issue. Maybe need to chunk upload to it or something

Happens on all 3 encoders randomly

JoshWho commented 2 years ago
[07-Dec-2021 13:42:57 America/Chicago] /var/www/html/YouPHPTube/Encoder2/videos/avideoTmpFile_26_streamers_id_7__HD.mp4 already done, skip
[07-Dec-2021 13:42:57 America/Chicago] PHP Notice:  Undefined property: stdClass::$code in /var/www/html/YouPHPTube/Encoder2/objects/Encoder.php on line 769
[07-Dec-2021 13:42:57 America/Chicago] getReturn_vars {"videos_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="}
[07-Dec-2021 13:42:57 America/Chicago] Encoder::send() order_id=76
[07-Dec-2021 13:42:57 America/Chicago] Encoder::multiResolutionSend(HD, mp4, 49606)
[07-Dec-2021 13:48:19 America/Chicago] Encoder::sendFileToDownload [file=/var/www/html/YouPHPTube/Encoder2/videos/avideoTmpFile_26_streamers_id_7__HD.mp4], [download=https://www.joshwhotv.com/Encoder2/videos/avideoTmpFile_26_streamers_id_7__HD.mp4]
[07-Dec-2021 13:50:26 America/Chicago] Encoder::sendFileToDownload {"error":false,"format":"mp4","file":"\/var\/www\/html\/YouPHPTube\/Encoder2\/videos\/avideoTmpFile_26_streamers_id_7__HD.mp4","resolution":"HD","videoDownloadedLink":"","target":"https:\/\/www.joshwhotv.com\/aVideoEncoder.json","postFields":13,"videoFileSize":"1.70GB","response_raw":"{\"error\":false,\"video_id\":49606,\"video_id_hash\":\"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0=\"}","response":{"error":false,"video_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="}}
[07-Dec-2021 13:50:26 America/Chicago] Encoder:sendFileChunk no need, we could download
[07-Dec-2021 13:50:26 America/Chicago] Encoder::run: Autodelete Not active
[07-Dec-2021 13:50:26 America/Chicago] getReturn_vars {"videos_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0="}
[07-Dec-2021 13:50:26 America/Chicago] AVideo-Encoder sending confirmation to https://www.joshwhotv.com/objects/aVideoEncoderNotifyIsDone.json.php
[07-Dec-2021 13:50:29 America/Chicago] AVideo-Streamer confirmation answer {"error":false,"video_id":49606}
[07-Dec-2021 13:50:29 America/Chicago] {"error":false,"target":"https:\/\/www.joshwhotv.com\/objects\/aVideoEncoderNotifyIsDone.json.php","postFields":{"videos_id":49606,"video_id_hash":"SDhQa0FXTHRDL2F5amZEVTZqUmJac3YyYkxCMFdrSFUrbkMvaElMK2VnWT0=","user":"Handsome Truth","password":"ba3fa007137b6d23285c3b82a9d9fdd4","fail":0},"response_raw":"{\"error\":false,\"video_id\":49606}","response":{"error":false,"video_id":49606}}
JoshWho commented 2 years ago

I posted the larger log because I can't make since of the error and how it led up to it.

DanielnetoDotCom commented 2 years ago

From your old/large log that is what call my attention

[05-Nov-2021 17:45:19 America/Chicago] Encoder::sendFileToDownload {"error":true,"format":"mp4","file":"/var/www/html/YouPHPTube/upl4/videos/avideoTmpFile_94_streamers_id_431__HD.mp4","resolution":"HD","videoDownloadedLink":"","target":"https://www.joshwhotv.com/aVideoEncoder.json","postFields":13,"videoFileSize":"3.93GB","response_raw":"array(4) {\n ["type"]=>\n int(1)\n ["message"]=>\n string(1024) "Uncaught BackblazeB2\Exceptions\B2Exception: Received error from B2: incident id b9eb51e6b8d0-9a08c482f3b673ca in /var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/ErrorHandler.php:43\nStack trace:\n#0 /var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/Http/Client.php(34): BackblazeB2\ErrorHandler::handleErrorResponse(Object(GuzzleHttp\Psr7\Response))\n#1 /var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/Client.php(225): BackblazeB2\Http\Client->guzzleRequest('POST', 'https://pod-000...', Array)\n#2 /var/www/html/YouPHPTube/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(365): BackblazeB2\Client->upload(Array)\n#3 /var/www/html/YouPHPTube/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(306): Blackblaze_B2->copy_to_B2('/var/www/html/Y...', 'video_211105165...')\n#4 /var/www/html/YouPHPTube/objects/functions.php(1920): Blackblaze_B2->move_uploaded_file('/var/www/html/Y...', 'video_211105165...')\n#5 /var/www/html/YouPHPTube/objects/aVideoE"\n ["file"]=>\n string(73) "/var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/ErrorHandler.php"\n ["line"]=>\n int(43)\n}\n{"error":true,"msg":"Under Maintanance"}","response":null,"msg":"cURL error (1):\n Unsupported protocol \n /var/www/html/YouPHPTube/upl4/videos/avideoTmpFile_94_streamers_id_431__HD.mp4 \n (https://www.joshwhotv.com/aVideoEncoder.json)\n "}
[05-Nov-2021 17:45:19 America/Chicago] Encoder::sendFileToDownload response fail array(4) {
["type"]=>
int(1)
["message"]=>
string(1024) "Uncaught BackblazeB2\Exceptions\B2Exception: Received error from B2: incident id b9eb51e6b8d0-9a08c482f3b673ca in /var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/ErrorHandler.php:43
Stack trace:
#0 /var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/Http/Client.php(34): BackblazeB2\ErrorHandler::handleErrorResponse(Object(GuzzleHttp\Psr7\Response))
#1 /var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/Client.php(225): BackblazeB2\Http\Client->guzzleRequest('POST', 'https://pod-000...', Array)
#2 /var/www/html/YouPHPTube/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(365): BackblazeB2\Client->upload(Array)
#3 /var/www/html/YouPHPTube/plugin/Blackblaze_B2/Blackblaze_B2.php(18) : eval()'d code(1) : eval()'d code(306): Blackblaze_B2->copy_to_B2('/var/www/html/Y...', 'video_211105165...')
#4 /var/www/html/YouPHPTube/objects/functions.php(1920): Blackblaze_B2->move_uploaded_file('/var/www/html/Y...', 'video_211105165...')
#5 /var/www/html/YouPHPTube/objects/aVideoE"
["file"]=>
string(73) "/var/www/html/YouPHPTube/vendor/gliterd/backblaze-b2/src/ErrorHandler.php"
["line"]=>
int(43)
}
{"error":true,"msg":"Under Maintanance"}

more specific this error

Unsupported protocol \n /var/www/html/YouPHPTube/upl4/videos/avideoTmpFile_94_streamers_id_431__HD.mp4

upl4 I guess is not on the same server as your streamer.

how come it tries to upload the file like it was a local file? it only may happen when the encoder and streamer are on the same server.

but if this is the problem all the fails should fail., not only the large ones

there is no error on the latest log you shared here. if the video , from that log, is not working, the error may be on the streamer side, not on the encoder

JoshWho commented 2 years ago

Interesting. I think it is how you set it up a long time ago. I only been copying the first one

JoshWho commented 2 years ago

That Encoder is actually local one Now that I think about it. https://www.joshhwotv.com/Encoder is what it used

DanielnetoDotCom commented 2 years ago

Again, I suspect the problem is on the streamer NOT on the encoder.

does it only fail with large files?

JoshWho commented 2 years ago

yes mostly. I have seen it do this with small files but not as much

Unless all encoders have the same bug I think it is Backblaze

Even the newest encoder u setup for me does this

DanielnetoDotCom commented 2 years ago

Hi

I am confused now, is it happening with small files? large files? both? can you reproduce it? can you keep a file on the encoder that always fails so I can test?

JoshWho commented 2 years ago

Ever since the Log4J patch everything is working great again.

DanielnetoDotCom commented 2 years ago

wow, I am surprise what log4j has to do with it :(