FW: [users@httpd] Apache dies unexpectedly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Boyle Owen 
> Sent: Montag, 27. Juni 2005 13:14
> To: 'AussieJohn'
> Subject: RE: [users@httpd] Apache dies unexpectedly
> 
> 

Pls keep on list...

> 
> 
> > -----Original Message-----
> > From: AussieJohn [mailto:aussiejohn@xxxxxxxxx]
> > Sent: Montag, 27. Juni 2005 12:53
> > To: users@xxxxxxxxxxxxxxxx
> > Cc: Boyle Owen
> > Subject: Re: [users@httpd] Apache dies unexpectedly
> > 
> > 
> > <snip>
> > 
> > > > Problem:
> > > >   Apache dies unexpected and out of the blue. e.g. I came 
> > to work this
> > > > (monday) morning,
> > > > and found my webserver died about half an hour before I 
> > even got into
> > > > the office.
> > > > Every so often (seemingly random times...) therewill be 
> > entries in the
> > > > error_log saying:
> > > > [notice] caught SIGTERM, shutting down
> > > > [notice] Apache/2.0.54 (Unix) PHP/4.3.11 configured -- 
> > resuming normal
> > > > operations
> > > 
> > > SIGTERM is the standard unix signal to kill a process. This 
> > is exactly the log message you get if you type "apachectl 
> > stop" or "kill <PID>". So something must be doing this...
> > > 
> > > You say the times are random - are you certain? Check in 
> > the crontab for root to see if there is a forgotten 
> > instruction to stop apache (check all the other crontabs if 
> > apache doesn't start as root).
> > > 
> > 
> > ---------------
> > Yes times seem to be random, sometimes the server will die within 
> > several minutes from being started, sometimes will be 
> > anything between 
> > 10 minutes and 40, 50 minutes.
> > -----------
> > 
> > 
> > 
> > 
> > > I notice below that the SIGTERM is followed immediately by 
> > a start and then by another SIGTERM - could there be a rogue 
> > daemon running - maybe to rotate logs or something? Check it out.
> > > 
> > -------------
> > 
> > I have no reasonable explanation for this as of yet.
> > When I got to work on monday morning, I looked through the 
> log file, 
> > and there were a *lot* of 
> > 
> > [notice] caught SIGTERM, shutting down
> > [notice] Apache/2.0.54 (Unix) PHP/4.3.11 configured -- 
> resuming normal
> > 
> > lines in there. 
> 
> If you get a lot of stop start sequences in the logs and it 
> doesn't seem to be regular, it doesn't look like cron. So 
> some job is being executed randomly which is restarting 
> apache. Could it be a daemon:
> 
> - use ps to see what's running and check out the source code 
> of anything that looks suspicious
> - grep for apache/httpd in /etc/init.d (should only be the 
> boot and kill scripts)
> 
> Could it be a CGI program? Does apache start as root?
> 
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> 
> > This is extremely odd, as the webserver 
> > ofcourse doesn't 
> > get used on the weekend as it is my workstation (I'm a web 
> developer).
> > the only thing I could think of was a misbehaving profiler 
> or module.
> > The only things I added before the server started dying was a 
> > virtualhost
> > and mod_auth. 
> > I have tested with disabling the vhost, mod_auth and 
> > Xdebug (PHP profiler/debugger).
> > 
> > None of these seem to give me a solution. So I am still stuck with a
> > sporadically
> > dying webserver.
> > When I get back to work in the morning I will however make 
> sure that 
> > there are no crontabs set. I am 99.9 % sure there aren;t as I am the
> > only one that
> > uses my machine. 
> > 
> > Would their be any other way to find out what exactly happens 
> > that would kill
> > the server ?
> > -------------
> > > Rgds,
> > > Owen Boyle
> > > Disclaimer: Any disclaimer attached to this message may 
> be ignored.
> > > 
> > <snip>
> > 
> > 
> > -- 
> > "If you really want something in this life, you have to work for it.
> > Now, quiet! They're about to announce the lottery numbers..."
> > - Homer Simpson
> > 
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux