Page 1 of 1

[SOLVED] asl-lite error message

Posted: Thu Jun 02, 2011 11:41 am
by organicspider
Hi, I have started to receive the following from cron when asl-lite -u is executed

Code: Select all

(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
What is asl-lite calling to restart Apache ?

Re: asl-lite error message

Posted: Thu Jun 02, 2011 1:47 pm
by scott
Whatever you told it to. :-)

I normally use /etc/init.d/httpd

Re: asl-lite error message

Posted: Thu Jun 02, 2011 1:51 pm
by mikeshinn
That directive is stored in:

/etc/asl/config

The command it will call is whatever you configured it to be, and is stored in the variable:

APACHE_RESTART_COMMAND

The default in ASL, for example, is "/etc/init.d/httpd restart"

Which contains the full command you want it to run, along with any arguments. So you could put anything in that.
(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
That is an apache error. Apache is complaining that when you tried to start apache something was already running on port 80 and it cant bind to the port. asl-lite will run whatever command you configure to restart apache, so Id check the command you configured and your system to see whats running on port 80. If apache is running (and nothing else), then your restart command is either not shutting down apache (if thats happening, you should contact your apache vendor to see why thats not working). With a standard redhat or centos apache install and set of init scripts, you would normally use the command above to restart apache.

Or, if thats not the problem then it sounds like you either have something else listening on port 80 or maybe you have a tool that restarts apache (like psmon) if its down and you are running into a race condition when your restart does not complete before your process watchdog restarts apache itself.

Id definitely get to the bottom of whats on port 80 though and confirm that this is just a restart issue and not something more severe. Ive seen malware that will hijack port 80, even down on the thread level.

Re: asl-lite error message

Posted: Thu Jun 02, 2011 3:16 pm
by organicspider
Thanks Michael; problem was due to running a custom Apache install.