Skip to main content

[CPANEL-20407] chkservd restarts MySQL when server time doesn't match MySQL time

Comments

8 comments

  • cPanelMichael
    Hello @Bigwebmaster, Could you verify which version of cPanel & WHM is installed on this system? There's a case in version 70 that may address the issue you have reported: Fixed case CPANEL-18468: Gracefully handle /etc/localtime not being a symlink. Thank you.
    0
  • Bigwebmaster
    We are using: v70.0.34
    0
  • Bigwebmaster
    I think a better way to compare MySQL time in this script: /usr/local/cpanel/Cpanel/ServiceManager/Services/Mysql.pm is to convert everything into UTC first, and then compare that hours match. A user should be able to set MySQL to use by default a different time zone than the server time. Translated both times are actual equal, and your script should only care that they are using truly the same times. Cpanel updated to version 70.0.34 this morning (on our server), and that is when all these problems started. I am guessing in versions before this the script that checks times either didn't check the hour before, or something changed there in your logic.
    0
  • cPAusaf
    Hello, Sorry to hear about the issues being seen. Would it be possible for you to open a support ticket so that we may take a closer look? How to Open a Technical Support Ticket - cPanel Knowledge Base - cPanel Documentation Thanks!
    0
  • Bigwebmaster
    Thanks, created a ticket too to see if that can help resolve the problem.
    0
  • cPanelMichael
    Hello, To update, internal case CPANEL-20407 is open to address an issue in cPanel & WHM version 70 where Chkservd will incorrectly detect MySQL as a down service and subsequently restart it in cases where the default-time-zone option in the /etc/my.cnf file is set to a value that doesn't match the server's time. I'll monitor this case and update this thread with more information as it becomes available. In the meantime, the temporary workarounds are to disable monitoring for MySQL using WHM >> Service Manager or to remove the default-time-zone option in the /etc/my.cnf file. Thank you.
    0
  • cPanelMichael
    Hello, To update, this is solved in cPanel & WHM version 70.0.41: Fixed case CPANEL-20407: Don't restart MySQL if timezone differs from server time. This version is currently published to the CURRENT build tier, and should reach the RELEASE build tier soon. Thank you.
    0
  • cPanelMichael
    Hello, To update, this is solved in cPanel & WHM version 70.0.41: Fixed case CPANEL-20407: Don't restart MySQL if timezone differs from server time. This version is currently published to the CURRENT build tier, and should reach the RELEASE build tier soon. Thank you.

    cPanel & WHM version 70.0.41 is now published to the RELEASE build tier.
    0

Please sign in to leave a comment.