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.

Cron job not running getting error "Could not exec shell '/bin/bash'"

Discussion in 'General Discussion' started by texas90, Jul 4, 2014.

  1. texas90

    texas90 Member

    Joined:
    Jun 10, 2014
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Eversince I restarted my server the cron job has stopped running. I manually run cron job via ssh and it works fine from there. But when automatic cron jobs are attempted whmcs logs show this error "Could not exec shell '/bin/bash'".
    I am sure this is a problem with the server and not whmcs thats why I am posting here.
    I have checked the cron deamon is running. So what is the problem? please help.
     
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Is the account set up as a Jail Shell user or Disabled shell user? If so, please try changing it to a normal shell and see if that solves the issue.
     
  3. careh

    careh Registered

    Joined:
    Sep 24, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I am also getting the Could not exec shell '/bin/bash on a cron job that was not changed. I am not familiar with 'jail Shell or Disabled shell user' How/where would I check for that? One thing that did happen recently is I had messed up my login password and my account was locked out. Could that have something to do with the cron failure?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Your access level is listed as "Website Owner". Please report this issue to your web hosting provider, as you will not be able to view or modify the type of shell access granted to your account.

    Thank you.
     
  5. careh

    careh Registered

    Joined:
    Sep 24, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    The web hosting provider made some change - and now I can again run cron scripts. My guess is when my account was locked out due to me messing up my password too many times it also disabled my ability to run cron scripts and when they re-activated my account there is a separate step needed to reactivate my cron script access. Thanks for the help.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue is now resolved. It's possible your hosting provider updated your shell access level or modified what actions that jailed shell users can make.

    Thank you.
     
Loading...

Share This Page