Submitted by masp on Mon, 06/22/2015 - 10:36
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
Submitted by andreychek on Mon, 06/22/2015 - 10:42 Comment #1
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?
Submitted by masp on Mon, 06/22/2015 - 10:57 Comment #2
there is some *.gz
and all a nother
like
*_access_log
*_error_log
todays date
(log file is large)
Submitted by masp on Mon, 06/22/2015 - 13:13 Comment #3
how to check resolve , why log rotate not active for this folder ?
Submitted by JamieCameron on Mon, 06/22/2015 - 18:27 Comment #4
You can try validating the logrotate configuration with the command
logrotate -d -f /etc/logrotate.conf
and see if it reports any errors.Submitted by masp on Tue, 06/23/2015 - 07:38 Comment #5
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
Submitted by andreychek on Tue, 06/23/2015 - 09:58 Comment #6
After changing those permissions, is it working properly for you now?
Submitted by masp on Tue, 06/23/2015 - 10:11 Comment #7
yes
Submitted by JamieCameron on Tue, 06/23/2015 - 15:22 Comment #8
What were the permissions on /etc/logrotate.d/eddnet.org.conf before you fixed them?
Submitted by masp on Wed, 06/24/2015 - 01:51 Comment #9
I have no idea, sorry, https://forum.directadmin.com/showthread.php?t=49635 some related info
Submitted by JamieCameron on Wed, 06/24/2015 - 16:29 Comment #10
Thanks, that helps - Virtualmin will ensure the correct permissions are set in the next release.
Submitted by Issues on Wed, 07/08/2015 - 16:30 Comment #11
Automatically closed -- issue fixed for 2 weeks with no activity.
Submitted by Issues on Wed, 07/08/2015 - 16:30 Comment #12
Automatically closed -- issue fixed for 2 weeks with no activity.