Hi! i have problem with the logrotate!
All days, i receive this message:
Code:
/etc/cron.daily/logrotate:
doSQL() | ERROR: Incorrect SQL Query -> MySQL server has gone away
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
del_file() | Ending...
del_file() | Starting...
sys_command('/bin/cat /var/log/ispcp/mail.log.diff|/bin/grep 'pop3d-ssl'|/bin/grep 'user='|/bin/grep 'retr='|/bin/grep -v 'ip=\[::ffff:127.0.0.1\]'|/usr/bin/awk '{print $7,$9,substr($10,1,length($10)-1);}' 1>/var/log/ispcp/pop3.log') | Ending...
sys_command() | Starting...
del_file() | Ending...
del_file() | Starting...
sys_command('/bin/cat /var/log/ispcp/mail.log.diff|/bin/grep 'courierpop3login'|/bin/grep 'user='|/bin/grep 'top='|/bin/grep -v 'ip=\[::ffff:127.0.0.1\]'|/usr/bin/awk '{print $7,$9,substr($10,1,length($10)-1);}' 1>/var/log/ispcp/pop3.log') | Ending...
sys_command() | Starting...
del_file() | Ending...
del_file() | Starting...
sys_command('/bin/cat /var/log/ispcp/mail.log.diff|/bin/grep 'imapd-ssl'|/bin/grep 'user='|/bin/grep -v 'ip=\[::ffff:127.0.0.1\]'|/usr/bin/awk '{print $7,$9,substr($10,1,length($10)-1);}' 1>/var/log/ispcp/imap.log') | Ending...
sys_command() | Starting...
del_file() | Ending...
del_file() | Starting...
sys_command('/bin/cat /var/log/ispcp/mail.log.diff|/bin/grep 'imapd'|/bin/grep 'user='|/bin/grep 'body='|/bin/grep -v 'ip=\[::ffff:127.0.0.1\]'|/usr/bin/awk '{print $7,$9,substr($10,1,length($10)-1);}' 1>/var/log/ispcp/imap.log') | Ending...
sys_command() | Starting...
del_file() | Ending...
del_file() | Starting...
del_file() | Ending...
del_file() | Starting...
sys_command('/bin/cat /var/log/ispcp/smtp_delivery.log | /usr/bin/awk '{if ($5 != "localhost" && $6 != "localhost" && $10 != "?") print substr($3, index($3, "@")+1, length($3)),substr($4, index($4, "@")+1, length($4)),$10;}' 1>/var/log/ispcp/smtp.log') | Ending...
sys_command() | Starting...
sys_command('/bin/grep 'postfix' /var/log/ispcp/mail.log.diff | /usr/sbin/maillogconvert.pl standard 1>/var/log/ispcp/smtp_delivery.log') | Ending...
sys_command() | Starting...
gen_log_file() | Ending...
sys_command('/bin/mv /var/log/ispcp/mail.log /var/log/ispcp/mail.log.prev') | Ending...
sys_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/mail.log /var/log/ispcp/mail.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/proftpd/ftp_traff.log /var/log/ispcp/ftp_traff.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
collect_http_traffic() | Ending...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/microuniversal.com-traf.log /var/log/ispcp/microuniversal.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/jonix.net-traf.log /var/log/ispcp/jonix.net-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
gen_log_file() | Ending...
sys_command('/bin/mv /var/log/ispcp/wikipeando.com-traf.log /var/log/ispcp/wikipeando.com-traf.log.prev') | Ending...
sys_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/wikipeando.com-traf.log /var/log/ispcp/wikipeando.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/mocek.com.ar-traf.log /var/log/ispcp/mocek.com.ar-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/svfnet.net-traf.log /var/log/ispcp/svfnet.net-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/metodotbs.com-traf.log /var/log/ispcp/metodotbs.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/novatek-chem.com-traf.log /var/log/ispcp/novatek-chem.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/programaweb.com-traf.log /var/log/ispcp/programaweb.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/cavadevices.com-traf.log /var/log/ispcp/cavadevices.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/sotosalbos.es-traf.log /var/log/ispcp/sotosalbos.es-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/quimicajpg.com-traf.log /var/log/ispcp/quimicajpg.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/bcmsa.com-traf.log /var/log/ispcp/bcmsa.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
gen_log_file() | Ending...
sys_command('/bin/mv /var/log/ispcp/prodermica.com-traf.log /var/log/ispcp/prodermica.com-traf.log.prev') | Ending...
sys_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/prodermica.com-traf.log /var/log/ispcp/prodermica.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/albafotonica.com-traf.log /var/log/ispcp/albafotonica.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/emdg.com.ar-traf.log /var/log/ispcp/emdg.com.ar-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/comoanudarlacorbata.com.ar-traf.log /var/log/ispcp/comoanudarlacorbata.com.ar-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
gen_log_file() | Ending...
sys_command('/bin/mv /var/log/ispcp/losfrasquitos.com-traf.log /var/log/ispcp/losfrasquitos.com-traf.log.prev') | Ending...
sys_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/losfrasquitos.com-traf.log /var/log/ispcp/losfrasquitos.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/elporchedelascasillas.com-traf.log /var/log/ispcp/elporchedelascasillas.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/royal-computer.es-traf.log /var/log/ispcp/royal-computer.es-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/anticipa.org-traf.log /var/log/ispcp/anticipa.org-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/clinicabisheimer.com-traf.log /var/log/ispcp/clinicabisheimer.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/herramientasonline.com-traf.log /var/log/ispcp/herramientasonline.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/micro-speed.net-traf.log /var/log/ispcp/micro-speed.net-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/juancristobalescultor.es-traf.log /var/log/ispcp/juancristobalescultor.es-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/trama.org.ar-traf.log /var/log/ispcp/trama.org.ar-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/neocenter.es-traf.log /var/log/ispcp/neocenter.es-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/fontaccion.com-traf.log /var/log/ispcp/fontaccion.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/jalmast.com-traf.log /var/log/ispcp/jalmast.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/dehesavaldencina.com-traf.log /var/log/ispcp/dehesavaldencina.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/argentinaenelmundo.com-traf.log /var/log/ispcp/argentinaenelmundo.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/personalexpress.es-traf.log /var/log/ispcp/personalexpress.es-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
gen_log_file() | Ending...
sys_command('/bin/mv /var/log/ispcp/myeverdream.com-traf.log /var/log/ispcp/myeverdream.com-traf.log.prev') | Ending...
sys_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/myeverdream.com-traf.log /var/log/ispcp/myeverdream.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
gen_log_file() | Ending...
sys_command('/bin/mv /var/log/ispcp/complementos-syn.com-traf.log /var/log/ispcp/complementos-syn.com-traf.log.prev') | Ending...
sys_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/complementos-syn.com-traf.log /var/log/ispcp/complementos-syn.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/milparacristo.com.ar-traf.log /var/log/ispcp/milparacristo.com.ar-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
doSQL() | Ending...
doSQL() | Starting...
del_file() | Ending...
del_file() | Starting...
diff_command() | Ending...
diff_command() | Starting...
sys_command('/bin/cp /var/log/apache2/svfnet.com-traf.log /var/log/ispcp/svfnet.com-traf.log') | Ending...
sys_command() | Starting...
gen_log_file() | Starting...
collect_http_traffic() | Starting...
vrl_traff_engine() | Starting...
vrl_traff_start_up() | Ending...
zero_traffic_entries() | Ending...
zero_traffic_entries() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
doSQL() | Ending...
doSQL() | Starting...
get_conf() | Ending...
setup_main_vars() | Ending...
decrypt_db_password() | Ending...
decrypt_db_password() | Starting...
setup_main_vars() | Starting...
get_file() | Ending...
get_file() | Starting...
get_conf() | Starting...
vrl_traff_start_up() | Starting...
get_conf() | Ending...
setup_main_vars() | Ending...
decrypt_db_password() | Ending...
decrypt_db_password() | Starting...
setup_main_vars() | Starting...
get_file() | Ending...
get_file() | Starting...
get_conf() | Starting...
error: error running prerotate script for /var/log/proftpd/ftp_traff.log, leaving old log in place
run-parts: /etc/cron.daily/logrotate exited with return code 1
Any idea?