Skip to main content

Continues downtime due to graceful restarts.

Comments

10 comments

  • cPanelPeter cPanel Staff
    Hello, Which version of cPanel are you running? You can find out by typing: /usr/local/cpanel/cpanel -V Also which PHP handler are you running? You can find out by typing: /usr/local/cpanel/bin/rebuild_phpconf --current
    0
  • 9944990
    I apologize I should have provided these information with my question: CentOS 6.5 86_64 cPanel 11.40.1 (Build 11) Available handlers: suphp dso cgi none DEFAULT PHP: 5 PHP4 SAPI: none PHP5 SAPI: suphp SUEXEC: enabled RUID2: not installed It is a new server build 3 days ago everything is new. I had same issue on my old server which was fixed by my hosting provided and I am not aware what they did. Even copying Apache configuration and php.ini from the old server did not solve my issue.
    0
  • cPanelMichael
    Hello :) You can enable Piped Logging via: "WHM Home " Service Configuration " Apache Configuration " Piped Log Configuration" This will stop the automatic graceful restart of Apache from occurring every two hours. Thank you.
    0
  • 9944990
    Hello, Thank you for your help, Actually apache does not restart every 2 hours it is mpm_prefork which requests the graceful restart about 2 to 3 times in a day and apache does not preform the restart it just goes down for 6 - 12 minutes and resumes operation. Now I enabled Piped log configuration and apache went down totally I had to reboot the server as restart apache from command line did not and WHM was not able to show apache status and below is the error logs: Mon Feb 10 20:32:39.748458 2014] [mpm_prefork:notice] [pid 49794] AH00171: Graceful restart requested, doing restart [Mon Feb 10 20:35:54.820257 2014] [mpm_prefork:notice] [pid 49794] AH00163: Apache/2.4.7 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations [Mon Feb 10 20:35:54.820288 2014] [core:notice] [pid 49794] AH00094: Command line: '/usr/local/apache/bin/httpd -D SSL' [Mon Feb 10 20:36:01.391874 2014] [mpm_prefork:notice] [pid 49794] AH00171: Graceful restart requested, doing restart [Mon Feb 10 20:41:03.078920 2014] [suexec:notice] [pid 1393] AH01232: suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec) [Mon Feb 10 20:41:03.092398 2014] [core:warn] [pid 1397] AH00098: pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Mon Feb 10 20:41:03.132572 2014] [mpm_prefork:notice] [pid 1397] AH00163: Apache/2.4.7 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations [Mon Feb 10 20:41:03.132625 2014] [core:notice] [pid 1397] AH00094: Command line: '/usr/local/apache/bin/httpd -D SSL'
    Now as I can see through WHM the piped Apache logs is enabled I will wait and see if the problem vanishes or not.
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • 9944990
    Done :) Request ID: 4558237
    0
  • cPanelMichael
    To update, the following option was recommended: [url=http://docs.cpanel.net/twiki/bin/view/AllDocumentation/ChangeLog/ApacheSlowGracefulRestartPatch]Apache Slow Graceful Restart Patch Thank you.
    0
  • 9944990
    I have applied the patch waiting to see results.
    0
  • cPanelMichael
    [quote="9944990, post: 1570461">I have applied the patch waiting to see results.
    Thanks, we look forward to the results.
    0
  • 9944990
    [quote="cPanelMichael, post: 1571112">Thanks, we look forward to the results.
    Just wanted to update you guys and also for those who might have similar issues that my problem has been solved. After enabling Piped Logging and applying Apache Slow Graceful Restart Patch the issue is solved. :) Now the server is up for 3 days without any issue. I thank every one of you for your cooperation.
    0

Please sign in to leave a comment.