[SOLVED] asl-lite error message

organicspider
Forum User
Forum User
Posts: 16
Joined: Fri Feb 18, 2011 11:33 am
Location: uk

[SOLVED] asl-lite error message

Unread post 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 ?
Last edited by organicspider on Thu Jun 02, 2011 3:16 pm, edited 1 time in total.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: asl-lite error message

Unread post by scott »

Whatever you told it to. :-)

I normally use /etc/init.d/httpd
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: asl-lite error message

Unread post 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.
organicspider
Forum User
Forum User
Posts: 16
Joined: Fri Feb 18, 2011 11:33 am
Location: uk

Re: asl-lite error message

Unread post by organicspider »

Thanks Michael; problem was due to running a custom Apache install.
Post Reply