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.

Cron Job editor is not working!

Discussion in 'General Discussion' started by nsvr, Jan 18, 2006.

  1. nsvr

    nsvr Registered

    Joined:
    Nov 19, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello guys,

    When iam trying to add a cron job trough the cPanel, standard or advanced it doesnt work. I have checked the error logs and there were no cpanel errors. When i try to add a cron job from ssh, it works fine, it will execute the cron.
    If i then check back at the cpanel at the user where i added the cron from ssh, it doesnt display the cron. The editor just doesnt work.

    Does anybody know why this is happening and is there a solution?

    I am using WHM 10.8.0 cPanel 10.8.1-R113, CentOS 3.4 on a VPS.

    regards,
    Nick
     
  2. Izzee

    Izzee Well-Known Member

    Joined:
    Feb 6, 2004
    Messages:
    469
    Likes Received:
    0
    Trophy Points:
    16
    If your editing from shell chances are you have created it as root.

    Check the files in /var/spool/cron

    You should see the user names of the cronjobs. Check root to see if what you edited in shell has been placed in there and also check the user name file for the cronjob if it is there.

    Type crontab --help for the options to create the cronjob for a user.

    :)
     
    #2 Izzee, Jan 18, 2006
    Last edited: Jan 18, 2006
  3. nsvr

    nsvr Registered

    Joined:
    Nov 19, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Yeah i already know this, the user files are in that directory, and the crontab commands are present in the files.

    But the editor in the cpanel just doesnt work :(. This happened when we moved this month from a reseller, where crons worked, to a vps where it doesnt.
    There are old cron jobs from the previous server, and they will just run fine, but the editor in the cpanel wont display/edit/delete them.

    If i create a new account and try to add a cron, it still doesnt do a thing, it does say "Cron Updated!", but then all fields are empty and no new cron file is created for that user.
     
  4. Izzee

    Izzee Well-Known Member

    Joined:
    Feb 6, 2004
    Messages:
    469
    Likes Received:
    0
    Trophy Points:
    16
    Try a support ticket to your VPS provider. They may be able to help.

    Just to add you can check /usr/local/cpanel/logs/error_log to see if there is a clue in there.

    :)
     
    #4 Izzee, Jan 18, 2006
    Last edited: Jan 18, 2006
  5. nsvr

    nsvr Registered

    Joined:
    Nov 19, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I found the error now, when tailing the error log and trying to add a cron, it says:

    seteuid: Operation not permitted

    anyone an idea of this error?

    ----------------------------------------------------------

    edit, found the solution:

    chmod 4755 /usr/bin/crontab
    chmod 1777 /var/spool/cron

    thats all. Thanks for helping.
     
    #5 nsvr, Jan 18, 2006
    Last edited: Jan 18, 2006
Loading...

Share This Page