Apache crashes; error message on restart

Discussion in 'Server Operation' started by Tipem, Aug 28, 2009.

  1. Tipem

    Tipem New Member

    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! :cool:

    Ian
     
  2. falko

    falko Super Moderator ISPConfig Developer

    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?
     
  3. Tipem

    Tipem New Member

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

    e.x.,

    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.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    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
    ?
     
  5. Tipem

    Tipem New Member

    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?
     
  6. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/resolv.conf?
    Have you tried to reboot the server?
     

Share This Page