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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Issues With Crons in v66.0.23

Discussion in 'cPanel Developers' started by Moobs, Sep 22, 2017.

Tags:
  1. Moobs

    Moobs Registered

    Joined:
    Mar 21, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Hi, I've noticed that my scheduled cron jobs have stopped running sometime in the last 2-3 days. These cron jobs were originally setup about over a year ago and I have not encountered any issues until recently.

    The crons are setup to execute a couple scripts once every hour. At first I thought it was an issue with the code, but after combing through the scripts and reviewing the error log everything looks good. When I manually execute these scripts and everything works perfectly in every test. Just an FYI, I'm not a developer, but I know and am able to learn enough to get by; so I'm just looking for some assistance with pointing me in the right direction to get this resolved.

    Code:
    0    *    *    *    *    php -q /home/path/to/my/php/script.php
    
    5    *    *    *    *    php -q /home/path/to/my/php/script2.php
    If anyone has any ideas it would be greatly appreciated.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you see references to these cron jobs in the /var/log/cron log file? Also, can you verify what the "SHELL=" entry looks like for this account in the /var/spool/cron/$username file?

    Thank you.
     
  3. Moobs

    Moobs Registered

    Joined:
    Mar 21, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Thanks for your quick response!

    I do not see any reference to the files in the cron log, which goes back 5 days to 9/17/17.

    Here's the shell line you requested:

    Code:
    SHELL="/usr/local/cpanel/bin/jailshell"
    Thanks in advance.
     
  4. Moobs

    Moobs Registered

    Joined:
    Mar 21, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    I tested crons on a different server today and experienced the same exact issue. I also checked the summary.log file today and saw that Cpanel was updated around the same time I noticed scheduled Cpanel crons stopped working.

    [2017-09-19 04:41:06 -0400] Completed update 11.66.0.22 -> 11.66.0.23
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thank you.
     
Loading...

Share This Page