kernow

Well-Known Member
Jul 23, 2004
1,015
55
178
cPanel Access Level
Root Administrator
A server on CL 7 cPanel 58 is starting to send out the following mails:
Code:
/etc/cron.daily/logrotate:
error: failed to rename /usr/local/cpanel/logs/dnsadmin_log to /usr/local/cpanel/logs/dnsadmin_log-20160821: Operation not permitted
error: failed to rename /usr/local/cpanel/logs/error_log to /usr/local/cpanel/logs/error_log-20160821: Operation not permitted
error: failed to rename /usr/local/cpanel/logs/stats_log to /usr/local/cpanel/logs/stats_log-20160821: Operation not permitted
error: failed to rename /usr/local/cpanel/logs/tailwatchd_log to /usr/local/cpanel/logs/tailwatchd_log-20160821: Operation not permitted
error: error running last action script for /usr/local/cpanel/logs/*_log
Any idea what's up?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

The logrotate application installed on your system should not be used to rotate cPanel log files. Check to see if "/etc/logrotate.d/cpanel" exists, and if so, remove that file and configure log rotation for these logs separately via "WHM >> Home >> Service Configuration >> cPanel Log Rotation Configuration".

The size threshold for these log files is configurable via the "Log rotation size threshold" option under the "Stats and Logs" tab in "WHM >> Home >> Server Configuration >> Tweak Settings".

Thank you.
 
  • Like
Reactions: innovaciones

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.