You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Radhika Sambamurti <ra...@yahoo.com> on 2002/03/19 20:04:17 UTC

Apache PID changing daily

Hi,
We are running apache 1.3.20 and something has been
happening in the past few days to reset the apache pid. We
are not using logrotate or any other utility to rotate
logs.

When i stop apache with ./apachectl stop it says, no such
pid (because the pid has changed and the httpd.pid file is
trying to kill the old pid).

Any idea why or how this pid is changing and what is the
problem. i am attaching the error_log file below.

Also, i created a small monitoring script that could log
the pid of the file every half hour and it seems the Apache
PPID changed around midnight (between march 19 00:15 -
00:45). I hope this is useful. Please let me know if you
need other information.

Thx,
radhika

--------------------Error Log-----------------------------

Mon Mar 18 23:40:47 2002] [error] System: Connection reset
by peer (errno: 131)
[Tue Mar 19 00:16:39 2002] [error] mod_ssl: SSL handshake
timed out (client 12.225.237.168, server
hostname03.xxx.com:443)
[Tue Mar 19 00:22:20 2002] [notice] child pid 8527 exit
signal Segmentation Fault (11)
[Tue Mar 19 00:23:28 2002] [notice] child pid 8529 exit
signal Segmentation Fault (11)
[Tue Mar 19 00:23:32 2002] [notice] child pid 8710 exit
signal Segmentation Fault (11)
[Tue Mar 19 00:24:31 2002] [notice] child pid 8709 exit
signal Segmentation Fault (11)
[Tue Mar 19 00:25:27 2002] [notice] child pid 9887 exit
signal Segmentation Fault (11)
[Tue Mar 19 00:25:27 2002] [notice] child pid 8880 exit
signal Segmentation Fault (11)
[Tue Mar 19 00:25:27 2002] [emerg] (9)Bad file number:
fcntl: F_SETLKW: Error getting accept lock, exiting! 
Perhaps you need to use the LockFile directive to place
your lock file on a local disk!
[Tue Mar 19 00:25:28 2002] [alert] Child 10274 returned a
Fatal error... 
Apache is exiting!


=====
It's all a matter of perspective. You can choose your view by choosing where to stand.
--Larry Wall

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Apache PID changing daily

Posted by Owen Boyle <ob...@bourse.ch>.
Radhika Sambamurti wrote:
> 
> I have checked the pid directive - and it is fine. Nothing
> has changed (as far as I know) in the httpd.conf file. But
> the pid keeps changing all the same.

Despite what you say about not having a logrotate cron-job, you *must*
have some cron job which is restarting apache. To investigate further:

- check the modification date on the pid file (ls -l) to see when apache
was last started
- go into the error log and find the entry from around that time. You
should see some message like:

[Mon Nov 12 13:05:21 2001] [notice] caught SIGTERM, shutting down
[Mon Nov 12 13:05:24 2001] [notice] Apache/1.3.19 (Unix) configured --
resuming normal operations

This will prove apache really did restart and didn't just magically
change its pid file.

Then, check the crontab for the user who starts apache (could be root) -
see if there is any job which gets executed at this time. Note that it
need not necessarily be "apachectl restart" in the crontab - it could be
a program which invokes this: you'll have to dig a bit...

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Apache PID changing daily

Posted by Milind Sawant <mi...@skandiabank.ch>.
if there is a soft link to your apache installation , check if by any chance
this has been altered.

-----Original Message-----
From: Milind Sawant [mailto:milind.sawant@skandiabank.ch]
Sent: 20 March 2002 09:03
To: users@httpd.apache.org; sgr@logsoft.com
Subject: RE: Apache PID changing daily


Just a small guess.

Did you move your apache installation to some other folder?

-----Original Message-----
From: Radhika Sambamurti [mailto:radhika_narendran@yahoo.com]
Sent: 19 March 2002 21:45
To: users@httpd.apache.org; sgr@logsoft.com
Subject: Re: Apache PID changing daily


I have checked the pid directive - and it is fine. Nothing
has changed (as far as I know) in the httpd.conf file. But
the pid keeps changing all the same.

thx,
radhika



--- Stephen Reppucci <sg...@logsoft.com> wrote:
>
> Check that the PidFile directive in your httpd.conf names
> the same file as the one listed in the apachectl script.
> If these
> are not in sync, you'll get odd restart cases.
>
>
> On Tue, 19 Mar 2002, Radhika Sambamurti wrote:
>
> > Hi,
> > We are running apache 1.3.20 and something has been
> > happening in the past few days to reset the apache pid.
> We
> > are not using logrotate or any other utility to rotate
> > logs.
> >
> > When i stop apache with ./apachectl stop it says, no
> such
> > pid (because the pid has changed and the httpd.pid file
> is
> > trying to kill the old pid).
> >
> > Any idea why or how this pid is changing and what is
> the
> > problem. i am attaching the error_log file below.
> >
> > Also, i created a small monitoring script that could
> log
> > the pid of the file every half hour and it seems the
> Apache
> > PPID changed around midnight (between march 19 00:15 -
> > 00:45). I hope this is useful. Please let me know if
> you
> > need other information.
> >
> > Thx,
> > radhika
> >
> > --------------------Error
> Log-----------------------------
> >
> > Mon Mar 18 23:40:47 2002] [error] System: Connection
> reset
> > by peer (errno: 131)
> > [Tue Mar 19 00:16:39 2002] [error] mod_ssl: SSL
> handshake
> > timed out (client 12.225.237.168, server
> > hostname03.xxx.com:443)
> > [Tue Mar 19 00:22:20 2002] [notice] child pid 8527 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:23:28 2002] [notice] child pid 8529 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:23:32 2002] [notice] child pid 8710 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:24:31 2002] [notice] child pid 8709 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:25:27 2002] [notice] child pid 9887 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:25:27 2002] [notice] child pid 8880 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:25:27 2002] [emerg] (9)Bad file number:
> > fcntl: F_SETLKW: Error getting accept lock, exiting!
> > Perhaps you need to use the LockFile directive to place
> > your lock file on a local disk!
> > [Tue Mar 19 00:25:28 2002] [alert] Child 10274 returned
> a
> > Fatal error...
> > Apache is exiting!
> >
> >
> > =====
> > It's all a matter of perspective. You can choose your
> view by choosing where to stand.
> > --Larry Wall
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Sports - live college hoops coverage
> > http://sports.yahoo.com/
> >
> >
>
---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache
> HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> > To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail:
> users-help@httpd.apache.org
> >
>
> --
> Steve Reppucci
> sgr@logsoft.com |
> Logical Choice Software
> http://logsoft.com/ |
> =-=-=-=-=-=-=-=-=-=-  My God!  What have I done?
> -=-=-=-=-=-=-=-=-=-=
>
>
>
---------------------------------------------------------------------
> The official User-To-User support forum of the Apache
> HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more
> info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
>


=====
It's all a matter of perspective. You can choose your view by choosing where
to stand.
--Larry Wall

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Apache PID changing daily

Posted by Milind Sawant <mi...@skandiabank.ch>.
Just a small guess.

Did you move your apache installation to some other folder?

-----Original Message-----
From: Radhika Sambamurti [mailto:radhika_narendran@yahoo.com]
Sent: 19 March 2002 21:45
To: users@httpd.apache.org; sgr@logsoft.com
Subject: Re: Apache PID changing daily


I have checked the pid directive - and it is fine. Nothing
has changed (as far as I know) in the httpd.conf file. But
the pid keeps changing all the same.

thx,
radhika



--- Stephen Reppucci <sg...@logsoft.com> wrote:
>
> Check that the PidFile directive in your httpd.conf names
> the same file as the one listed in the apachectl script.
> If these
> are not in sync, you'll get odd restart cases.
>
>
> On Tue, 19 Mar 2002, Radhika Sambamurti wrote:
>
> > Hi,
> > We are running apache 1.3.20 and something has been
> > happening in the past few days to reset the apache pid.
> We
> > are not using logrotate or any other utility to rotate
> > logs.
> >
> > When i stop apache with ./apachectl stop it says, no
> such
> > pid (because the pid has changed and the httpd.pid file
> is
> > trying to kill the old pid).
> >
> > Any idea why or how this pid is changing and what is
> the
> > problem. i am attaching the error_log file below.
> >
> > Also, i created a small monitoring script that could
> log
> > the pid of the file every half hour and it seems the
> Apache
> > PPID changed around midnight (between march 19 00:15 -
> > 00:45). I hope this is useful. Please let me know if
> you
> > need other information.
> >
> > Thx,
> > radhika
> >
> > --------------------Error
> Log-----------------------------
> >
> > Mon Mar 18 23:40:47 2002] [error] System: Connection
> reset
> > by peer (errno: 131)
> > [Tue Mar 19 00:16:39 2002] [error] mod_ssl: SSL
> handshake
> > timed out (client 12.225.237.168, server
> > hostname03.xxx.com:443)
> > [Tue Mar 19 00:22:20 2002] [notice] child pid 8527 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:23:28 2002] [notice] child pid 8529 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:23:32 2002] [notice] child pid 8710 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:24:31 2002] [notice] child pid 8709 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:25:27 2002] [notice] child pid 9887 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:25:27 2002] [notice] child pid 8880 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:25:27 2002] [emerg] (9)Bad file number:
> > fcntl: F_SETLKW: Error getting accept lock, exiting!
> > Perhaps you need to use the LockFile directive to place
> > your lock file on a local disk!
> > [Tue Mar 19 00:25:28 2002] [alert] Child 10274 returned
> a
> > Fatal error...
> > Apache is exiting!
> >
> >
> > =====
> > It's all a matter of perspective. You can choose your
> view by choosing where to stand.
> > --Larry Wall
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Sports - live college hoops coverage
> > http://sports.yahoo.com/
> >
> >
>
---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache
> HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> > To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail:
> users-help@httpd.apache.org
> >
>
> --
> Steve Reppucci
> sgr@logsoft.com |
> Logical Choice Software
> http://logsoft.com/ |
> =-=-=-=-=-=-=-=-=-=-  My God!  What have I done?
> -=-=-=-=-=-=-=-=-=-=
>
>
>
---------------------------------------------------------------------
> The official User-To-User support forum of the Apache
> HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more
> info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
>


=====
It's all a matter of perspective. You can choose your view by choosing where
to stand.
--Larry Wall

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Apache PID changing daily

Posted by Radhika Sambamurti <ra...@yahoo.com>.
I have checked the pid directive - and it is fine. Nothing
has changed (as far as I know) in the httpd.conf file. But
the pid keeps changing all the same.

thx,
radhika



--- Stephen Reppucci <sg...@logsoft.com> wrote:
> 
> Check that the PidFile directive in your httpd.conf names
> the same file as the one listed in the apachectl script. 
> If these
> are not in sync, you'll get odd restart cases.
> 
> 
> On Tue, 19 Mar 2002, Radhika Sambamurti wrote:
> 
> > Hi,
> > We are running apache 1.3.20 and something has been
> > happening in the past few days to reset the apache pid.
> We
> > are not using logrotate or any other utility to rotate
> > logs.
> >
> > When i stop apache with ./apachectl stop it says, no
> such
> > pid (because the pid has changed and the httpd.pid file
> is
> > trying to kill the old pid).
> >
> > Any idea why or how this pid is changing and what is
> the
> > problem. i am attaching the error_log file below.
> >
> > Also, i created a small monitoring script that could
> log
> > the pid of the file every half hour and it seems the
> Apache
> > PPID changed around midnight (between march 19 00:15 -
> > 00:45). I hope this is useful. Please let me know if
> you
> > need other information.
> >
> > Thx,
> > radhika
> >
> > --------------------Error
> Log-----------------------------
> >
> > Mon Mar 18 23:40:47 2002] [error] System: Connection
> reset
> > by peer (errno: 131)
> > [Tue Mar 19 00:16:39 2002] [error] mod_ssl: SSL
> handshake
> > timed out (client 12.225.237.168, server
> > hostname03.xxx.com:443)
> > [Tue Mar 19 00:22:20 2002] [notice] child pid 8527 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:23:28 2002] [notice] child pid 8529 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:23:32 2002] [notice] child pid 8710 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:24:31 2002] [notice] child pid 8709 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:25:27 2002] [notice] child pid 9887 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:25:27 2002] [notice] child pid 8880 exit
> > signal Segmentation Fault (11)
> > [Tue Mar 19 00:25:27 2002] [emerg] (9)Bad file number:
> > fcntl: F_SETLKW: Error getting accept lock, exiting!
> > Perhaps you need to use the LockFile directive to place
> > your lock file on a local disk!
> > [Tue Mar 19 00:25:28 2002] [alert] Child 10274 returned
> a
> > Fatal error...
> > Apache is exiting!
> >
> >
> > =====
> > It's all a matter of perspective. You can choose your
> view by choosing where to stand.
> > --Larry Wall
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Sports - live college hoops coverage
> > http://sports.yahoo.com/
> >
> >
>
---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache
> HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> > To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail:
> users-help@httpd.apache.org
> >
> 
> -- 
> Steve Reppucci                                      
> sgr@logsoft.com |
> Logical Choice Software                         
> http://logsoft.com/ |
> =-=-=-=-=-=-=-=-=-=-  My God!  What have I done? 
> -=-=-=-=-=-=-=-=-=-=
> 
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the Apache
> HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more
> info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 


=====
It's all a matter of perspective. You can choose your view by choosing where to stand.
--Larry Wall

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Apache PID changing daily

Posted by Stephen Reppucci <sg...@logsoft.com>.
Check that the PidFile directive in your httpd.conf names
the same file as the one listed in the apachectl script.  If these
are not in sync, you'll get odd restart cases.


On Tue, 19 Mar 2002, Radhika Sambamurti wrote:

> Hi,
> We are running apache 1.3.20 and something has been
> happening in the past few days to reset the apache pid. We
> are not using logrotate or any other utility to rotate
> logs.
>
> When i stop apache with ./apachectl stop it says, no such
> pid (because the pid has changed and the httpd.pid file is
> trying to kill the old pid).
>
> Any idea why or how this pid is changing and what is the
> problem. i am attaching the error_log file below.
>
> Also, i created a small monitoring script that could log
> the pid of the file every half hour and it seems the Apache
> PPID changed around midnight (between march 19 00:15 -
> 00:45). I hope this is useful. Please let me know if you
> need other information.
>
> Thx,
> radhika
>
> --------------------Error Log-----------------------------
>
> Mon Mar 18 23:40:47 2002] [error] System: Connection reset
> by peer (errno: 131)
> [Tue Mar 19 00:16:39 2002] [error] mod_ssl: SSL handshake
> timed out (client 12.225.237.168, server
> hostname03.xxx.com:443)
> [Tue Mar 19 00:22:20 2002] [notice] child pid 8527 exit
> signal Segmentation Fault (11)
> [Tue Mar 19 00:23:28 2002] [notice] child pid 8529 exit
> signal Segmentation Fault (11)
> [Tue Mar 19 00:23:32 2002] [notice] child pid 8710 exit
> signal Segmentation Fault (11)
> [Tue Mar 19 00:24:31 2002] [notice] child pid 8709 exit
> signal Segmentation Fault (11)
> [Tue Mar 19 00:25:27 2002] [notice] child pid 9887 exit
> signal Segmentation Fault (11)
> [Tue Mar 19 00:25:27 2002] [notice] child pid 8880 exit
> signal Segmentation Fault (11)
> [Tue Mar 19 00:25:27 2002] [emerg] (9)Bad file number:
> fcntl: F_SETLKW: Error getting accept lock, exiting!
> Perhaps you need to use the LockFile directive to place
> your lock file on a local disk!
> [Tue Mar 19 00:25:28 2002] [alert] Child 10274 returned a
> Fatal error...
> Apache is exiting!
>
>
> =====
> It's all a matter of perspective. You can choose your view by choosing where to stand.
> --Larry Wall
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

-- 
Steve Reppucci                                       sgr@logsoft.com |
Logical Choice Software                          http://logsoft.com/ |
=-=-=-=-=-=-=-=-=-=-  My God!  What have I done?  -=-=-=-=-=-=-=-=-=-=


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org