temp file management
Hello, in the temp directory (/usr/share/tomcat/temp in centos) we can find chunk files aged of several days. Why are they not deleted automatically when the transfer is stopped? It could saturate the disk without any alert of linshare if ther is too many temp files. I'm on version 2.2.1 . Thanks
Hello,
Can you share with us the content of your /temp, to identify the origin of this issue? Thanks.
Hello, here the content of the temp directory on wednesday: -rw------- 1 tomcat tomcat 684113 4 juin 15:41 linshare-chunks-269097e3-a7b0-44d1-87d1-ec0fc8f06f311158389201593546153.temp -rw------- 1 tomcat tomcat 16316486 21 mai 08:05 linshare-chunks-5b76b19a-b3d9-4df1-a834-b6619656cdd93248190995515039397.temp -rw------- 1 tomcat tomcat 2454176499 17 mai 18:25 linshare-chunks-6725f522-dd6f-4b6c-8262-cdb5da9308d11858382907192614739.temp -rw------- 1 tomcat tomcat 5844671 24 mai 15:24 linshare-chunks-97dd07b1-442e-4930-b9f5-5e812fe800f96120401353819611517.temp -rw------- 1 tomcat tomcat 221705 26 mai 19:06 linshare-chunks-9aa3c6cd-463a-4f29-95f3-9007582d05605963132947002101294.temp -rw------- 1 tomcat tomcat 204419119 5 juin 15:24 linshare-chunks-b4aa9251-f1e1-45bd-a8a7-55bb0e3e93a35554787126267248140.temp -rw------- 1 tomcat tomcat 620344 7 juin 09:59 linshare-chunks-b76f5c1d-de91-4285-8120-2d92331d5cbe7140940600935247511.temp -rw------- 1 tomcat tomcat 20671978 24 mai 15:24 linshare-chunks-fd4760cb-c311-4450-9834-46e8a2ff0750343837071518924180.temp -rw-r--r-- 1 tomcat tomcat 0 3 juin 12:27 org%002ehibernate%002ecache%002e%0053tandard%0051uery%0043ache.data -rw-r--r-- 1 tomcat tomcat 0 3 juin 12:27 org%002ehibernate%002ecache%002e%0055pdate%0054imestamps%0043ache.data -rw-r--r-- 1 tomcat tomcat 0 3 juin 12:27 org%002ehibernate%002ecache%002einternal%002e%0053tandard%0051uery%0043ache.data -rw-r--r-- 1 tomcat tomcat 7050 7 juin 09:56 org%002ehibernate%002ecache%002espi%002e%0055pdate%0054imestamps%0043ache.data -rw-r--r-- 1 tomcat tomcat 124284 7 juin 10:04 org%002elinagora%002elinshare%002ecore%002edomain%002eentities%002e%0046unctionality.data
Hello, on a 4.0 fresh installation on debian 10, the issue is still there... If the user stop the upload, the chunk is never deleted. temp directory content: drwx------ 2 tomcat tomcat 4,0K août 6 16:45 cxf-tmp-4542072144078426638 -rw-r----- 1 tomcat tomcat 0 août 6 16:41 default-query-results-region.data -rw-r----- 1 tomcat tomcat 0 août 7 09:15 default-update-timestamps-region.data -rw------- 1 tomcat tomcat 6,0G août 6 16:37 linshare-chunks-8787b0cf-310a-46b2-9c25-00449ace50e114665981442263935215.temp -rw-r----- 1 tomcat tomcat 0 août 6 16:41 org%002ehibernate%002ecache%002e%0053tandard%0051uery%0043ache.data -rw-r----- 1 tomcat tomcat 0 août 6 16:41 org%002ehibernate%002ecache%002e%0055pdate%0054imestamps%0043ache.data -rw-r----- 1 tomcat tomcat 0 août 7 09:15 org%002elinagora%002elinshare%002ecore%002edomain%002eentities%002e%0046unctionality.data drwx------ 2 root root 4,0K août 6 16:19 vmware-root_526-2957190390
Hi,
This is a known issue but we never had the time to work on it. As a workaround, I can suggest to you to use a cron job with a shell command to delete these chunks, ex: find /usr/share/tomcat/temp -mtime +7 -exec rm -frv {} \;