Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-15270

Empty temp thumbnail folders are not removed from <Confluence Home>\thumbnails folder

    XMLWordPrintable

    Details

    • Support reference count:
      1

      Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Thumbnails folder are not removed when they are no longer used.

      While it poses no threat in general but theoretically it can cause a horrible and slow death to the file system.

      Resolution

      As of Confluence 6.2.4, parent folders will be removed once thumbnails are deleted, if they are empty.

      For existing systems, if you would like to clean up the existing empty thumbnail folders, you can follow this procedure (for linux):

      1. Perform a full backup of the filesystem
      2. Output folders to be deleted to a file to review (run from shared-home/thumbnails):
        find . -type d -empty > /tmp/empty-folders-to-delete.txt
      3. Review the file and make sure you're comfortable with what will be deleted
      4. Add the -delete switch:
        find . -type d -empty -delete
      5. Run the script again to confirm all empty folders have been deleted:
        find . -type d -empty > /tmp/empty-folders-post-delete.txt

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Last commented:
                  48 weeks, 6 days ago