Current time: 12-24-2024, 01:44 AM Hello There, Guest! (LoginRegister)


Post Reply 
Logrotate problem!
Author Message
skirmish Offline
Newbie
*

Posts: 5
Joined: Mar 2008
Reputation: 0
Post: #1
Logrotate problem!
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?
06-15-2008 09:20 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Logrotate problem!
Code:
ERROR: Incorrect SQL Query -> MySQL server has gone away
Rolleyes

Is this real ?
Can you tell us more about your ispCP Version and Server ?

Greez BeNe
06-16-2008 03:30 AM
Visit this user's website Find all posts by this user Quote this message in a reply
skirmish Offline
Newbie
*

Posts: 5
Joined: Mar 2008
Reputation: 0
Post: #3
RE: Logrotate problem!
ispCP Omega RC4, Debian etch, default config.

Today not received any message, yesterday I rebooted the MySQL's daemon ... : S

I swear, is all real!
06-16-2008 11:49 PM
Find all posts by this user Quote this message in a reply
suw Offline
Junior Member
*

Posts: 17
Joined: Sep 2008
Reputation: 0
Post: #4
RE: Logrotate problem!
I have the same problem. It seems logrotate has some problems moving proftpd logs.
I'll dig harder to find the problem and the solution.
3 servers all on Debian etch - all with the same logrotate error.
09-15-2008 07:44 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #5
RE: Logrotate problem!
Is /var/log/proftpd/ftp_traff.log existing? What ispcp version do you use?
09-15-2008 07:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
suw Offline
Junior Member
*

Posts: 17
Joined: Sep 2008
Reputation: 0
Post: #6
RE: Logrotate problem!
Here's what I got today:

error: error running postrotate script for /var/log/proftpd/xferlog
Name "main::sub_id_name" used only once: possible typo at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 257.
syslogd: no process killed
error: error running postrotate script for /var/log/proftpd/ftp_traff.log
run-parts: /etc/cron.daily/logrotate exited with return code 1

ispcp rc6 downloaded from sourceforge.net
It seems something is happening with the script running on debian.
09-16-2008 01:39 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #7
RE: Logrotate problem!
suw Wrote:ispcp rc6 downloaded from sourceforge.net It seems something is happening with the script running on debian.
It can not be rc6 since code that issue this warning was introduced after rc6 was released. Also it was corrected on the trunk.
This message (Name "main::sub_id_name" used only once: possible typo at /var/www/ispcp/engine/traffic/ispcp-vrl-traff line 257.) is harmless. Please answer my question: /var/log/proftpd/ftp_traff.log exists? I need to know this so i can fix this.
09-17-2008 01:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
suw Offline
Junior Member
*

Posts: 17
Joined: Sep 2008
Reputation: 0
Post: #8
RE: Logrotate problem!
Quote:xxx@S2:/$ cd /var/log/proftpd/
xxx@S2:/var/log/proftpd$ ls
controls.log ftp_traff.log.4.gz xferlog xferlog.3.gz xferlog.6.gz
controls.log.0 ftp_traff.log.5.gz xferlog.0 xferlog.4 xferlog.7.gz
ftp_traff.log ftp_traff.log.6.gz xferlog.1 xferlog.4.gz xferreport
ftp_traff.log.1 ftp_traff.log.7.gz xferlog.2 xferlog.5 xferreport.0
ftp_traff.log.2.gz proftpd.log xferlog.2.gz xferlog.5.gz
ftp_traff.log.3.gz proftpd.log.0 xferlog.3 xferlog.6

xxx@S2: ls -alhd ftp_traff.log
-rw-r--r-- 1 root root 439K 2008-09-18 15:59 ftp_traff.log

I hope this helps you.
09-18-2008 11:02 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #9
RE: Logrotate problem!
Found the problem. If rsyslog is used logrotate will fail on
Code:
/usr/bin/killall -HUP syslogd
For debian replace /etc/logrotate.d/ispcp with:
Code:
/var/log/apache2/users/*.log {
  weekly
  missingok
  rotate 52
  compress
  delaycompress
  notifempty
  create 640 root adm
  sharedscripts
  prerotate
    /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log
  endscript
  postrotate
    /etc/init.d/apache2 reload > /dev/null
  endscript
}

/var/log/apache2/backup/*.log.perv {
  size 5M
  missingok
  rotate 5
  compress
  delaycompress
  notifempty
  create 640 root adm
}

/var/log/proftpd/xferlog {
  daily
  rotate 7
  missingok
  compress
  delaycompress
  postrotate
    if [ -e /var/run/syslogd.pid ]; then
      /usr/bin/killall -HUP syslogd
    elif [ -e /var/run/rsyslogd.pid ]; then
      /usr/bin/killall -HUP rsyslogd
    fi
  endscript
}

/var/log/proftpd/ftp_traff.log {
  daily
  rotate 7
  missingok
  compress
  delaycompress
  prerotate
    /var/www/ispcp/engine/traffic/ispcp-vrl-traff > /var/log/ispcp/ispcp-vrl-traff.log
  endscript
  postrotate
    if [ -e /var/run/syslogd.pid ]; then
      /usr/bin/killall -HUP syslogd
    elif [ -e /var/run/rsyslogd.pid ]; then
      /usr/bin/killall -HUP rsyslogd
    fi
  endscript
}
For other distro check r1353
09-21-2008 01:43 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)