Current time: 11-24-2024, 08:27 AM Hello There, Guest! (LoginRegister)


Post Reply 
Apache stop without reason
Author Message
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #1
Apache stop without reason
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 ?
01-08-2009 08:27 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: #2
RE: Apache stop without reason
Can you post /etc/logrotate.d/ispcp?
01-08-2009 08:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #3
RE: Apache stop without reason
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
}
01-08-2009 09:05 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #4
RE: Apache stop without reason
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
(This post was last modified: 01-08-2009 10:04 PM by rbtux.)
01-08-2009 10:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Spheerys Offline
Junior Member
*

Posts: 101
Joined: Feb 2008
Reputation: 0
Post: #5
RE: Apache stop without reason
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 Smile
01-08-2009 10:14 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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