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.

Crontab error

Discussion in 'General Discussion' started by mickalo, Sep 17, 2015.

  1. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    Hello,

    I just started getting this strange error message from crontab:
    Code:
    run-parts /etc/cron.hourly
    Not a directory: /etc/cron.hourly
    
    The cron.hourly is a directory and it's there and as far as I can tell nothing has changed. what would cause this error to all of suddenly start appearing?

    Thanks,
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's possible the /etc/crontab file on your system is corrupted. Try backing up the file, and then edit it to ensure there are no corrupted entries (you may need to delete the contents of the file and repopulate it).

    Thank you.
     
  3. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    Thanks that's exactly what the problem was. Re-created the file in the proper file format and that corrected the problem. I used the wrong editor it put some extra characters in the file causing the problem.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page