Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

mySQL service not accessible issue

Discussion in 'Database Discussion' started by RickKukiela, Nov 29, 2017.

  1. RickKukiela

    RickKukiela Member

    Joined:
    Jan 17, 2017
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chicago
    cPanel Access Level:
    Root Administrator
    So I have an application running on several hosting accounts on my server that are developed by me and as such I have code in my database driver that emails me a copy of any SQL error occurs so I can stay ahead of any bugs that may arise.

    That being said. Every day. And I mean EVERY DAY. I get several mysql error log emails from my application that states the following:

    MySQL Connection Error - No such file or directory

    I have checked the mysql logs and there is no record of the server shutting down. In fact its up time is the same as the server it's self.

    I decided to check the messages log to see what the server is doing, if anything at the given time stamps, and every time I get these messages, I find something like this in the log:
    Code:
     250781 Nov 29 05:59:04 host systemd: Stopping tailwatchd...
     250782 Nov 29 05:59:05 host restartsrv_tailwatchd: [2982] [2017-11-29 05:59:05 -0600] [main] Current process '16892' stopped
     250783 Nov 29 05:59:05 host systemd: Stopped tailwatchd.
     250784 Nov 29 05:59:05 host systemd: Starting tailwatchd...
     250786 Nov 29 05:59:06 host restartsrv_tailwatchd: [Wed Nov 29 05:59:06 2017] Starting /usr/local/cpanel/libexec/tailwatch/tailwatchd daemon
     250787 Nov 29 05:59:06 host restartsrv_tailwatchd: Log is at /usr/local/cpanel/logs/tailwatchd_log
     250788 Nov 29 05:59:06 host systemd: tailwatchd.service: Supervising process 3010 which is not our child. We'll most likely not notice when it exits.
     250789 Nov 29 05:59:06 host systemd: Started tailwatchd.
     250790 Nov 29 05:59:07 host systemd: Stopping tailwatchd...
     250792 Nov 29 05:59:08 host restartsrv_tailwatchd: [3035] [2017-11-29 05:59:08 -0600] [main] Current process '3010' stopped
     250793 Nov 29 05:59:08 host systemd: Stopped tailwatchd.
     250794 Nov 29 05:59:08 host systemd: Starting tailwatchd...
     250795 Nov 29 05:59:09 host restartsrv_tailwatchd: [Wed Nov 29 05:59:09 2017] Starting /usr/local/cpanel/libexec/tailwatch/tailwatchd daemon
     250796 Nov 29 05:59:09 host restartsrv_tailwatchd: Log is at /usr/local/cpanel/logs/tailwatchd_log
     250797 Nov 29 05:59:09 host systemd: tailwatchd.service: Supervising process 3051 which is not our child. We'll most likely not notice when it exits.
     250798 Nov 29 05:59:09 host systemd: Started tailwatchd.
     250802 Nov 29 05:59:11 host systemd: Stopping tailwatchd...
     250804 Nov 29 05:59:12 host restartsrv_tailwatchd: [3073] [2017-11-29 05:59:12 -0600] [main] Current process '3051' stopped
     250805 Nov 29 05:59:12 host systemd: Stopped tailwatchd.
     250806 Nov 29 05:59:12 host systemd: Starting tailwatchd...
     250807 Nov 29 05:59:12 host restartsrv_tailwatchd: [Wed Nov 29 05:59:12 2017] Starting /usr/local/cpanel/libexec/tailwatch/tailwatchd daemon
     250808 Nov 29 05:59:12 host restartsrv_tailwatchd: Log is at /usr/local/cpanel/logs/tailwatchd_log
     250809 Nov 29 05:59:12 host systemd: tailwatchd.service: Supervising process 3092 which is not our child. We'll most likely not notice when it exits.
     250810 Nov 29 05:59:12 host systemd: Started tailwatchd.
    
    
    Why does tailwatchd do this? And why does it cause PHP to not be able to find the mysql socket file?
     
    #1 RickKukiela, Nov 29, 2017
    Last edited by a moderator: Nov 29, 2017
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,751
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice