Sometimes apache not restart

Discussion in 'General' started by Stoned, Nov 29, 2010.

  1. Stoned

    Stoned New Member

    Hi
    I have a problem: sometimes, after use of ispconfig, the apache server stop to work (exactly, not restart after apply modification), so i have all the site and also ispconfig blocked.
    I can't exactly reproduce the problem, that appears randomly, sometime after creation of site, sometime after modification, one time also on creating a alias for a domain: creating 40 sites, always with the same configuration, the problem appears only 4 times.
    No error on log of site created/modified
    On general apache error.log i have only this
    Code:
    [Fri Nov 26 18:50:02 2010] [notice] caught SIGTERM, shutting down
    [Fri Nov 26 18:50:02 2010] [notice] mod_fcgid: process /var/www/xxxxxxxx.it/web
    /prices-drop.php(24506) exit(shutting down), terminated by calling exit(), retur
    n code: 0
    [Fri Nov 26 18:50:02 2010] [notice] mod_fcgid: process /var/www/xxxxxx
    .com/web/piwik/piwik.php(24507) exit(shutting down), terminated by calling exit(
    ), return code: 0
    [Fri Nov 26 18:50:02 2010] [notice] mod_fcgid: process /var/www/xxxxxx.com
    /web/gardaromastat/php-stats.js.php(24509) exit(shutting down), terminated by ca
    lling exit(), return code: 0
    [Fri Nov 26 18:50:03 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/
    apache2/suexec)
    [Fri Nov 26 18:50:03 2010] [notice] Digest: generating secret for digest authent
    ication ...
    [Fri Nov 26 18:50:03 2010] [notice] Digest: done
    [Fri Nov 26 18:50:03 2010] [notice] Apache/2.2.9 (Debian) DAV/2 PHP/5.2.6-1+lenn
    y9 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.7(2008-08-11) mod_ssl/2.2.9 OpenSS
    L/0.9.8g configured -- resuming normal operations
    [Fri Nov 26 18:50:04 2010] [notice] caught SIGTERM, shutting down
    
    The only error i find is on ispconfig cron log
    Code:
    (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
    
    The server is a i5 ovh server with debian lenny 64bit installed
    Now i created a script that check if apache is down and eventualy restart them, but i would like to resolve problem ;)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Is this a virtual server?
     
  3. Stoned

    Stoned New Member

    No, isn't a virtual server...
    Exactly, it's a intel i5 with 8GB ram and 2x1TB of HD.
    Today same problem simply editing a alias of a domain....
     
    Last edited: Nov 30, 2010
  4. NWO

    NWO New Member

    Same problem here. As far as I can remember, after I created an alias domain. That's already happened 3 or 4 times.
    apache2/error.log:
    Code:
    [Wed Dec 01 11:24:01 2010] [notice] caught SIGTERM, shutting down
    [Wed Dec 01 11:24:02 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Wed Dec 01 11:24:02 2010] [notice] Digest: generating secret for digest authentication ...
    [Wed Dec 01 11:24:02 2010] [notice] Digest: done
    [Wed Dec 01 11:24:03 2010] [notice] Apache/2.2.14 (Ubuntu) DAV/2 mod_fcgid/2.3.4 mod_ruby/1.2.6 Ruby/1.8.7(2010-01-10) mod_ssl/2.2.14 OpenSSL/0.9.8k configured -- resuming normal operations
    [Wed Dec 01 11:24:03 2010] [notice] caught SIGTERM, shutting down
    
    The most important entries in ispconfig/cron.log:
    Code:
    PHP Warning:  copy(/etc/apache2/sites-available/domain.tld.vhost): failed to open stream: No such file or directory in /usr/local/ispconfig/server/
    plugins-available/apache2_plugin.inc.php on line 829
    PHP Warning:  unlink(/etc/apache2/sites-available/domain.tld.vhost~): No such file or directory in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 914
    (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
    
    No vServer, Ubuntu 10.04
     
  5. NWO

    NWO New Member

    And again after I created a new Website

    apache2/error.log (13:12:47 I started the apache with /etc/init.d/apache2 start)
    Code:
    [Thu Dec 09 13:12:02 2010] [notice] caught SIGTERM, shutting down
    [Thu Dec 09 13:12:03 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Thu Dec 09 13:12:03 2010] [notice] Digest: generating secret for digest authentication ...
    [Thu Dec 09 13:12:03 2010] [notice] Digest: done
    [Thu Dec 09 13:12:03 2010] [notice] Apache/2.2.14 (Ubuntu) DAV/2 mod_fcgid/2.3.4 mod_ruby/1.2.6 Ruby/1.8.7(2010-01-10) mod_ssl/2.2.14 OpenSSL/0.9.8k configured -- resuming normal operations
    [Thu Dec 09 13:12:03 2010] [notice] caught SIGTERM, shutting down
    [Thu Dec 09 13:12:47 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Thu Dec 09 13:12:47 2010] [notice] Digest: generating secret for digest authentication ...
    [Thu Dec 09 13:12:47 2010] [notice] Digest: done
    [Thu Dec 09 13:12:48 2010] [notice] Apache/2.2.14 (Ubuntu) DAV/2 mod_fcgid/2.3.4 mod_ruby/1.2.6 Ruby/1.8.7(2010-01-10) mod_ssl/2.2.14 OpenSSL/0.9.8k configured -- resuming normal operations
    ispconfig/ispconfig.log
    Code:
    PHP Warning:  unlink(/etc/apache2/sites-available/domain.tld.vhost~): No such file or directory in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 914
    PHP Deprecated:  Function call_user_method() is deprecated in /usr/local/ispconfig/server/lib/classes/modules.inc.php on line 248
    PHP Deprecated:  Function call_user_method() is deprecated in /usr/local/ispconfig/server/lib/classes/plugins.inc.php on line 119
    PHP Deprecated:  Function call_user_method() is deprecated in /usr/local/ispconfig/server/lib/classes/plugins.inc.php on line 119
    PHP Deprecated:  Function call_user_method() is deprecated in /usr/local/ispconfig/server/lib/classes/services.inc.php on line 57
    (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
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check the apache error log as its a problem with apache restarts. ISPConfig is just executing the init script with the restart parameter. As you see in the error, your apache does not seem to release the ports while it is restarting so it kicks itself of. A possible soultion migt be to add a sleep of a few seconds in the apache restart section of the init script.
     

Share This Page