Apache stop without reason - Spheerys - 01-08-2009 08:27 AM
Hi,
I'm using ispCP RC7 on several server, but on one, Apache is stopping at least once a week, without reason.
Here the error.log :
Code:
[Sun Jan 04 00:09:13 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/aurovilleshantalla.com/php5-fcgi-starter" (uid 2024, gid 2024) started (pid 7668)
[Sun Jan 04 00:09:18 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/aurovilleshantalla.com/php5-fcgi-starter" (uid 2024, gid 2024) started (pid 7673)
[Sun Jan 04 00:10:01 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/jardins-d-elloys.fr/php5-fcgi-starter" (pid 7623) termination signaled
[Sun Jan 04 00:10:01 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/aurovilleshantalla.com/php5-fcgi-starter" (pid 7673) termination signaled
[Sun Jan 04 00:10:01 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/jardins-d-elloys.fr/php5-fcgi-starter" (pid 7623) terminated by calling exit with status '0'
[Sun Jan 04 00:10:01 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/aurovilleshantalla.com/php5-fcgi-starter" (pid 7673) terminated by calling exit with status '0'
[Sun Jan 04 00:11:03 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/aurovilleshantalla.com/php5-fcgi-starter" (pid 7668) termination signaled
[Sun Jan 04 00:11:03 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/aurovilleshantalla.com/php5-fcgi-starter" (pid 7668) terminated by calling exit with status '0'
[Sun Jan 04 00:12:04 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/aurovilleshantalla.com/php5-fcgi-starter" (pid 7667) termination signaled
[Sun Jan 04 00:12:04 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/aurovilleshantalla.com/php5-fcgi-starter" (pid 7667) terminated by calling exit with status '0'
[Sun Jan 04 00:37:44 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/conspirovniscience.com/php5-fcgi-starter" (uid 2008, gid 2008) restarted (pid 7751)
[Sun Jan 04 00:38:40 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/conspirovniscience.com/php5-fcgi-starter" (pid 7751) termination signaled
[Sun Jan 04 00:38:40 2009] [warn] FastCGI: (dynamic) server "/var/www/fcgi/conspirovniscience.com/php5-fcgi-starter" (pid 7751) terminated by calling exit with status '0'
[Sun Jan 04 01:09:27 2009] [notice] caught SIGTERM, shutting down
[Sun Jan 04 01:09:27 2009] [alert] (4)Interrupted system call: FastCGI: read() from pipe failed (0)
[Sun Jan 04 01:09:27 2009] [alert] (4)Interrupted system call: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
Can you help me to determine what's going wrong ?
RE: Apache stop without reason - sci2tech - 01-08-2009 08:33 AM
Can you post /etc/logrotate.d/ispcp?
RE: Apache stop without reason - Spheerys - 01-08-2009 09:05 AM
Of course :
Code:
~# cat /etc/logrotate.d/ispcp
/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
for i in `seq 1 10`; do
if [ -f /var/run/apache2.pid ]; then
/etc/init.d/apache2 stop > /dev/null
sleep 5
/etc/init.d/apache2 start > /dev/null
fi
done
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
/usr/bin/killall -HUP syslogd
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
/usr/bin/killall -HUP syslogd
endscript
}
RE: Apache stop without reason - rbtux - 01-08-2009 10:02 PM
try that
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
}
important part is:
Code:
postrotate
/etc/init.d/apache2 reload > /dev/null
endscript
instead of
Code:
postrotate
for i in `seq 1 10`; do
if [ -f /var/run/apache2.pid ]; then
/etc/init.d/apache2 stop > /dev/null
sleep 5
/etc/init.d/apache2 start > /dev/null
fi
done
endscript
RE: Apache stop without reason - Spheerys - 01-08-2009 10:14 PM
Thanks for your help
I did the changes, and make a /etc/init.d/ispcp_daemon restart
Now I'm waiting to see if the problem is solve
|