PDA

View Full Version : Cron error


asus
16th December 2007, 19:43
ok every day I get this error and it shuts down apache..
Cron test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
/etc/cron.daily/logrotate:
[Sun Dec 16 06:27:56 2007] [warn] NameVirtualHost 192.168.1.1:80 has no VirtualHosts
[Sun Dec 16 06:27:56 2007] [warn] NameVirtualHost *:0 has no VirtualHosts
[Sun Dec 16 06:28:06 2007] [warn] NameVirtualHost 192.168.1.1:80 has no VirtualHosts
[Sun Dec 16 06:28:06 2007] [warn] NameVirtualHost *:0 has no VirtualHosts
(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
error: error running shared postrotate script for /var/log/apache2/*.log
run-parts: /etc/cron.daily/logrotate exited with return code 1 I wake up and the apache is down and i have like 10 emails from the system telling me that its down can someone please help

asus
17th December 2007, 03:06
I also found these errors in the apache logs

[Sun Dec 16 13:32:04 2007] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Sun Dec 16 18:46:12 2007] [notice] Graceful restart requested, doing restart
[Sun Dec 16 18:46:12 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Dec 16 18:46:14 2007] [warn] NameVirtualHost *:0 has no VirtualHosts
PHP Warning: Module 'json' already loaded in Unknown on line 0
[Sun Dec 16 18:46:26 2007] [notice] Apache/2.2.3 (Ubuntu) PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Sun Dec 16 18:46:26 2007] [warn] long lost child came home! (pid 4556)

falko
17th December 2007, 16:49
Are you using the IP address 0.0.0.0 somewhere in your Apache configuration?
What's the output of apache2 -t?

asus
17th December 2007, 17:55
[Mon Dec 17 11:54:38 2007] [warn] NameVirtualHost *:0 has no VirtualHosts
Syntax OK

falko
18th December 2007, 17:13
Do you use NameVirtualHost *:0 somewhere? Please comment it out and restart Apache.

asus
19th December 2007, 18:58
there is no entry in the apache2.conf with NameVirtualHost *:0

falko
20th December 2007, 16:31
there is no entry in the apache2.conf with NameVirtualHost *:0
And what about the files that are included/referenced in apache2.conf?