Configured cron-jobs not displayed on Cpanel > Cron Jobs [case CPANEL-6197, fixed in 56.0.17]

chiareu

Member
Feb 8, 2016
14
0
1
Bucharest
cPanel Access Level
Root Administrator
I just observed that a set of cron-jobs configured in Cpanel > Cron Jobs are not displayed at all.
That's strange because the application who use the crons are running OK and the crons defined work.
The app has a verification method to check the cron presence and yesterday I just used the crons and all was ok.

Whan I try to add a new cron i receive the error that the [user] has no rights to use the crontab.
But the crontab setting are on Cpanel account

Any ideea?

Current Cron Jobs
Minute Hour Day Month Weekday Command Actions
No Cron Jobs
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Internal case CPANEL-5479 is open to address an issue where the permissions of /usr/bin/crontab on CentOS/RHEL/CloudLinux 7.x systems are automatically changing to 0755 instead of 4755. The temporary workaround is to set the permission values with the following command:

Code:
rpm --setperms cronie
I'll update this thread with more information as it becomes available.

Thank you.
 
  • Like
Reactions: Zaheer Ahmad Khan
Sep 28, 2015
15
0
1
Pakistan
cPanel Access Level
Root Administrator
Hello,
i am running a server (with root access), but all my (cpanel) users can't create cron jobs
I get the following error while creating cron job
You ($user) are not allowed to use this program (crontab)
See crontab(1) for more information

I verified crontab is checked in respective feature list & unchecked in disable feature list.
 

maestroc

Well-Known Member
Aug 23, 2012
69
0
56
cPanel Access Level
Reseller Owner
I am on a dedicated server with root access. The individual user accounts however cannot add cron jobs despite them being enabled and appearing in the user's cpanel. They are allowed to enter in the information but when saving the crontab it gives the error of:

You ($user) are not allowed to use this program (crontab)
See crontab(1) for more information

I have followed the instructions found on this page:
Cron job error

and ran the following command on the server via SSH:

rpm --setperms cronie

but the problem persists. Do I need to restart something to make it take effect? What other steps do I need to take to allow users to create cron jobs?
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hi,
The provided error showing that the user not allow to run cron.

Can you please try to add username in the /etc/cron.allow file by run below command.

echo USERname > /etc/cron.allow

This will create the new cron.allow file and add user account to that file. Once this is done you can utilize crontab as normal.
 

maestroc

Well-Known Member
Aug 23, 2012
69
0
56
cPanel Access Level
Reseller Owner
I did as instructed. I no longer get that error but instead I get this one:

/var/spool/cron/#tmp.server.coremap.com.XXXXFnwfpK: Permission denied
 

Joseph Waite

Registered
Apr 23, 2016
3
0
1
United Kingdom
cPanel Access Level
DataCenter Provider
Hello :)

Internal case CPANEL-5479 is open to address an issue where the permissions of /usr/bin/crontab on CentOS/RHEL/CloudLinux 7.x systems are automatically changing to 0755 instead of 4755. The temporary workaround is to set the permission values with the following command:

Code:
rpm --setperms cronie
I'll update this thread with more information as it becomes available.

Thank you.
Any update on this. I am having similar issue, However the above does not fix it.

After running the above I get the following error.

Permission on “/usr/bin/crontab” are wrong (4755). Please set to 4755.

Which is strange as its basically saying there wrong so please set to what they already are!!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Any update on this. I am having similar issue, However the above does not fix it.

After running the above I get the following error.

Permission on “/usr/bin/crontab” are wrong (4755). Please set to 4755.

Which is strange as its basically saying there wrong so please set to what they already are!!
The internal case is still open at this time. Could you also try running "/scripts/upcp --force" to see if that addresses the issue after running the previous command suggested earlier in this thread?

Note: I've merged all posts from other threads related to this issue here.

Thank you.
 

Joseph Waite

Registered
Apr 23, 2016
3
0
1
United Kingdom
cPanel Access Level
DataCenter Provider
The internal case is still open at this time. Could you also try running "/scripts/upcp --force" to see if that addresses the issue after running the previous command suggested earlier in this thread?

Thank you.
Yeah I have just done this. And I can see my cron jobs again. Existing ones which had disappeared have re-appeared.
Will update after midnight to see if they actually run now.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Ok It is now showing me the cron jobs from the web interface, however it does not actualy run them.
Are the permissions on /usr/bin/crontab set to 4755 on this system?

Also, I encourage anyone experiencing this issue to open a support ticket using the link in my signature and reference case CPANEL-5479. We have yet to reliably reproduce the issue, so avoid attempting a manual resolution if possible, so we can see your system in the broken state.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello,

Additional testing shows the issue relates to Cpanel::Cron::Utils operating on the wrong binary. CPANEL-5479 will ensure this is automatically corrected, however until that case is released, please run this command manually and let us know if it prevents the issue from reoccurring:

Code:
/usr/local/cpanel/3rdparty/bin/perl -MCpanel::Cron::Utils -e 'Cpanel::Cron::Utils::run_crontab("args"=>["-l"])'
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello,

The resolution stemming from CPANEL-5479 is now available as part of cPanel 54.0.14:

Fixed case CPANEL-5479: Autofix the system binary crontab permissions if they are incorrect.

You can update to the new build via "/scripts/upcp" over the command line, or through Web Host Manager (WHM Home >> cPanel >> Upgrade to Latest Version).

Feel free to update this thread if the issue continues. Also, note if you notice an error message when accessing the "Cron Jobs" option on the X3 theme, a separate thread is open at:

X3 cron jobs

Thank you.
 

Deker

Well-Known Member
Feb 15, 2011
99
4
58
cPanel Access Level
Root Administrator
I'm running cpanel/whm 56(build 16) on my CentOS dedicated server.
Today I found that all of my cpanel cron jobs are disappeared and also can not add new cron jobs. It's strange because all cron jobs are working fine as I checked in my cms.
I did all the suggested solutions that mentioned above but the issue is still persists.
I also tried X3 theme.

Please help!
 

Deker

Well-Known Member
Feb 15, 2011
99
4
58
cPanel Access Level
Root Administrator
Getting the following errors in Chrome Inspect element at cpanel cron jobs page:
Code:
Uncaught TypeError: Cannot read property 'innerHTML' of null           index.html:984
Uncaught TypeError: Cannot read property 'Minute' of undefined        master-legacy.cmb.min.js:13
 
  • Like
Reactions: pyrographics

vbroot

Registered
Oct 30, 2008
1
0
51
Same issue here , It is for paper_lantern theme and x3, for all customer in one server
Cpanel latest 56.0.16
yesterday it's working
Today not see any crons in Current Cron Jobs
also not possible create new cron joobs
 
Last edited:

PatrickVeenstra

Well-Known Member
Feb 12, 2012
167
3
68
Barcelona
cPanel Access Level
Root Administrator
I've already tried:
Code:
rpm --setperms cronie
The cron jobs don't show up in CPanel, and I'm unable to edit the cron jobs email address.

Javascript log (Chrome)
Code:
index.html:1040 Uncaught TypeError: Cannot read property 'innerHTML' of null
2016-05-17 12:22:19.923 master-legacy.cmb.min.js:13 Uncaught TypeError: Cannot read property 'Minute' of undefined
2016-05-17 12:22:27.018 require.min.js:8 Uncaught Error: Load timeout for modules: master/master.dist
http://requirejs.org/docs/errors.html#timeout
2016-05-17 12:22:38.024 https://cpanel.webdd.eu/frontend/paper_lantern/_assets/master.dist.min.js?version=1463442782 Failed to load resource: net::ERR_CONNECTION_TIMED_OUT
2016-05-17 12:22:38.025 require.min.js:8 Uncaught Error: Script error for: master/master.dist
http://requirejs.org/docs/errors.html#scripterror
Both the old and the new theme have this issue.
 
  • Like
Reactions: pyrographics