Hi
We have a problem using virtulamin 4.06 Pro. Whenever we try to rename a domain, virtualmin never detects logrotation configuration for every single domain we apply the operation.
Configuration files actually exist, and they are detected in Virtualmin>Features&Plugins>Log file Rotation. But when we try to perform rename or delete a domain, virtualmin never detects these config files:
Updating log file path in Logrotate configuration .. .. no log rotation configuration found!
We tried to remove and regenerate the whole set of config files, applying command line "virtualmin [disable/enable]-feature --all-domains --logrotate". Disable operation doesn't work too, so we have to remove /etc/logrotate.d/*.conf manually, and enable operation works creating new rotation config files, but the problem remain.
This problem is not happening in our Virtualmin 4.04 GPL testing machine.
Thanks!
Comments
Submitted by andreychek on Fri, 04/04/2014 - 09:38 Comment #1
Howdy -- hmm, that's an unusual problem!
Do you see any errors if you manually run the logrotation? You can do that with a command such as the following:
logrotate -f /etc/logrotate.conf
Submitted by JamieCameron on Fri, 04/04/2014 - 17:14 Comment #2
That error means that Virtualmin couldn't find an entry in /etc/logrotate.conf (or a file included from it) for the domain's Apache access_log file.
Submitted by comworks on Mon, 04/07/2014 - 07:30 Comment #3
Thanks for your answers!
I don't know why, but /etc/logrotate.conf file was wrong! It missed the "include /etc/logrotate.d" line.
I owe you a beer @Madrid :)
Submitted by JamieCameron on Mon, 04/07/2014 - 17:33 Comment #4
Cool, that would explain it.
Submitted by simber on Sat, 03/26/2016 - 07:48 Comment #5
edit: sorry, delete