Log file rotation not removed.

I did something I don't normal do.. I deleted a site and put a new one up.. Same name just a new starting over on the site.... But when I did I get this error..

. Log file rotation failed! : .. the log file /var/log/virtualmin/eternal-lights.com_access_log is already being rotated at /usr/libexec/webmin/web-lib-funcs.pl line 1427.

SO .. When I deleted the old site, the scripts are not removing the old file rotation. So putting the new one and the error.. I figured this is something you should know about. Thanks Don

Status: 
Closed (works as designed)

Comments

Ilia's picture
Submitted by Ilia on Wed, 03/23/2016 - 13:46

Hi, Don!

Don, this issue, to be correct, must be addressed to Virtualmin team. The fact that the logs are not being rotated properly, as some strings weren't remove upon site deletion, seems most likely like Virtualmin issue and should be fixed on its end.

I will re-assign the issue to make sure that it will get proper attention.

Can you post the block from your /etc/logrotate.conf file for this domain's log?

Jamie, This would not have to do with that file, but I posted it anyway below.. .. I think it found the file in the logrotate.d/sitename.conf is what it found for the site to do a rotate. It should have been simple to verify, delete a site and put it back. But when I tried on a differant server, it didn't repeat it's self. So at this point I don't know. Just close this ticket and I keep a eye open for it again.

Thanks Don

############################## File Below.... see "man logrotate" for details rotate log files weekly

weekly

keep 4 weeks worth of backlogs

rotate 4

create new (empty) log files after rotating old ones

create

use date as a suffix of the rotated file

dateext

uncomment this if you want your log files compressed compress RPM packages drop log rotation information into this directory

include /etc/logrotate.d

no packages own wtmp and btmp -- we'll rotate them here

/var/log/wtmp { monthly create 0664 root utmp minsize 1M rotate 1 }

/var/log/btmp { missingok monthly create 0600 root utmp rotate 1 }

system-specific logs may be also be configured here.

/var/log/procmail.log { rotate 5 daily compress }

Status: Active » Closed (works as designed)