apache log rotate virtualmin default failed

I have virtualmin with logrotate for websites ebabled
for 2-3 servers
and all time
du -h --max-depth=1 /var/log/

5,2G /var/log/virtualmin

- /var/log/virtualmin have lot of size
why ?

(also backup for mysql failed to create becouse no space left device )

Status: 
Closed (fixed)

Comments

Howdy -- it's difficult to say why that directory is large. It will need to be inspected a little closer.

My suggestion would be to review that directory, and look at the various files there. How large are those files there? And how old are the largest files?

there is some *.gz
and all a nother
like
*_access_log
*_error_log
todays date

(log file is large)

how to check resolve , why log rotate not active for this folder ?

You can try validating the logrotate configuration with the command logrotate -d -f /etc/logrotate.conf and see if it reports any errors.

please add virtualmin ability to fix , to check this during install or recheck config!
solution and problem:

# logrotate -d -f /etc/logrotate.d/eddnet.org.conf
Ignoring /etc/logrotate.d/eddnet.org.conf because of bad file mode.
Handling 0 logs

# logrotate -d /etc/logrotate.conf 2>&1 | grep -i "bad file mode" -c
59
# chmod 644 /etc/logrotate.d/*
# logrotate -d /etc/logrotate.conf 2>&1 | grep -i "bad file mode" -c
0

== DONe

After changing those permissions, is it working properly for you now?

What were the permissions on /etc/logrotate.d/eddnet.org.conf before you fixed them?

Thanks, that helps - Virtualmin will ensure the correct permissions are set in the next release.

Automatically closed -- issue fixed for 2 weeks with no activity.

Automatically closed -- issue fixed for 2 weeks with no activity.