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

texas90

Member
Jun 10, 2014
22
0
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.
 

careh

Registered
Sep 24, 2014
2
0
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.
 

careh

Registered
Sep 24, 2014
2
0
1
cPanel Access Level
Website Owner
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.