Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Markus Johansson 1911 posts 5757 karma points MVP c-trib
    Mar 05, 2018 @ 09:42
    Markus Johansson
    0

    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

  • Michele Di Maria 34 posts 239 karma points
    Mar 05, 2018 @ 13:16
    Michele Di Maria
    0

    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

  • Michele Di Maria 34 posts 239 karma points
    Mar 06, 2018 @ 12:01
    Michele Di Maria
    0

    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

    Test environment

  • Markus Johansson 1911 posts 5757 karma points MVP c-trib
    Mar 06, 2018 @ 14:50
    Markus Johansson
    0

    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

  • Michele Di Maria 34 posts 239 karma points
    Mar 07, 2018 @ 06:28
    Michele Di Maria
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft