Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-46006

Jira does not clean up the temporary directory ($JIRA_INSTALL/temp) automatically

      Summary

      Jira does not clean up the temporary directory ($JIRA_INSTALL/temp) automatically.

      This is a major problem for Jira installations since the server hosting the Jira application might run out of space due to the size of the temp directory.

      As a result, the Jira Health Check might report "Low disk space on device containing temporary directory".

      Expected Results

      Jira deletes old files during startup.

      Actual Results

      Looking at the file dates, many of the files are several months old.

      Workaround

      It is safe to manually delete the contents of the JIRA INSTALL/temp directory, as long as Jira is not running. Jira uses this directory to store all sorts of temporary files (downloading add-ons, add-ons manually uploaded by users, CSV imports, etc), so deleting it while Jira is running could cause instability, data loss and system crash.

      Information about the fix introduced in Jira 9.5.0

      For more information about the fix, and how to enabled it (it is disabled by default), please refer to the KB article https://confluence.atlassian.com/display/JIRAKB/Jira+Temporary+Directory+Cleaner.

          Form Name

            [JRASERVER-46006] Jira does not clean up the temporary directory ($JIRA_INSTALL/temp) automatically

            Hi,

            the fix will be delivered in Jira 9.5.0. We decided to make the feature optional so it can be enabled by modifying Java properties on Jira startup. More information will be provided in Jira 9.5 release notes.

            Sławomir Zaraziński,
            Jira Software Engineer

            Sławomir Zaraziński added a comment - Hi, the fix will be delivered in Jira 9.5.0. We decided to make the feature optional so it can be enabled by modifying Java properties on Jira startup. More information will be provided in Jira 9.5 release notes. Sławomir Zaraziński, Jira Software Engineer

            Also 8.21.0 Data Center version is affected

            Iro Karavasili added a comment - Also 8.21.0 Data Center version is affected

            Thank you, for changing status to In progress

            Gonchik Tsymzhitov added a comment - Thank you, for changing status to In progress

            Nidhi added a comment -

            Any tentative date for fixing this?

            Nidhi added a comment - Any tentative date for fixing this?

            also affecting 8.17.0

            Manvisha Kodali added a comment - also affecting 8.17.0

            Veenit Doshi added a comment - https://getsupport.atlassian.com/browse/PS-70892

            Ok,

            I imagine that I have all these files because the clean up happens at start up end my instance has been running for over a year

            Thanks you!

            FrancescoKa added a comment - Ok, I imagine that I have all these files because the clean up happens at start up end my instance has been running for over a year Thanks you!

            Hi
            yes, you can do

            Gonchik Tsymzhitov added a comment - Hi yes, you can do

            Hi,

            I'm noticing the same problem (with the 7.13 version)

            In fact there are 3 years old files in temp dir.

            Can I safely delete all the files older than, let's say, one month?

             

             

            FrancescoKa added a comment - Hi, I'm noticing the same problem (with the 7.13 version) In fact there are 3 years old files in temp dir. Can I safely delete all the files older than, let's say, one month?    

            Hi! 

             

            Jira had uptime 104 days, and 62GB in $JIRA_INSTALL/temp.

             

            May I know this script as cron job  will it be ok?

             

             

             find $JIRA_INSTALL/temp/ -mtime +3 -exec rm {} \;
            

             

            Because after 3 days looks like all related info is too old.

             

            Cheers,

            Gonchik Tsymzhitov

            Gonchik Tsymzhitov added a comment - Hi!    Jira had uptime 104 days, and 62GB in $JIRA_INSTALL/temp.   May I know this script as cron job  will it be ok?      find $JIRA_INSTALL/temp/ -mtime +3 -exec rm {} \;   Because after 3 days looks like all related info is too old.   Cheers, Gonchik Tsymzhitov

              klopacinski Karol Lopacinski
              ab39859c74dd Kirk McCann
              Affected customers:
              62 This affects my team
              Watchers:
              72 Start watching this issue

                Created:
                Updated:
                Resolved: