Open codejp3 opened 4 weeks ago
Following up with a feature request for the future:
Please add a function that removes the background job forcefully when Duplicate Finder is disabled or deleted.
The reason is that even after disabling the app, the background job for scanning is still running and continuing to fill up the error log with hundreds of thousands of repeating errors. I deleted the app, and the background job is still running, continuing to fill the error log.
NC 29.0.4.1 Duplicate Finder 1.2.5
Just enabled Duplicate Finder and my error log is getting spammed with thousands of the same error message for the background job. Disabling Duplicate Finder for now because it's filling my log file very quickly. Here's the error that repeats over and over for various files:
{ "reqId":"ZGcEDo929hI7xs9nMlfT" "level":3,"time":"2024-08-18T11:48:14-04:00" "remoteAddr":"" "user":"--" "app":"duplicatefinder" "method":"" "url":"--" "message":"Failed to handle NewFileInfoEvent." "userAgent":"--" "version":"29.0.4.1" "exception":{"Exception":"OCP\\Files\\NotFoundException" "Message":"/user/files/Archived/Downloads/filename.ext" "Code":0,"Trace":[{"file":"/path/to/public_html/lib/private/Files/Node/LazyFolder.php" "line":161,"function":"get" "class":"OC\\Files\\Node\\Root" "type":"->" "args":["/user/files/Archived/Downloads/filename.ext"]},{"file":"/path/to/public_html/apps/duplicatefinder/lib/Service/FolderService.php" "line":53,"function":"get" "class":"OC\\Files\\Node\\LazyFolder" "type":"->" "args":["/user/files/Archived/Downloads/filename.ext"]},{"file":"/path/to/public_html/apps/duplicatefinder/lib/Service/FileInfoService.php" "line":232,"function":"getNodeByFileInfo" "class":"OCA\\DuplicateFinder\\Service\\FolderService" "type":"->" "args":[["OCA\\DuplicateFinder\\Db\\FileInfo",31377],"user"]},{"file":"/path/to/public_html/apps/duplicatefinder/lib/Listener/FileInfoListener.php" "line":39,"function":"calculateHashes" "class":"OCA\\DuplicateFinder\\Service\\FileInfoService" "type":"->" "args":[["OCA\\DuplicateFinder\\Db\\FileInfo",31377],"user"]},{"file":"/path/to/public_html/lib/private/EventDispatcher/ServiceEventListener.php" "line":86,"function":"handle" "class":"OCA\\DuplicateFinder\\Listener\\FileInfoListener" "type":"->" "args":[["OCA\\DuplicateFinder\\Event\\NewFileInfoEvent"]]},{"file":"/path/to/public_html/3rdparty/symfony/event-dispatcher/EventDispatcher.php" "line":230,"function":"__invoke" "class":"OC\\EventDispatcher\\ServiceEventListener" "type":"->" "args":[["OCA\\DuplicateFinder\\Event\\NewFileInfoEvent"],"OCA\\DuplicateFinder\\Event\\NewFileInfoEvent",["Symfony\\Component\\EventDispatcher\\EventDispatcher"]]},{"file":"/path/to/public_html/3rdparty/symfony/event-dispatcher/EventDispatcher.php" "line":59,"function":"callListeners" "class":"Symfony\\Component\\EventDispatcher\\EventDispatcher" "type":"->" "args":[[["Closure"]],"OCA\\DuplicateFinder\\Event\\NewFileInfoEvent",["OCA\\DuplicateFinder\\Event\\NewFileInfoEvent"]]},{"file":"/path/to/public_html/lib/private/EventDispatcher/EventDispatcher.php" "line":86,"function":"dispatch" "class":"Symfony\\Component\\EventDispatcher\\EventDispatcher" "type":"->" "args":[["OCA\\DuplicateFinder\\Event\\NewFileInfoEvent"],"OCA\\DuplicateFinder\\Event\\NewFileInfoEvent"]},{"file":"/path/to/public_html/lib/private/EventDispatcher/EventDispatcher.php" "line":98,"function":"dispatch" "class":"OC\\EventDispatcher\\EventDispatcher" "type":"->" "args":["OCA\\DuplicateFinder\\Event\\NewFileInfoEvent",["OCA\\DuplicateFinder\\Event\\NewFileInfoEvent"]]},{"file":"/path/to/public_html/apps/duplicatefinder/lib/Service/FileInfoService.php" "line":172,"function":"dispatchTyped" "class":"OC\\EventDispatcher\\EventDispatcher" "type":"->" "args":[["OCA\\DuplicateFinder\\Event\\NewFileInfoEvent"]]},{"file":"/path/to/public_html/apps/duplicatefinder/lib/Utils/ScannerUtil.php" "line":100,"function":"save" "class":"OCA\\DuplicateFinder\\Service\\FileInfoService" "type":"->" "args":["*** sensitive parameters replaced ***" "user"]},{"file":"/path/to/public_html/apps/duplicatefinder/lib/Utils/ScannerUtil.php" "line":89,"function":"saveScannedFile" "class":"OCA\\DuplicateFinder\\Utils\\ScannerUtil" "type":"->" "args":["*** sensitive parameters replaced ***" "user"]},{"function":"OCA\\DuplicateFinder\\Utils\\{closure}" "class":"OCA\\DuplicateFinder\\Utils\\ScannerUtil" "type":"->" "args":["*** sensitive parameters replaced ***"]},{"file":"/path/to/public_html/lib/private/Hooks/EmitterTrait.php" "line":105,"function":"call_user_func_array" "args":[["Closure"],["*** sensitive parameters replaced ***"]]},{"file":"/path/to/public_html/lib/private/Hooks/PublicEmitter.php" "line":40,"function":"emit" "class":"OC\\Hooks\\BasicEmitter" "type":"->" "args":["\\OC\\Files\\Utils\\Scanner" "postScanFile",["*** sensitive parameters replaced ***"]]},{"file":"/path/to/public_html/lib/private/Files/Utils/Scanner.php" "line":142,"function":"emit" "class":"OC\\Hooks\\PublicEmitter" "type":"->" "args":["\\OC\\Files\\Utils\\Scanner" "postScanFile",["*** sensitive parameters replaced ***"]]},{"function":"OC\\Files\\Utils\\{closure}" "class":"OC\\Files\\Utils\\Scanner" "type":"->" "args":["*** sensitive parameters replaced ***"]},{"file":"/path/to/public_html/lib/private/Hooks/EmitterTrait.php" "line":105,"function":"call_user_func_array" "args":[["Closure"],["*** sensitive parameters replaced ***" "*** sensitive parameters replaced ***"]]},{"file":"/path/to/public_html/lib/private/Files/Cache/Scanner.php" "line":256,"function":"emit" "class":"OC\\Hooks\\BasicEmitter" "type":"->" "args":["\\OC\\Files\\Cache\\Scanner" "postScanFile",["*** sensitive parameters replaced ***" "*** sensitive parameters replaced ***"]]},{"file":"/path/to/public_html/lib/private/Files/Cache/Scanner.php" "line":529,"function":"scanFile" "class":"OC\\Files\\Cache\\Scanner" "type":"->" "args":["*** sensitive parameters replaced ***",3,3159437,["OC\\Files\\Cache\\CacheEntry"],true,["image/jpeg",1676299538,25976,"ba115f489c806a35cc7ed8a421dc1f16",1676299538,27,"forums-list.JPG",3159437,3181433,25976,false]]},{"file":"/path/to/public_html/lib/private/Files/Cache/Scanner.php" "line":453,"function":"handleChildren" "class":"OC\\Files\\Cache\\Scanner" "type":"->" "args":["/path/to/images",true,3,3159437,true,1971951,false]},{"file":"/path/to/public_html/lib/private/Files/Cache/Scanner.php" "line":458,"function":"scanChildren" "class":"OC\\Files\\Cache\\Scanner" "type":"->" "args":["/path/to/images",true,3,3159437,true,2348728,false]},{"file":"/path/to/public_html/lib/private/Files/Cache/Scanner.php" "line":458,"function":"scanChildren" "class":"OC\\Files\\Cache\\Scanner" "type":"->" "args":["/path/to",true,3,3159421,true,3706409,0]},{"file":"/path/to/public_html/lib/private/Files/Cache/Scanner.php" "line":458,"function":"scanChildren" "class":"OC\\Files\\Cache\\Scanner" "type":"->" "args":["/path/to/tags",true,3,3157548,true,1124074007,0]},{"file":"/path/to/public_html/lib/private/Files/Cache/Scanner.php" "line":458,"function":"scanChildren" "class":"OC\\Files\\Cache\\Scanner" "type":"->" "args":["/path/to",true,3,3157526,true,1133995246,0]},{"file":"/path/to/public_html/lib/private/Files/Cache/Scanner.php" "line":458,"function":"scanChildren" "class":"OC\\Files\\Cache\\Scanner" "type":"->" "args":["path/to/Downloads",true,3,3154266,true,51152983612,0]},{"file":"/path/to/public_html/lib/private/Files/Cache/Scanner.php" "line":458,"function":"scanChildren" "class":"OC\\Files\\Cache\\Scanner" "type":"->" "args":["path/to",true,3,3154262,true,56277109596,0]},{"file":"/path/to/public_html/lib/private/Files/Cache/Scanner.php" "line":359,"function":"scanChildren" "class":"OC\\Files\\Cache\\Scanner" "type":"->" "args":["files",true,3,3029645,true,651828199559]},{"file":"/path/to/public_html/lib/private/Files/Utils/Scanner.php" "line":278,"function":"scan" "class":"OC\\Files\\Cache\\Scanner" "type":"->" "args":["files",true,3]},{"file":"/path/to/public_html/apps/duplicatefinder/lib/Utils/ScannerUtil.php" "line":66,"function":"scan" "class":"OC\\Files\\Utils\\Scanner" "type":"->" "args":["/user/files",true]},{"file":"/path/to/public_html/apps/duplicatefinder/lib/Service/FileInfoService.php" "line":284,"function":"scan" "class":"OCA\\DuplicateFinder\\Utils\\ScannerUtil" "type":"->" "args":["user" "/user/files"]},{"file":"/path/to/public_html/apps/duplicatefinder/lib/BackgroundJob/FindDuplicates.php" "line":79,"function":"scanFiles" "class":"OCA\\DuplicateFinder\\Service\\FileInfoService" "type":"->" "args":["user"]},{"file":"/path/to/public_html/lib/private/User/Manager.php" "line":561,"function":"OCA\\DuplicateFinder\\BackgroundJob\\{closure}" "class":"OCA\\DuplicateFinder\\BackgroundJob\\FindDuplicates" "type":"->" "args":["*** sensitive parameters replaced ***"]},{"file":"/path/to/public_html/apps/duplicatefinder/lib/BackgroundJob/FindDuplicates.php" "line":78,"function":"callForAllUsers" "class":"OC\\User\\Manager" "type":"->" "args":[["Closure"]]},{"file":"/path/to/public_html/lib/public/BackgroundJob/Job.php" "line":80,"function":"run" "class":"OCA\\DuplicateFinder\\BackgroundJob\\FindDuplicates" "type":"->" "args":[null]},{"file":"/path/to/public_html/lib/public/BackgroundJob/TimedJob.php" "line":102,"function":"start" "class":"OCP\\BackgroundJob\\Job" "type":"->" "args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/path/to/public_html/lib/public/BackgroundJob/TimedJob.php" "line":92,"function":"start" "class":"OCP\\BackgroundJob\\TimedJob" "type":"->" "args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/path/to/public_html/cron.php" "line":177,"function":"execute" "class":"OCP\\BackgroundJob\\TimedJob" "type":"->" "args":[["OC\\BackgroundJob\\JobList"]]}],"File":"/path/to/public_html/lib/private/Files/Node/Root.php" "Line":212,"message":"Failed to handle NewFileInfoEvent." "exception":[],"CustomMessage":"Failed to handle NewFileInfoEvent."},"id":"66c217c0d76b1" }