Enable log file rotation

Debian 9

I try to enable log file rotation on a virtual server and get this message:

Log file rotation failed! : .. the log file /var/log/virtualmin/dkjonesandco.net_access_log is already being rotated at /usr/share/webmin/web-lib-funcs.pl line 1479.

It's fine if it's already enabled but virtualmin should pick this up and show the box as checked.

Thanks

Status: 
Closed (cannot reproduce)

Comments

That's an unusual situation - how was rotation for that log setup if not via Virtualmin?

It wasn’t. This is a new domain on the system I just added. It’s worth mentioning that I first added it without the Apache web site, for email only. Then when I realized Apache site would be required for my webmail setup, autodiscover etc I added it, now this message shows when I try to enable log file rotation.

Was this domain perhaps deleted and then re-created at any point? I'm trying to figure out how this obsolete logrotate entry was still there.

It was moved to the subserver of another.

This happened again tonight. I disable Apache web site on a domain so Virtualmin would rewrite the apache directives, and upon re-enabling the domain I get this error:

Log file rotation failed! : .. the log file /var/log/virtualmin/mckenziemonuments.com_access_log is already being rotated at /usr/share/webmin/web-lib-funcs.pl line 1479.

I noticed that most of the time the Log File Rotation checkbox is not available when editing a server, however when I moved some domains from my old server, a few times I saw the box and checked it, then received this message. This may be because Debian already rotates them. I'm going to close this issue until it comes up under normal circumstances again.

Status: Active » Closed (cannot reproduce)