After installing the package and pressing "Scan" I can see multiple requests to /umbraco/backoffice/MediaCleaner/Dashboard/getInfo but nothing happens.
The log looks like this:
2018-03-05 10:37:20,353 [P59248/D10/T58] INFO MediaCleaner.BusinessLogic.Processor - START processing
2018-03-05 10:37:20,353 [P59248/D10/T58] INFO MediaCleaner.BusinessLogic.Processor - START processing
2018-03-05 10:37:20,353 [P59248/D10/T58] INFO MediaCleaner.BusinessLogic.Processor - Executing Step: Check user rights
2018-03-05 10:37:20,353 [P59248/D10/T58] INFO MediaCleaner.BusinessLogic.Processor - Executing Step: Initializing the Media and Content Service.
2018-03-05 10:37:20,353 [P59248/D10/T58] INFO MediaCleaner.BusinessLogic.Processor - Executing Step: Reading media data.
Not sure if this is because the media-folder is quite big on our site? We have about 9000 media-items on this site.
Thanks for testing, I might have been restrictions - I ended up doing with raw SQL but I had to do it in "chunks" so it might be our database that could not handle the whole transaction.
Well, it is a pity because a SQL query won't check and clean the Media directory in your Umbraco instance.
Consider that at the step "Reading media data" is is performed a file scan in the /media folder of your website, so nothing related to the database. If this does't return any result could be something related to permissions, even if there is a global "try-catch" that should report any issue in all the "processor", and whatever error should be reported.
This if the task is not "killed" somehow by IIS...
Please give it a try, personally I saved hundred of MegaBytes in useless files inside the /media folder of my Umbraco instances.
Nothing happens
Hi!
After installing the package and pressing "Scan" I can see multiple requests to /umbraco/backoffice/MediaCleaner/Dashboard/getInfo but nothing happens.
The log looks like this:
2018-03-05 10:37:20,353 [P59248/D10/T58] INFO MediaCleaner.BusinessLogic.Processor - START processing 2018-03-05 10:37:20,353 [P59248/D10/T58] INFO MediaCleaner.BusinessLogic.Processor - START processing 2018-03-05 10:37:20,353 [P59248/D10/T58] INFO MediaCleaner.BusinessLogic.Processor - Executing Step: Check user rights 2018-03-05 10:37:20,353 [P59248/D10/T58] INFO MediaCleaner.BusinessLogic.Processor - Executing Step: Initializing the Media and Content Service. 2018-03-05 10:37:20,353 [P59248/D10/T58] INFO MediaCleaner.BusinessLogic.Processor - Executing Step: Reading media data.
Not sure if this is because the media-folder is quite big on our site? We have about 9000 media-items on this site.
// m
Hi, let me give a look... I will try to simulate your situation creating 9000+ items in my test environment. I will keep you updated.
Thanks, Michele
Hi Markus, I am testing it in an environment with more than 21000 media items and it works...
Can you please double check that in your logfiles is not reported any further step on MediaCleaner? Or maybe some error, which should be logged also?
Are there any restrictions on IIS? Like memory/processor/execution time? Can you please check the permissions in the /media/ folder?
Thanks, Michele
Hi!
Thanks for testing, I might have been restrictions - I ended up doing with raw SQL but I had to do it in "chunks" so it might be our database that could not handle the whole transaction.
// m
Well, it is a pity because a SQL query won't check and clean the Media directory in your Umbraco instance.
Consider that at the step "Reading media data" is is performed a file scan in the /media folder of your website, so nothing related to the database. If this does't return any result could be something related to permissions, even if there is a global "try-catch" that should report any issue in all the "processor", and whatever error should be reported.
This if the task is not "killed" somehow by IIS...
Please give it a try, personally I saved hundred of MegaBytes in useless files inside the /media folder of my Umbraco instances.
Have a good day, Michele
is working on a reply...