Cron job not running getting error "Could not exec shell '/bin/bash'"
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.
-
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. 0 -
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? 0 -
[quote="careh, post: 1737111">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?
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.0 -
[quote="cPanelMichael, post: 1737112">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.
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.0 -
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. 0
Please sign in to leave a comment.
Comments
5 comments