Cron error

Discussion in 'Server Operation' started by asus, Dec 16, 2007.

  1. asus

    asus New Member

    ok every day I get this error and it shuts down apache..
    Code:
    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
     
  2. asus

    asus New Member

    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)
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Are you using the IP address 0.0.0.0 somewhere in your Apache configuration?
    What's the output of
    Code:
    apache2 -t
    ?
     
  4. asus

    asus New Member

    Code:
    [Mon Dec 17 11:54:38 2007] [warn] NameVirtualHost *:0 has no VirtualHosts
    Syntax OK
     
  5. falko

    falko Super Moderator ISPConfig Developer

    Do you use NameVirtualHost *:0 somewhere? Please comment it out and restart Apache.
     
  6. asus

    asus New Member

    there is no entry in the apache2.conf with NameVirtualHost *:0
     
  7. falko

    falko Super Moderator ISPConfig Developer

    And what about the files that are included/referenced in apache2.conf?
     

Share This Page