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.

SOLVED One user's cron jobs not running

Discussion in 'General Discussion' started by IanNQuality, Sep 13, 2017.

Tags:
  1. IanNQuality

    IanNQuality Member

    Joined:
    Sep 13, 2017
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nottingham
    cPanel Access Level:
    Root Administrator
    Hi there,

    Yesterday I changed the cron notification email for one of my users. Since then their cron jobs are not running, they were running fine before that. All other users' jobs are still running fine on the same server.

    I have spent some time looking into this and the only thing I have found (and I don't know if this is a red herring) is that the file /var/spool/cron/user has the line SHELL="/bin/false" before each of the jobs whereas the other users have the line SHELL="/usr/local/cpanel/bin/jailshell" before theirs.

    Has anyone any ideas what could be wrong?

    Thanks, Ian
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Yes, the "SHELL=" line needs to match the following if the account is assigned no shell or jailed shell access:

    Code:
    SHELL="/usr/local/cpanel/bin/jailshell"
    This is discussed on the following thread:

    some cPanel update added jailshell to my crontabs

    Thank you.
     
  3. IanNQuality

    IanNQuality Member

    Joined:
    Sep 13, 2017
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nottingham
    cPanel Access Level:
    Root Administrator
    Thanks for that. It has partially answered my question. If I change that line then the cron job does start to fire. However, if I make any change to the cron jobs they are all reset to the "bin/false" entry. What could be causing that to happen?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  5. IanNQuality

    IanNQuality Member

    Joined:
    Sep 13, 2017
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nottingham
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    I update it from within cPanel. It doesn't matter what I update, the notification email or the time of the cron, it puts those lines back to "bin/false"
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm unable to reproduce this issue on a test system. Can you let us know which version of cPanel is installed? EX:

    Code:
    cat /usr/local/cpanel/version
    Thank you.
     
  7. IanNQuality

    IanNQuality Member

    Joined:
    Sep 13, 2017
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nottingham
    cPanel Access Level:
    Root Administrator
    The version is 11.66.0.19

    Thanks, Ian
     
  8. IanNQuality

    IanNQuality Member

    Joined:
    Sep 13, 2017
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nottingham
    cPanel Access Level:
    Root Administrator
    PS - I don't know if it is relevant, I have previously suspended this account
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Can you check to verify if the account in-question is suspended? The behavior you reported is normal if the account is suspended, as cron jobs are not supposed to work.

    Thank you.
     
  10. IanNQuality

    IanNQuality Member

    Joined:
    Sep 13, 2017
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nottingham
    cPanel Access Level:
    Root Administrator
    I can confirm the account is definitely not suspended. I have previously suspended it for short periods of time but the site is up and working.

    Thanks, Ian
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Does the issue persist if you suspend the account, and then unsuspend it again? It's possible the account was not properly unsuspended.

    Thank you.
     
  12. IanNQuality

    IanNQuality Member

    Joined:
    Sep 13, 2017
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nottingham
    cPanel Access Level:
    Root Administrator
    I've just tried that and the problem remains
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    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.
     
  14. IanNQuality

    IanNQuality Member

    Joined:
    Sep 13, 2017
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nottingham
    cPanel Access Level:
    Root Administrator
    Thanks,

    I have opened a ticket. The ID is 8870889
     
  15. IanNQuality

    IanNQuality Member

    Joined:
    Sep 13, 2017
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Nottingham
    cPanel Access Level:
    Root Administrator
    This has been fixed now. The support guy said that the file /etc/passwd had the offending entry and he changed it. Now I can update the cron jobs and they continue to fire.

    Thanks, Ian
     
  16. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    I'm happy to see the issue was solved. Thank you for updating us with the outcome.
     
Loading...

Share This Page