Skip to main content

Anacron job cron.daily

Comments

7 comments

  • cPanelPeter cPanel Staff
    Hello, You mentioned it was coming from the daily cron? I would check that first. You may have some plugin installed that is calling mysqladmin directly. # ls -al /etc/cron.daily
    0
  • cgimickalo
    no plug-ins installed that I know of. The cron.daily folder has been the same for some time this just started in the last couple of days. Mike
    0
  • cPanelMichael
    [quote="cgimickalo, post: 1545732">no plug-ins installed that I know of. The cron.daily folder has been the same for some time this just started in the last couple of days. Mike
    What specific cron jobs are you running in the /etc/cron.daily directory? Could you provide us with a list? Thank you.
    0
  • cgimickalo
    these are the files in the /etc/cron.daily folder: logrotate* makewhatis.cron* mlocate.cron* prelink* readahead.cron* tmpwatch*
    one thing I did notice was the script modsecparse.pl was also in that folder, which it has been for some time and never caused any issues, I removed it and put it back in the /etc/cron.hourly folder. I believe the EasyApache puts it in there when it's run added Mod Security for Apache. Mike
    0
  • cPanelMichael
    The error is likely coming from the logrotate cron job based on the error message that you provided. Here is the content of that cron job on a test machine that I setup: #!/bin/sh export TMPDIR=/var/spool/logrotate/tmp /usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1 EXITVALUE=$? if [ $EXITVALUE != 0 ]; then /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" fi exit 0
    You may want to review the same file on your system to see if any additional entries are used to connect to MySQL and rotate the MySQL slow query log. Thank you.
    0
  • cgimickalo
    That was one of the first things I checked before posting, for multiple instances rotating that log file, none was found but I will check again. I don't think that's the problem though. That is the same logrotate cron file I have in the /etc/cron.daily folder Mike
    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

Please sign in to leave a comment.