Current time: 09-27-2024, 09:39 PM Hello There, Guest! (LoginRegister)


Post Reply 
Apache just stopped :O!!
Author Message
nicolas Offline
Junior Member
*

Posts: 21
Joined: Aug 2008
Reputation: 1
Post: #13
RE: Apache just stopped :O!!
[/quote]I finally found where the error is! Apache is stopping when instructed in the /etc/logrotate.d/ispcp script, but does not start again, claiming that port 80 is already bound. Here is the error I logged:

Quote:Fri Sep 12 09:08:28 CEST 2008
* Stopping web server apache2
...done.
* Starting web server apache2
(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
...fail!
error: error running shared postrotate script for /var/log/apache2/users/*.log
(I have not logged the time when apache2 tries to start again... I will add it to my logs)

I understand that the part of the script that does:
Quote: for i in `seq 1 10`; do
if [ -f /var/run/apache2.pid ]; then
sleep 5
fi
is not working as it should. Is it possible that the apache2.pid file gets deleted when apache2 stops, but that some requests are still being served (thus leaving the port 80 bound)?

I will try to change the logrotate script from apache stop / start to "/etc/init.d/apache2 restart" and report results here (the /etc/init.d/apache2 restart script includes a 10second sleep and does a gracefull stop start).

Nicolas.
09-12-2008 08:15 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Apache just stopped :O!! - rauschr - 07-28-2008, 08:05 AM
RE: Apache just stopped :O!! - nicolas - 08-25-2008, 05:05 AM
RE: Apache just stopped :O!! - rauschr - 08-26-2008, 03:32 AM
RE: Apache just stopped :O!! - nicolas - 09-01-2008, 09:28 PM
RE: Apache just stopped :O!! - nicolas - 08-27-2008, 06:21 PM
RE: Apache just stopped :O!! - rauschr - 08-29-2008, 08:02 AM
RE: Apache just stopped :O!! - nicolas - 08-30-2008, 01:05 AM
RE: Apache just stopped :O!! - rauschr - 09-01-2008, 08:10 AM
RE: Apache just stopped :O!! - nicolas - 09-01-2008, 09:35 PM
RE: Apache just stopped :O!! - nicolas - 09-10-2008, 06:44 PM
RE: Apache just stopped :O!! - sci2tech - 09-11-2008, 06:18 AM
RE: Apache just stopped :O!! - nicolas - 09-12-2008 08:15 PM
RE: Apache just stopped :O!! - sci2tech - 09-13-2008, 12:32 AM
RE: Apache just stopped :O!! - nicolas - 09-13-2008, 01:26 AM
RE: Apache just stopped :O!! - nicolas - 09-17-2008, 07:32 PM
RE: Apache just stopped :O!! - Wut - 10-16-2008, 05:26 PM
RE: Apache just stopped :O!! - sci2tech - 10-16-2008, 08:59 PM
RE: Apache just stopped :O!! - Wut - 10-17-2008, 01:40 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)