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.

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

Discussion in 'General Discussion' started by chiareu, Apr 8, 2016.

  1. chiareu

    chiareu Registered

    Joined:
    Feb 8, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. chiareu

    chiareu Registered

    Joined:
    Feb 8, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bucharest
    cPanel Access Level:
    Root Administrator
    seams that is an error after recent update and need to log via ssh and run
    chmod 4755 /usr/bin/crontab
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
    Zaheer Ahmad Khan likes this.
  4. Zaheer Ahmad Khan

    Joined:
    Sep 28, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  5. Zaheer Ahmad Khan

    Joined:
    Sep 28, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pakistan
    cPanel Access Level:
    Root Administrator
    Thank you Michael,
    fixed the issue

    Kind Regards
     
  6. maestroc

    maestroc Active Member

    Joined:
    Aug 23, 2012
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    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?
     
  7. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    317
    Likes Received:
    23
    Trophy Points:
    18
    Location:
    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.
     
  8. maestroc

    maestroc Active Member

    Joined:
    Aug 23, 2012
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  9. Joseph Waite

    Joseph Waite Registered

    Joined:
    Apr 23, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    DataCenter Provider
    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!!
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  11. Joseph Waite

    Joseph Waite Registered

    Joined:
    Apr 23, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    DataCenter Provider
    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.
     
  12. Joseph Waite

    Joseph Waite Registered

    Joined:
    Apr 23, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    DataCenter Provider
    Ok It is now showing me the cron jobs from the web interface, however it does not actualy run them.
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  15. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  16. Deker

    Deker Well-Known Member

    Joined:
    Feb 15, 2011
    Messages:
    79
    Likes Received:
    1
    Trophy Points:
    8
    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!
     
  17. vipin

    vipin Active Member

    Joined:
    Aug 23, 2013
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Same issue here , It is for paper_lantern theme only.
     
  18. Deker

    Deker Well-Known Member

    Joined:
    Feb 15, 2011
    Messages:
    79
    Likes Received:
    1
    Trophy Points:
    8
    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
     
    pyrographics likes this.
  19. vbroot

    vbroot Registered

    Joined:
    Oct 30, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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
     
    #19 vbroot, May 17, 2016
    Last edited: May 17, 2016
  20. PatrickVeenstra

    PatrickVeenstra Well-Known Member

    Joined:
    Feb 12, 2012
    Messages:
    70
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    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.
     
    pyrographics likes this.
Loading...

Share This Page