详解Centos 7和Centos 6系统的/tmp目录自动清理规则及区别,tmp目录
概述
分享最近应用碰到的一个奇怪bug,一开始以为是代码上的问题,找了一段时间发现居然是因为系统的一个自动清理规则导致,下面一起来看看吧~
一、应用报错:
logwire.core.exceptions.GeneralUnhandledException: 服务端未处理异常
...
Caused by: org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is
java.io.IOException: The temporary upload location [/tmp/tomcat.5454715517323162300.8031/work/Tomcat/localhost/ROOT] is not valid
....
Caused by: java.io.IOException: The temporary upload location [/tmp/tomcat.5454715517323162300.8031/work/Tomcat/localhost/ROOT] is not valid
报错截图: