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.

Add New Cron Job error

Discussion in 'General Discussion' started by ferrowi, May 3, 2016.

  1. ferrowi

    ferrowi Registered

    Joined:
    May 3, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    turkey
    cPanel Access Level:
    DataCenter Provider
    Hi ,

    Cpanel to add cron jop error :

    CLOUDLINUX 7.2 x86_64 vmware Cpanel last update RELEASE 11.56.0.9

    Add a cron job did not work after the last update..


    [2016-05-02 09:44:23 +0300] warn [jail_safe_crontab] Cpanel::Wrap::send_cpwrapd_request The adminbin “cron” in the “Cpanel” namespace call to function “FETCH” ended prematurely: The subprocess reported error number 5 when it ended.: namespace=[Cpanel] module=[cron] function=[FETCH]: set error in context : raw_response=[{"error":1,"exit_code":1280,"status":1,"mode":"full","statusmsg":"The adminbin “cron” in the “Cpanel” namespace call to function “FETCH” ended prematurely: The subprocess reported error number 5 when it ended.","version":"2.4","data":"(XID 2axefn) “/usr/bin/crontab” reported error code “1” when it ended.\n","timeout":0,"action":"run"}] at /usr/local/cpanel/Cpanel/Wrap.pm line 110.
    Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "cron", "function", "FETCH", "env", HASH(0xe9b420)) called at bin/jail_safe_crontab.pl line 230 main::_get_crontab_text() called at bin/jail_safe_crontab.pl line 31 [2016-05-02 09:44:23 +0300] warn [jail_safe_crontab] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[cron] function=[FETCH]: set error in context : statusmsg=[The adminbin “cron” in the “Cpanel” namespace call to function “FETCH” ended prematurely: The subprocess reported error number 5 when it ended.] at /usr/local/cpanel/Cpanel/Wrap.pm line 119. Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "cron", "function", "FETCH", "env", HASH(0xe9b420)) called at bin/jail_safe_crontab.pl line 230 main::_get_crontab_text() called at bin/jail_safe_crontab.pl line 31 Can't use string ("(XID 2axefn) “/usr/bin/cron"...) as a HASH ref while "strict refs" in use at bin/jail_safe_crontab.pl line 242.


    We are receiving an error in adding new cron after update
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    Check your cPanel error logs file and let me know what exact error are your getting.

    Also, try to update cPanel on your server with --force options (/scripts/upcp --force)
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    This was addressed with CPANEL-5914 in cPanel 56.0.13:

    Fixed case CPANEL-5914: Cronjobs cannot be added on CentOS7 if the cron file is missing.

    Thank you.
     
  4. TechnoBeast

    TechnoBeast Registered

    Joined:
    Jan 5, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I am seeing this issue as well, even when moving back to a CentOS6.7 server with 56.0 b15. When checking the crons with crontab -e -u they are all there, but in cPanel no jobs show and I cannot add any new ones. If needed I can start a ticket, but figured it would not hurt to see if there are any places I can check/change first.

    CentOS7.2 server build was fairly new as had upgraded, and the 6.7 one is brand new build of cPanel. Went back to 6 due to the myriad of issues in both cPanel and 3 party apps that I have been seeing on 7.
     
  5. TechnoBeast

    TechnoBeast Registered

    Joined:
    Jan 5, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Forums would not let me edit the last reply.

    Used the transfer tool to move everything over to the new CentOS6 box. Not sure if that would point to an issue in the file structure of the cPanel itself.
     
  6. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    120
    Likes Received:
    34
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    #6 rpvw, May 17, 2016
    Last edited by a moderator: May 17, 2016
    TechnoBeast likes this.
  7. TechnoBeast

    TechnoBeast Registered

    Joined:
    Jan 5, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for that. Works well for the CentOS6 box. Cheers!
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, as mentioned on the referenced thread, the issue is addressed in cPanel version 56.0.17:

    Fixed case CPANEL-6197: Resolve JS error on paper_lantern cron page.

    Thank you.
     
Loading...

Share This Page