CleanTempDirectoryJob Errors After Upgrading Confluence
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
After upgrading Confluence, several CleanTempDirectoryJob errors are shown in the logs.
環境
Confluence 7.4.5
診断
The following appears in atlassian-confluence.log:
2020-12-09 04:00:00,013 ERROR [Caesium-1-3] [confluence.importexport.impl.CleanTempDirectoryJob] runJob Failed to delete /var/atlassian/application-data/confluence/temp/scaledImages
2020-12-09 04:00:00,014 ERROR [Caesium-1-3] [confluence.importexport.impl.CleanTempDirectoryJob] runJob Failed to delete /var/atlassian/application-data/confluence/temp/plantuml656436246909289525.png
原因 1
The user running Confluence does not have permissions to the temp directory.
原因 2
If permissions are correct, check if the temp folder is symlinked to another directory outside of the local home as follows:
lrwxrwxrwx 1 ubuntu ubuntu 23 Oct 1 16:15 temp -> shared-home/node1-temp/
Solution for Cause 1 - Permissions
Please verify that the user running Confluence has full permissions for the Confluence Install and Home directory covered in Confluence Home and other important directories.
As a best-practice, clear out the <confluence-home>/temp directory.
Solution for Cause 2 - Symlink
As described in the following document, it is not possible to symlink the contents of the local home folder. With that in mind, remove the symlink and move the contents back to local-home/temp, or perform a manual clean-up.