Yeah, I've read through the other threads but feel that this does not quite match up.
I'm running
OS Ubuntu 12.04.3 LTS
Panel version 11.5.30 Update #28, last updated at Dec 26, 2013 06:56 AM
A customer called in and wondered what was using so much space in his account. Turns out that it was a 4.7GB error.log file that had not been rotated once since the customer was created.
So, i took a look in the logrotate conf for the user.
Thats the first funny thing, because when i look in plesk, the log rotate settings are set to "daily" and "keep 90".
I tried changing the calues in the control panel, but the conf-file does not get changed.
I then found a thread which suggested
Which generates
Another thing that seem strange (but may be in order?) is that the only cron-job that apears to be firing is backupmgr
Now, to me it would seem that more cron jobs should be needed? I mean, the auto-update of PLESK is working.
At the same time, some rotate seem to work, as i have
What the deuce is going on here?
I'm running
OS Ubuntu 12.04.3 LTS
Panel version 11.5.30 Update #28, last updated at Dec 26, 2013 06:56 AM
A customer called in and wondered what was using so much space in his account. Turns out that it was a 4.7GB error.log file that had not been rotated once since the customer was created.
So, i took a look in the logrotate conf for the user.
Code:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
/var/www/vhosts/system/framsidan.org/logs/*.processed {
weekly
rotate 10
compress
missingok
}
/var/www/vhosts/system/framsidan.org/logs/error_log {
weekly
rotate 10
compress
missingok
copytruncate
}
/usr/local/psa/etc/logrotate.d/framsidan.org (END)
Thats the first funny thing, because when i look in plesk, the log rotate settings are set to "daily" and "keep 90".
I tried changing the calues in the control panel, but the conf-file does not get changed.
I then found a thread which suggested
Code:
/usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf /usr/local/psa/logrotate/sbin/logrotate --debug --state=/usr/local/psa/var/logrotate.status /usr/local/psa/etc/logrotate.conf
Which generates
Code:
reading config file /usr/local/psa/etc/logrotate.conf
including /opt/psa/etc/logrotate.d
reading config file Krok-o-dil-fastighetsservice.skyddsrummet.net
reading config info for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/*.processed
reading config info for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/error_log
reading config file admintools.procyon.se
reading config info for /var/www/vhosts/admintools.procyon.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/admintools.procyon.se/statistics/logs/error_log
reading config file beta.framsidan.org
reading config info for /var/www/vhosts/system/framsidan.org/logs/*.processed
reading config info for /var/www/vhosts/system/framsidan.org/logs/error_log
[Many more "Processed" removed for various domains due to posting size limits]
reading config info for /var/lib/tomcat6/logs/*.log
reading config info for /var/lib/tomcat6/logs/catalina.out
reading config file tribagoth.se
reading config info for /var/www/vhosts/tribagoth.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/tribagoth.se/statistics/logs/error_log
reading config file tribalbellydance.se
reading config info for /var/www/vhosts/tribalbellydance.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/tribalbellydance.se/statistics/logs/error_log
reading config file webware.se
reading config info for /var/www/vhosts/webware.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/webware.se/statistics/logs/error_log
reading config file xn--hundhjlpen-v5a.se
reading config info for /var/www/vhosts/xn--hundhjlpen-v5a.se/statistics/logs/*.processed
reading config info for /var/www/vhosts/xn--hundhjlpen-v5a.se/statistics/logs/error_log
reading config info for /opt/psa/var/log/xferlog.processed
reading config info for /opt/psa/var/log/maillog.processed
reading config info for /opt/psa/var/log/psi.log
reading config info for /opt/psa/var/log/ftp_tls.log
reading config info for /opt/psa/admin/logs/*_log.processed
reading config info for /opt/psa/var/webalizer.cache
reading config info for /var/log/sw-cp-server/error_log
reading config info for /opt/psa/admin/logs/panel.log
reading config info for /opt/psa/admin/logs/health-alarm.log
reading config file /usr/local/psa/logrotate/sbin/logrotate
error: /usr/local/psa/logrotate/sbin/logrotate:1 lines must begin with a keyword or a filename (possibly in double quotes)
error: /usr/local/psa/logrotate/sbin/logrotate:2 lines must begin with a keyword or a filename (possibly in double quotes)
error: /usr/local/psa/logrotate/sbin/logrotate:3 unknown option 'T' -- ignoring line
error: /usr/local/psa/logrotate/sbin/logrotate:3 unexpected text
error: /usr/local/psa/logrotate/sbin/logrotate:4 lines must begin with a keyword or a filename (possibly in double quotes)
reading config file /usr/local/psa/etc/logrotate.conf
including /opt/psa/etc/logrotate.d
reading config file Krok-o-dil-fastighetsservice.skyddsrummet.net
error: Krok-o-dil-fastighetsservice.skyddsrummet.net:5 duplicate log entry for /var/www/vhosts/Krok-o-dil-fastighetsservice.skyddsrummet.net/statistics/logs/*.processed
root@gallifrey:~#
Another thing that seem strange (but may be in order?) is that the only cron-job that apears to be firing is backupmgr
Code:
root@gallifrey:~# grep -ir psa /var/log/syslog |grep -ir cron
Jan 8 07:05:01 gallifrey CRON[13313]: (root) CMD ([ -x /opt/psa/admin/sbin/backupmng ] && /opt/psa/admin/sbin/backupmng >/dev/null 2>&1)
[many lines removed due to posting limits]
Now, to me it would seem that more cron jobs should be needed? I mean, the auto-update of PLESK is working.
At the same time, some rotate seem to work, as i have
Code:
root@gallifrey:/opt/psa/var/log# ls -la
total 3156
drwxr-xr-x 2 root root 4096 Jan 8 18:54 .
drwxr-xr-x 12 psaadm psaadm 4096 Dec 26 06:56 ..
-rw------- 1 root root 248 Jan 8 18:57 ftp_tls.log
-rw------- 1 root root 90789 Jan 8 18:29 ftp_tls.log.1.gz
-rw-r----- 1 syslog adm 32864 Jan 8 19:18 maillog
-rw-r----- 1 root root 861153 Jan 8 18:33 maillog.processed.1.gz
-rw-r--r-- 1 root root 940891 Jan 5 06:39 maillog.processed.2.gz
-rw-r--r-- 1 root root 962163 Jan 1 06:37 maillog.processed.3.gz
-rw-r----- 1 root root 25856 Jan 8 18:33 mail_traffic_pendings.dat
-rw-r--r-- 1 root root 0 Jan 8 18:33 smtp_pendings.log
-rw-r----- 1 root root 3551 Jan 8 19:00 xferlog
-rw-r----- 1 root root 281621 Jan 8 18:32 xferlog.processed.1.gz
root@gallifrey:/opt/psa/var/log#
What the deuce is going on here?