cronjobs aren't being added

uadm

Well-Known Member
May 19, 2003
97
0
156
on one of our server cronjobs are not being added.

Users go to cpanel -> cron jobs
add the time and command and press add new cronjob. It sais cronjob is added but then we don't see the job in the cron list of cpanel and nither on the server in /var/spool/cron/USER

This is happening to all users.
 

uadm

Well-Known Member
May 19, 2003
97
0
156
a little bit more info:
shell is /usr/local/cpanel/bin/noshell
there's no cron also in ~user/.cagefs/var/spool/cron
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
158
168
New Jersey
cPanel Access Level
DataCenter Provider
Code:
# tail - f /usr/local/cpanel/logs/error_log
Run that, try adding a new cron and see if there is any output.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

You can try running the following command:

Code:
cagefsctl –force-update
Also, are any of the accounts assigned shell access or jailed shell access?

Thank you.
 

uadm

Well-Known Member
May 19, 2003
97
0
156
running cafefsctl --force-update didn't help.
all the users have /usr/local/cpanel/bin/noshell
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
If you assign one user jailed shell access, and then revert it back to no shell, does the issue continue?

Thank you.
 

uadm

Well-Known Member
May 19, 2003
97
0
156
changing to jailshell -> trying to add cron = doesn't work
reverting to noshell -> trying to add cron = doesn't work
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
To update, internal case CPANEL-389 addresses an issue where if an account is set to "Jailshell" or "NoShell" in WHM, you are not able to create a cron job for that user. The workaround is to manually create the touch file for the account username in the /var/spool/cron/ directory.

Thank you.
 
Thread starter Similar threads Forum Replies Date
N Operating Systems 2