Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th August 2009, 20:31
Tipem Tipem is offline
Junior Member
 
Join Date: Jun 2008
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Default Apache crashes; error message on restart

Hi,

Occasionally Apache will crash on me, when our server is under a completely normal load. When I run /etc/init.d/httpd restart, this is the error I get (it fails on restart):

Code:
Stopping httpd:                                            [FAILED]
Flushing IPC Semaphores                                    [  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                          [FAILED]
What causes this kind of error? It's totally bizarre to me and nothing has changed in our configuration; this error just started popping up when I try to restart Apache after it crashes.

Any ideas? Thanks in advanced. This place is very helpful!

Ian
Reply With Quote
Sponsored Links
  #2  
Old 29th August 2009, 13:20
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I guess that there's still an Apache zombie process running on port 80 when you try to start Apache.
Are there any errors in Apache's error log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Tipem (2nd September 2009)
  #3  
Old 2nd September 2009, 00:48
Tipem Tipem is offline
Junior Member
 
Join Date: Jun 2008
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Default

I am getting a crapload of segmentation faults (11).

e.x.,

Quote:
[Tue Sep 01 17:53:29 2009] [notice] child pid 6131 exit signal Segmentation fault (11)
[Tue Sep 01 18:13:06 2009] [notice] child pid 11996 exit signal Segmentation fault (11)
[Tue Sep 01 18:19:01 2009] [notice] child pid 13249 exit signal Segmentation fault (11)
etc, etc etc. Like every line in my error log for the past 3 days is this error. What does this mean? Any ideas?

I sincerely appreciate your help.
Reply With Quote
  #4  
Old 2nd September 2009, 14:12
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

This happens from time to time, even on my servers. I'm using monit to scan the logs for this and restart apache when this happens.

What's the output of
Code:
netstat -tap
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Tipem (2nd September 2009)
  #5  
Old 2nd September 2009, 17:17
Tipem Tipem is offline
Junior Member
 
Join Date: Jun 2008
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Default

I ran the command and the list hasn't even finished loading after several minutes. There are HUNDRED of lines to local address "http" and the state is all "TIME_WAIT". The pid to all of these TIME_WAIT processes appears as "-".

Every several lines, the line getnameinfo failed appears.

Any ideas?
Reply With Quote
  #6  
Old 3rd September 2009, 16:19
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

What's in /etc/resolv.conf?
Have you tried to reboot the server?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Certificate and apache restart problems shajazzi Installation/Configuration 1 24th August 2009 12:41
problems with suexec gobokster Installation/Configuration 7 7th May 2009 13:33
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 20:58
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45


All times are GMT +2. The time now is 17:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.