cancel
Showing results for 
Search instead for 
Did you mean: 

Files in tomcat/temp not being deleted

sreid
Champ in-the-making
Champ in-the-making
We have a situation where files occasionally aren't being deleted from the tomcat/temp folder on our Linux server.  These files all have the word "upload" in the name (for example, upload_844ef312_0c3a_433f_90d1_d9592f01909a_00000134.tmp), and they date from last week to several months ago when this system was upgraded to 4.2.1.  I've found postings online for how to change the location of the tomcat temp folder, but nothing about how to ensure that the folder gets cleaned out.  These files are large enough to periodically cause disk space issues on this server (file sizes range from 50 KB up to almost 400 MB).  The partition on this server is definitely undersized, but I'm working on that issue separately.

I would've expected that the system would clean out temp files when the system restarts, but that doesn't appear to be happening.  Is there a setting somewhere that will force these temp files to be removed on a restart?
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
No files are not cleaned on restart.    But the files below tomcat/temp/Alfresco should be cleaned out periodically.

If alfresco is putting files directly in tomcat/temp (rather than tomcat/temp/Alfresco) then its probably a bug that needs fixing.   

In the meantime if alfresco is not running you can safely remove those files.

sreid
Champ in-the-making
Champ in-the-making
I deleted the tmp files and everything appears to still be running properly.  We've tried reproducing the problem (interrupting large uploads partway through, for example), but we can't make it happen.  I'll just keep an eye on the system and see if a pattern emerges for when these files are left around.