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 <root@server> run-parts /etc/cron.daily

Discussion in 'General Discussion' started by sahithp, Oct 22, 2012.

  1. sahithp

    sahithp Member

    Joined:
    Jun 13, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I am getting these mails daily, please help me on this

    Code:
    /etc/cron.daily/logrotate:
    
    error: bad line 76 in state file /var/lib/logrotate.status
    error: stat of /etc/logrotate.conf: failed: No such file or directory
    error: stat of ASCII failed: No such file or directory
    error: stat of text failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of see failed: No such file or directory
    error: stat of man logrotate failed: No such file or directory
    error: stat of for failed: No such file or directory
    error: stat of details failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of rotate failed: No such file or directory
    error: stat of log failed: No such file or directory
    error: stat of files failed: No such file or directory
    error: stat of weekly failed: No such file or directory
    error: stat of weekly failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of keep failed: No such file or directory
    error: stat of 4 failed: No such file or directory
    error: stat of weeks failed: No such file or directory
    error: stat of worth failed: No such file or directory
    error: stat of of failed: No such file or directory
    error: stat of backlogs failed: No such file or directory
    error: stat of rotate failed: No such file or directory
    error: stat of 1 failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of create failed: No such file or directory
    error: stat of new failed: No such file or directory
    error: stat of (empty) failed: No such file or directory
    error: stat of log failed: No such file or directory
    error: stat of files failed: No such file or directory
    error: stat of after failed: No such file or directory
    error: stat of rotating failed: No such file or directory
    error: stat of old failed: No such file or directory
    error: stat of ones failed: No such file or directory
    error: stat of create failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of RPM failed: No such file or directory
    error: stat of packages failed: No such file or directory
    error: stat of drop failed: No such file or directory
    error: stat of log failed: No such file or directory
    error: stat of rotation failed: No such file or directory
    error: stat of information failed: No such file or directory
    error: stat of into failed: No such file or directory
    error: stat of this failed: No such file or directory
    error: stat of directory failed: No such file or directory
    error: stat of include failed: No such file or directory
    error: stat of # failed: No such file or directory
    error: stat of no failed: No such file or directory
    error: stat of packages failed: No such file or directory
    error: stat of own failed: No such file or directory
    error: stat of wtmp failed: No such file or directory
    error: stat of -- failed: No such file or directory
    error: stat of well rotate them here
    /var/log/wtmp  failed: No such file or directory
    error: stat of /var/log/btmp failed: No such file or directory
    error: could not read state file, will not attempt to write into it
    
    Let me know what should i do .... to not getting these error.... why it is stating no file or directory.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Try going here:
    WHM > Service Configuration > cPanel Log Rotation Configuration, select all logs shown, and save.
    Do you get an error when you do this?
     
  3. sahithp

    sahithp Member

    Joined:
    Jun 13, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    @InfoPro... did as you said got the following result ...

     
  4. sahithp

    sahithp Member

    Joined:
    Jun 13, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    my logrotate file looks like ..

     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:

    Were any of these checked, previous?
     
Loading...

Share This Page