.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > YappA > The Agora
The Agora This is the place to go if you have suggestions, or if you want to participate in Council discussions. Everyone is welcome!

Reply
 
Thread Tools
HTTP server was dead
Old
  (#1)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default HTTP server was dead - 05-03-2004

Hi admins and regulars,

This morning I had to log in via SSH in order to restart the web server, which died during the night. I checked with "who" to ensure nobody was working on it, and it seems the service died for no reason.

There's something to investigate here (ahh, if only days were 48h instead of 24 9_9 )



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: HTTP server was dead
Old
  (#2)
Onno Kreuzinger
aka: memed / Server Admin
 
Onno Kreuzinger's Avatar
 
Status: Offline
Posts: 705
Join Date: Jan 2004
Location: germany
Default Re: HTTP server was dead - 05-03-2004

i checked, it died on a SIGUSR1, a gracefull restart, triggert by logrotate...
i could not reproduce it, so wait until tomorrow morning ...
i activated allmessages to be logged...

cheers


(*rolf* me is concentrated on what me can do make me do a good job)
[b.t.w. "I" spoken equals german "egg", so i seem to have a lot of ...]


sunny morning view from my balcony:

see our WIKI!
see our filebase!

Last edited by Onno Kreuzinger; 05-03-2004 at 11:53..
  
Reply With Quote
Re: HTTP server was dead
Old
  (#3)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: HTTP server was dead - 05-03-2004

Is there a way to have such services automatically restart on fail? I can do this in windows, so i assume it can also be done in Linux.


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: HTTP server was dead
Old
  (#4)
Onno Kreuzinger
aka: memed / Server Admin
 
Onno Kreuzinger's Avatar
 
Status: Offline
Posts: 705
Join Date: Jan 2004
Location: germany
Default Re: HTTP server was dead - 05-03-2004

hmm that is a generic statement, i can't realy answer w/o writing a heck of stuff.
so summed up, yes of course, but why? apache should not fail, its apache and a sigusr1 is a feature that is used every day at 6:00 by the logrotate service; and for the win stuff, well i could make a list as long as i want with software not running for ever :-)
regardles what is done (and payed).
i'm no linux evangelist and proud of my win9x systems in production (CTI) and my own w2k desktop i work on for 3+ years w/o reinstall or leaving the gui.

i will get that fixed, or at least trace it down. the last resort is daemon tools.


sunny morning view from my balcony:

see our WIKI!
see our filebase!
  
Reply With Quote
Re: HTTP server was dead
Old
  (#5)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: HTTP server was dead - 06-03-2004

Of course Apache should not fail and the problem should be found and fixed, but since services do on occasion fail, I think it would be nice to have it restart automatically to keep the down time to a minimum. I expected such a function would be built into the Linux server as a default safety feature. Why are you saying "last resort" ?


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: HTTP server was dead
Old
  (#6)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: HTTP server was dead - 06-03-2004

I sorta agree with botmeister... after all it's the job of the system admin to check the logs periodically ?



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: HTTP server was dead
Old
  (#7)
Terran
Member
 
Terran's Avatar
 
Status: Offline
Posts: 431
Join Date: Jan 2004
Default Re: HTTP server was dead - 06-03-2004

There is a lot that can be done at this field, e.g. use BigBrother or Nagios to check for certain system parameters and processes and alert the administrators if something goes wrong.
Or use simple scripts to check and restart processes using cron.

But as memed already said, apache is not known to crash at all! I've plenty of them running since years and none of them ever crashed without a humans intervention (e.g. wrong configuration). Not even a failed CGI program can cause a total crash as the main apache process never starts them directly.

The only time I ever had a real problem with apache was when we started using apache 2.0, php and postnuke. This combination caused a system crash with big file downloads...
  
Reply With Quote
Re: HTTP server was dead
Old
  (#8)
Onno Kreuzinger
aka: memed / Server Admin
 
Onno Kreuzinger's Avatar
 
Status: Offline
Posts: 705
Join Date: Jan 2004
Location: germany
Default Re: HTTP server was dead - 06-03-2004

"last resort", because daemon tools are usually used in big email server systems based on qmail (multi million mails per day), and my professional experience with apache 1.3 (the one we are using) realy indicate that it does not crash .


but i just made a simple watchdog, which checks every 15 mins and restarts apache in case it does not respond with the http code 200.
the logfile entry will be "Apache responded with code 200, all ok." when it did not restart apache. if it does apache will make log entries.

cheers

/edit
and of course there is allready a webmin service monitor running, which also should restart the server, but i could not find a trace of that working or not working, so i had to "wait" until it should have worked, now i found out that it faild bacause inetd was in the watch list. that service is not used, but xinetd so now i expect it to work. any suggestions when to test :-)
edit/


sunny morning view from my balcony:

see our WIKI!
see our filebase!

Last edited by Onno Kreuzinger; 06-03-2004 at 16:25..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com