logrotate not able to truncate catalina.out [duplicate]
Clash Royale CLAN TAG #URR8PPP 0 This question already has an answer here: logrotate not working 2 answers I'm running tomcat server in my centos machine. I've following content in my /etc/logrotate.d/tomcat file: /log/apache-tomcat/catalina.out copytruncate daily size 256M rotate 8 missingok maxage 7 I tried to run the logrotate command manually in debug mode. /usr/sbin/logrotate -d /etc/logrotate.conf In the logs, I found following content regarding the /log/apache-tomcat/catalina.out file. rotating pattern: /log/apache-tomcat/catalina.out 268435456 bytes (8 rotations) empty log files are rotated, old logs are removed considering log /log/apache-tomcat/catalina.out log needs rotating rotating log /log/apache-tomcat/catalina.out, log->rotateCount is 8 dateext suffix '-20190206' glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' glob finding old rotated logs failed copying /log/apache-tomcat/catalina.out t...